Joint scheduling and buffer management policies for DTN applications of different traffic classes