<div dir="ltr"><div>Thanks, Miguel.</div><div>Ignazio<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mer 27 lug 2022 alle ore 16:50 Miguel Lavalle <<a href="mailto:miguel@mlavalle.com">miguel@mlavalle.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Ignazio,<div><br></div><div>You might find the following two presentations useful to understand what segments are and how they are used in routed networks:</div><div><br></div><div><a href="https://www.openstack.org/videos/summits/austin-2016/mapping-real-networks-to-physical-networks-segments-and-logical-networks-in-neutron" target="_blank">https://www.openstack.org/videos/summits/austin-2016/mapping-real-networks-to-physical-networks-segments-and-logical-networks-in-neutron</a><br></div><div><a href="https://www.openstack.org/videos/summits/barcelona-2016/scaling-up-openstack-networking-with-routed-networks" target="_blank">https://www.openstack.org/videos/summits/barcelona-2016/scaling-up-openstack-networking-with-routed-networks</a><br></div><div><br></div><div>And to summarize what you will find in those presentations: </div><div><br></div><div>1) A segment is a single L2 broadcast domain, be it a vlan or a vxlan or any other way to realize a L2 broadcast domain in the networking fabric.</div><div>2) A Neutron network can be created stitching together 1 or several segments. If after putting several segments together in a Neutron network they become a single L2 broadcast domain (i.e. they are stitched together via switching) then you have a multi-segment Neutron network. However ....</div><div>3) If the segments in a Neutron network are stitched together with L3 routers, then you have a routed provider network. In such networks, each segment is a separate L2 broadcast domain, which should provide higher levels of scalability</div><div>4) To better understand the terminology, you may also find it useful to understand the distinction between  "provider networks" and "tenant networks". A provider network is one that was mapped explicitly at creation by a cloud admin to specific segments, most likely to achieve certain performance / scalability goals. A tenant network is one for which, at creation, Neutron assigned automatically a segment</div><div><br></div><div>Best regards</div><div><br></div><div>Miguel</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 27, 2022 at 3:01 AM Ignazio Cassano <<a href="mailto:ignaziocassano@gmail.com" target="_blank">ignaziocassano@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello, thanks for your reply.</div><div>The segment id is the vlan id  (in your example 101) ?</div><div>My understanding is that  some compute nodes in a rack are connected to a vlan, and other on another vlan.</div><div>Then I can create a network (segmentation1) and scheduler put the vm on the compute node where vlan is present.</div><div>So for users exists only segmentaion1 network and they do not know it is splitted in more vlans.</div><div>Is it correct ?</div><div>Ignazio<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mer 27 lug 2022 alle ore 09:27 Lajos Katona <<a href="mailto:katonalala@gmail.com" target="_blank">katonalala@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div>I suppose you referenced this document:</div><div><a href="https://docs.openstack.org/neutron/latest/admin/config-routed-networks.html" target="_blank">https://docs.openstack.org/neutron/latest/admin/config-routed-networks.html</a><br></div><div><br></div><div>In Neutron terminology segments appear on different layers, on the API a segment is a network type / seg. id / phys-net / net uuid tuple (see [1]).</div><div>What is interesting here that this segment has to be a representation on the compute where l2-agent (ovs-agent) can know which segment is the one it can bind ports.</div><div>That cfg option is in ml2_conf.ini, and bridge_mappings, where the admin/deployer can state which bridge (like br-ex) is connected to which provider network (out of Openstack's control).</div><div>So for example a sample config in ml_conf.ini like this:</div><div><font face="monospace"><br></font></div><div><font face="monospace">bridge_mappings = public:br-ex,physnet1:br0</font><br></div><div><br></div><div>Means that on that compute VM ports can be bound which has a network segment like this: ( network_type: vlan, physical_network: <b>physnet1</b>, segmentation_id: 101, network_id: 1234-56..)</div><div>More computes can have the same bridge-physnet mapping, the deployer's responsibility is to have these connected to the same switch, whatever.</div><div><br></div><div>[1]: <a href="https://docs.openstack.org/api-ref/network/v2/index.html?expanded=create-segment-detail#segments" target="_blank">https://docs.openstack.org/api-ref/network/v2/index.html?expanded=create-segment-detail#segments</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Ignazio Cassano <<a href="mailto:ignaziocassano@gmail.com" target="_blank">ignaziocassano@gmail.com</a>> ezt írta (időpont: 2022. júl. 26., K, 21:04):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hello All, I am reading documentation about routed provider network. <div dir="auto">It reports: "</div><div dir="auto"><span style="color:rgb(51,51,51);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,oxygen-sans,ubuntu,cantarell,"helvetica neue",sans-serif;font-size:14px;background-color:rgb(255,255,255)">Routed provider networks imply that compute nodes reside on different segments. "</span><br></div><div dir="auto"><span style="color:rgb(51,51,51);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,oxygen-sans,ubuntu,cantarell,"helvetica neue",sans-serif;font-size:14px;background-color:rgb(255,255,255)"><br></span></div><div dir="auto"><span style="color:rgb(51,51,51);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,oxygen-sans,ubuntu,cantarell,"helvetica neue",sans-serif;font-size:14px;background-color:rgb(255,255,255)">What does mean ? </span></div><div dir="auto"><span style="color:rgb(51,51,51);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,oxygen-sans,ubuntu,cantarell,"helvetica neue",sans-serif;font-size:14px;background-color:rgb(255,255,255)">What is a segment it this case ?</span></div><div dir="auto"><span style="color:rgb(51,51,51);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,oxygen-sans,ubuntu,cantarell,"helvetica neue",sans-serif;font-size:14px;background-color:rgb(255,255,255)">Thanks for helping me"</span></div><div dir="auto"><span style="color:rgb(51,51,51);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,oxygen-sans,ubuntu,cantarell,"helvetica neue",sans-serif;font-size:14px;background-color:rgb(255,255,255)">Ignazio</span></div></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>