Just need expert comments on it.
Layer7:If a virtual server is type 7 then it means that F5 will decrypt the packet will check the content and will make the descion accordingly, we will have SSL offloading and can apply WAF policy on it to controll the traffic, We can apply it on HTTPs and HTTP(no SSL offloading) type of traffic.
layer4:in layer 4 F5 will see that if its a TCP or UDP and will route the traffic towards the resources as per define rules.
Things which i need to clear in my head is it that how F5 box knows that a virtual server is of type 7 or type 4 if the type of VS is standard VS.
It is based on the profile
here is an example of http/https VS:
If you change the HTTP profile to none it will be a L4 VS.
here more on profiles:
it is mainly based on assigning HTTP profile plus the TCP profile or not
If you assigned HTTP Profile, It will be layer7 virtual server and F5 can inspect Data up to layer 7 if it is http based or after decrypting traffic if it is HTTPS data.
If you did not assigned HTTP profile, It will be layer4 virtual server.
You can find more below: