[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

答复: [DVR config] Can we use drv_snat agent_mode in every compute node?

Thanks Brian, your explanation clarified something, but I don't get the answer if we can have multiple compute nodes are configured to dvr_snat, for this case, SNAT IPs are obviously different. Why do we want to use network node if compute node can do everything?

å??件人: Brian Haley [ at] 
å??é??æ?¶é?´: 2019å¹´5æ??16æ?¥ 21:46
æ?¶ä»¶äºº: Yi Yang (æ?¨ç??)-äº?æ??å?¡é??å?¢ <yangyi01 at>
æ??é??: openstack-discuss at
主�: Re: [DVR config] Can we use drv_snat agent_mode in every compute node?

Hi Yi,

I'm a little confused by the question, comments inline.

On 5/15/19 11:47 PM, Yi Yang (æ?¨ç??)-äº?æ??å?¡é??å?¢ wrote:
> Hi, folks
> I saw somebody discussed distributed SNAT, but finally they didnâ??t 
> make agreement on how to implement distributed SNAT, my question is 
> can we use dvr_snat agent_mode in compute node? I understand dvr_snat 
> only does snat but doesnâ??t do east west routing, right? Can we set 
> dvr_snat and dvr in one compute node at the same time? It is 
> equivalent to distributed SNAT if we can set drv_snat in every compute 
> node, isnâ??t right? I know Opendaylight can do SNAT in compute node in 
> distributed way, but one external router only can run in one compute node.

Distributed SNAT is not available in neutron, there was a spec proposed recently though,

Regarding the agent_mode setting for L3, only one mode can be set at a time.  Typically 'dvr_snat' is used on network nodes and 'dvr' on compute nodes because it leads to less resource usage (i.e. namespaces). 
  The centralized part of the router hosting the default SNAT IP address will only be scheduled to one of the agents in 'dvr_snat' mode.  All the DVR modes can do East/West routing when an instance is scheduled to the node, and two can do North/South - 'dvr_snat' using the default SNAT IP, and 'dvr' using a floating IP.  'dvr_no_external' can only do East/West.

Hopefully that clarifies things.


> I also see is trying to 
> implement distributed SNAT, what are technical road blocks for 
> distributed SNAT in openstack dvr? Do we have any good way to remove 
> these road blocks?
> Thank you in advance and look forward to getting your replies and insights.
> Also attached official drv configuration guide for your reference.
> |agent_mode|¶
> <
> DEFAULT.agent_mode>
> Type
> string
> Default
> legacy
> Valid Values
> dvr, dvr_snat, legacy, dvr_no_external
> The working mode for the agent. Allowed modes are: â??legacyâ?? - this 
> preserves the existing behavior where the L3 agent is deployed on a 
> centralized networking node to provide L3 services like DNAT, and SNAT.
> Use this mode if you do not want to adopt DVR. â??dvrâ?? - this mode 
> enables DVR functionality and must be used for an L3 agent that runs 
> on a compute host. â??dvr_snatâ?? - this enables centralized SNAT support 
> in conjunction with DVR. This mode must be used for an L3 agent 
> running on a centralized node (or in single-host deployments, e.g. devstack).
> â??dvr_no_externalâ?? - this mode enables only East/West DVR routing 
> functionality for a L3 agent that runs on a compute host, the 
> North/South functionality such as DNAT and SNAT will be provided by 
> the centralized network node that is running in â??dvr_snatâ?? mode. This 
> mode should be used when there is no external network connectivity on 
> the compute host.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3600 bytes
Desc: not available
URL: <>