A patentable SDN Protocol stack algorithm with a middleware based NGMN IMS CLOUD QoS System offers the required, on demand SLA and relevant QoS for 4GLTE HetNet/IMS which will help the Operator to meet the necessary QoS demands arising out of dynamic devices, services, applications and network’s resilience, before scaling the optimization to the next level, since the micro level DNA is in place already .A system modular to suit to LTE/IMS