Forum Discussion

usmansa1's avatar
usmansa1
Icon for Nimbostratus rankNimbostratus
Jul 10, 2024

Need help to understand operation between RE and CE ?

Hi all, 

 

We have installed CE site in our network and this site has established IPSEC tunnels with RE nodes. The on-prem DC site has workloads (e.g actual web application servers that are serving the client requests). I have citrix netscaler background and the Citrix Netscalers ADCs are configured with VIPs which are the frontend for the client requests coming from outside (internet), when the request land on VIPs, it goes through both source NAT and destination NAT, its source address is changed to private address according to the service where the actual application servers are configured and then sent to the actual application server after changing the destination to IP address of the server. 

In XC, the request will land to the cloud first because the public IP, which is assigned to us will lead the request to RE. I have few questions regarding the events that will happen from here after

  1. Will there going to be any SNAT on the request or will it send it as it is to the site? And if there is SNAT then what IP address will it be ? and will it be done by the RE or on-prem CE 
  2. There has to be destination NAT. Will this destination NAT is going to be performed by the XC cloud or the request will be sent to the site and site will do the destination NAT ?
  3. When the request will land  the CE it will be landed in VN local outside so this means that we have to configure the network connector between the VN Local outside and the VN in which the actual workloads are configured, what type of that VN would be ?
  4. When the request will be responded by the application server in local on-prem the site the request has to go out to the XC cloud first, it will be routed via IPSEC tunnel so this means that we have to install the network connector between the Virtual network where the workloads are present and site local outside, do we have to install the default route in application VN ?
  5. Is there any document, post or article that actually help me to understand the procedure (frankly I read a lot of F5 documents but couldn’t able to find the answers

9 Replies

  • Mate, I have taken that training and also did the MCN labs, just for reference my animal name was "golden viper" but frankly this is some of the most basic information which should be  mentioned in F5 documents but it is nowhere 

  • Moreover, these labs may also need to include the basic setup

    • Nikoolayy1's avatar
      Nikoolayy1
      Icon for MVP rankMVP

      A fast summary is that SNAT is always performed by XC and this is why you need to use Proxy Protocol or XFF HTTP header to see the real client IPs  in the backend. The SNAT on the CE is the exit interface IP address. On the RE as each RE location is made of several servers/devices the source up address will change based on the list https://docs.cloud.f5.com/docs/reference/network-cloud-ref . If your HTTP LB is on the RE and the origin is on the CE then the SNAT will be done on the CE. The destination NAT is just the NAT of the origin servers as to change the address of the HTTP lb to the one of the selected origin servers. When you mention network connector you probably mean Customer Edge(CE) and as I mentioned SNAT is always performed, so the origin servers just need to return it to the CE interface ip address or in case with the RE without a CE the servers need internet access . You can use static routing or bgp on the CE for it to know how to reach the origin servers if they are not connected directly on layer 2 with the CE interfaces. 

      • usmansa1's avatar
        usmansa1
        Icon for Nimbostratus rankNimbostratus

        thanks alot mate, well that actually cleared lot of things in my mind, however I have one more vital question and I will be really thankful if you can help me to understand this whole process, 

        lets say my HTTP LB is on the RE. When the request falls on the LB-RE and LB checks that origin server is on the site (via origin pool) and then :-

        1. will it send the request directly to CE via IPSEC or SSL tunnels OR (?)
        2. Will it check the origin server, do the destination NAT and then send the request to CE site (?)

         

        Now suppose whatever is the case the request has now reached to Site and it will land on site local outside VN because here we have IPSEC tunnels configured, now technically the procedure will be something like below: (Please correct where I am wrong) 

        1. Site local outside should check the routing and then see that destination address is inside the "site local inside"
        2. Site local outside will pass the request to site local inside while the request is being passed, the SNAT has to be done on the request. I assume that this SNAT will be the IP address (either interface IP or virtual IP) of the site local inside 
          1. Will this SNAT will happen automatically or needs to be defined via network connector (?)
        3. Site local inside will check the address and then send it to the respective server (Simple case of connectivity)
        4. Once the server responds back to the request, it will come to the site local inside IP address and then the NAT will occur and the request will be sent to the site local outside 
        5. Before sending it to site local outside it should have some kind of routing to be installed 
          1. Technically this should be default route, so can we add it separately (?) 
        6. The site local outside have three interfaces 
          1. Two of them are IPSEC interface 
          2. One of them the real physical interface
        7. The real physical interface has DHCP IP addresses which means that the default route is automatically installed in the network but this request needs to go via IPSEC so this means that during the bootstrap process when the network service becomes active it must have changed the routes (Please correct me if I am wrong) 
          1. When I was doing the lab I tried to check the routing table but I couldn't able to check it because "help" showed me network status command but I couldn't able to run

         

        Based on all the above understanding and almost all the documents which I read what I think we need network connectors between SLI and SLO and there are only three types of network connectors so what type of those network connectors will that be ? otherwise How the routing will be done, how the SNAT  will occur and how the reverse routing will be performed.

        PS: Once I am able to understand I will write an article with Figures so it will help for someone like me 

    • usmansa1's avatar
      usmansa1
      Icon for Nimbostratus rankNimbostratus

      but dont we need network connector to allow requests between both networks because in F5 documents it is mentioned as that SLI and SLO are virtual networks and virtual network is a similar concept as of VRF and network is required for communication to work ? 

      • Nikoolayy1's avatar
        Nikoolayy1
        Icon for MVP rankMVP

        As I mentioned no  you don’t the connectors are for cases where you need the servers on the SLI to have internet access through the SLI for example or to connect them to the XC global network as other servers on other CE to reach them and that are complex use cases that you can review with F5 sales. I suggest asking F5 sales to install a test CE for you to see it in action.