I am working on a research project on SDN. I want to calculate end to end delay between source and destination. We have exact formulas of transmission and propagation delay, but how to calculate queuing delay and processing delay for a network node? Kindly provide precise explanation with formula. Different papers have different explanations, but we want the formula programming point of view.