A Network Function Modeling Approach for Performance Estimation