Capturing an optical buffer's performance with a markov chain