VMware Cloud Community
tvmo
Contributor
Contributor
Jump to solution

Traffic-shaping policy

Hello,

VC 2.5 ESX 3.5

I know that traffic shaping is applied and effective on the port group and that it effcts outbound network traffic only. What I can't get to grips with is the following:

1. Does traffic shaping effect traffic between VMs on the same port group, on the same vswitch, on the same host?

2. Does traffic shaping effect traffic between VMs on different port groups, on the same vswtich, on the same host?

3. Does traffic shaping effect traffic between VMs on different port groups, on different vswitches, on the same host?

4. Does traffic shaping effect traffic between VMs on different port groups, on different vswitches, on different hosts?

5. What does 'outbound' actually mean? Outbound from the port group?

Thanks

0 Kudos
1 Solution

Accepted Solutions
AndreTheGiant
Immortal
Immortal
Jump to solution

1. Does traffic shaping effect traffic between VMs on the same port group, on the same vswitch, on the same host? - NO

Right

2. Does traffic shaping effect traffic between VMs on different port groups, on the same vswtich, on the same host? - YES

3. Does traffic shaping effect traffic between VMs on different port groups, on different vswitches, on the same host? - YES

4. Does traffic shaping effect traffic between VMs on different port groups, on different vswitches, on different hosts? - YES

Right (but only for outgoing traffic).

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro

View solution in original post

0 Kudos
14 Replies
AndreTheGiant
Immortal
Immortal
Jump to solution

Traffic shaping works only for output traffic of all the portgroup.

In vSphere (with DVS) can also work for inconming traffic.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
tvmo
Contributor
Contributor
Jump to solution

Thanks very much for the reply. So if I undertsand you the answer to my questions would be:

1. Does traffic shaping effect traffic between VMs on the same port group, on the same vswitch, on the same host? - NO

2. Does traffic shaping effect traffic between VMs on different port groups, on the same vswtich, on the same host? - YES

3. Does traffic shaping effect traffic between VMs on different port groups, on different vswitches, on the same host? - YES

4. Does traffic shaping effect traffic between VMs on different port groups, on different vswitches, on different hosts? - YES

Thanks again

0 Kudos
AndreTheGiant
Immortal
Immortal
Jump to solution

1. Does traffic shaping effect traffic between VMs on the same port group, on the same vswitch, on the same host? - NO

Right

2. Does traffic shaping effect traffic between VMs on different port groups, on the same vswtich, on the same host? - YES

3. Does traffic shaping effect traffic between VMs on different port groups, on different vswitches, on the same host? - YES

4. Does traffic shaping effect traffic between VMs on different port groups, on different vswitches, on different hosts? - YES

Right (but only for outgoing traffic).

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
tvmo
Contributor
Contributor
Jump to solution

Great thank Andre. Is there any VMware doc that outlines this?

0 Kudos
AndreTheGiant
Immortal
Immortal
Jump to solution

Is there any VMware doc that outlines this?

Check on ESX documentation.

For example page 53 of: http://www.vmware.com/pdf/vi3_35/esx_3/r35u2/vi3_35_25_u2_3_server_config.pdf

But there are just a few informations.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
tvmo
Contributor
Contributor
Jump to solution

Thanks Andre, I've read that doc. It's not great in defining exactly what 'outbound' traffic is.

Thanks again.

0 Kudos
AndreTheGiant
Immortal
Immortal
Jump to solution

It's not great in defining exactly what 'outbound' traffic is.

Unfortunately no.

You can find some generic concept on Linux documentation (traffic shaping is similar), for example: http://lartc.org/

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
tvmo
Contributor
Contributor
Jump to solution

I've just completed a VMware VI3 mock exam. The following question came up:

Which statement describing internal-only virtual switches is true?

  • Traffic shaping is not supported

  • Used to access NFS and NAS datastores

  • Requires 802.3ad link aggregation

  • Ports are known as vswif

From your responses in this thread I would ay that none of them are right, as we discussed that traffic shaping affects outbound traffic from the port group. The correct answer, according to the mock exam, is the first one, i.e. not supported. So therefore traffic shaping must affect traffic oputbound from the virtual switch?

Am I missing something here?

Thanks.

0 Kudos
AndreTheGiant
Immortal
Immortal
Jump to solution

Traffic shaping is not supported

True: you need a outgoing physical interface

Used to access NFS and NAS datastores

False: it's impossible without an "external" access

Requires 802.3ad link aggregation

False: you do not have link at all

Ports are known as vswif

False: only Service Console port ar vswif interfaces.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
tvmo
Contributor
Contributor
Jump to solution

Thanks Andre,

Just to clarify the point in my mind, you are saying that traffic shaping:

1. Does not affect outbound traffic between VMs on separate port groups on the same internal-only vswitch.

2. Does affect outbound traffic between VMs on separate port gorups on the same vswitch associated with an uplink.

Cheers

0 Kudos
AndreTheGiant
Immortal
Immortal
Jump to solution

1. Does not affect outbound traffic between VMs on separate port groups on the same internal-only vswitch.

Yes, but if you have different portgroup maybe you have different network, and without a uplink they cannot spoke at all

2. Does affect outbound traffic between VMs on separate port gorups on the same vswitch associated with an uplink.

Yes

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
tvmo
Contributor
Contributor
Jump to solution

OK, so the rule of network traffic between VMs on the same vswitch (no uplink), routing within the ESX host only applies if the VMs are on the same port group? If the VMs are on separate port groups, but on the same vswitch with an uplink the network traffic between them is routed via the uplink?

Cheers

0 Kudos
AndreTheGiant
Immortal
Immortal
Jump to solution

vSwitch are the same as layer2 switch: no routing.

VM can spoke internally only if they are on the same portgroup, or in the same broadcast domain on the same vSwitch.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
tvmo
Contributor
Contributor
Jump to solution

Thanks a lot Andre, that makes perfect sense.

Cheers

0 Kudos