Forum Discussion

dragonflymr's avatar
dragonflymr
Icon for Cirrostratus rankCirrostratus
May 18, 2015

Switching VS and http2/spdy issue

Hi,

 

I am trying to set AAM test environment based on this article Project Acceleration: Test Infrastructure. I have no issue with setting switching for http and different Web Acceleration and Compressing profiles (AAM based), but I am lost on how to do that for http2 and spdy profile.

 

Scenario is:

 

  • One VS as target for client request, let's say using shop.company.com, this is what should be used as Host header in all request after redirection
  • Use different URI to switch to given VS configured with http2 or spdy profile, say shop.company.com/http2, shop.company.com/spdy

Using iRule from mentioned article I can't achieve that, seems that when request are redirected to VS with given profile it's still using profiles set at the switching VS. So even if I have http2 profile at target VS client is using profile set for switching VS (so no http2).

 

I have full control on DNS entries so instead of URI based switching I can use host based switching - so http2.shop.company.com or spdy.shop.company.com can be directed via DNS to IP of switching server.

 

Still I cat't figure out correct iRule to handle all varaitions, both http based switching for Web Acceleration or Compression VSs over http and http2/spdy VS over https.

 

Maybe iRule should use virtual command based switching for http based VS and I should have another VS using https for redirection based switching for http2/spdy VS? But what should be the iRule to assure correct traffic redirection for subsequent request resulting from using links on main page returned?

 

So client is connecting with https://http2.shop.company.com or https://shop.company.com/http2 to switching VS, it's redirected to VS with http2 profile and downloading main html code. Then in html returned there are links using shop.company.com, what will happen - rewrite setting in target VS (with http and http2 profiles) will change all links from shop.company.com to http2.shop.company.com?

 

Or maybe I should have switching VS only with http and then via redirect (based on host or URI) it will be directed to either other http VS with WA profile (using virtual command) or to https VS with http2/spdy profile (using redirect)?

 

I am pretty sure that there is no option to switch WA/Compression/http2/spdy profile for one VS using iRule?

 

What if I will use SNI (based on iRule from Match SSL SNI and redirect SSl traffic) based iRule on https swithing VS (without clientssl) and virtual command to direct request to http2 or spdy enabled VS? Will then http2/spdy profile be used for client connection? I am pretty sure it's not the case when swithing https VS is using clientssl an serverssl and no http2/spdy profile with virtual command to direct traffic to http2/spdy enabled VS - seems that in this case setting of switching VS are used - so no http2/spdy is effective.

 

Sorry for long post but I am running out of ideas, especially not being iRule or https expert :-(

 

Piotr

 

No RepliesBe the first to reply