Network Function Modeling and Performance Estimation