Correlation functions in queueing theory