1 00:00:00,630 --> 00:00:05,210 I think all of us have experienced congestion management in our lives. 2 00:00:05,220 --> 00:00:11,070 You get to the airport and you want to check in, there's a queue or a line, so you have to wait before 3 00:00:11,070 --> 00:00:12,660 your bags can be processed. 4 00:00:12,960 --> 00:00:20,160 You get to security at the airport and you have to wait in a queue or a line you're driving on the highway 5 00:00:20,160 --> 00:00:23,580 or motorway and lanes have been closed. 6 00:00:23,580 --> 00:00:29,940 It results in congestion, which results in a queuing mechanism being used to filter the traffic. 7 00:00:30,060 --> 00:00:33,420 So queuing mechanisms manage congestion. 8 00:00:33,570 --> 00:00:36,990 Different queuing mechanisms can be used in the US. 9 00:00:36,990 --> 00:00:42,840 As an example, you have TSA PreCheck, so that helps you get through security quicker. 10 00:00:42,870 --> 00:00:48,630 If you've got a first class airplane ticket, you're going to be processed quicker or better at check 11 00:00:48,630 --> 00:00:51,510 in than if you've got an economy class ticket. 12 00:00:51,780 --> 00:00:58,080 An ambulance will take priority on a motorway or a highway when there's congestion versus a standard 13 00:00:58,080 --> 00:00:58,770 car. 14 00:00:58,950 --> 00:01:04,650 So different queuing mechanisms can be used to determine how traffic is processed. 15 00:01:04,650 --> 00:01:08,820 With round robin queuing mechanisms, all traffic is treated the same way. 16 00:01:08,850 --> 00:01:15,690 That means that everyone is treated the same way but results in delay for real time traffic. 17 00:01:15,780 --> 00:01:21,990 You could also implement a strict queuing mechanism where high priority traffic is always processed 18 00:01:21,990 --> 00:01:22,800 first. 19 00:01:22,920 --> 00:01:26,550 The advantage of that is voice packets will be transmitted first. 20 00:01:26,550 --> 00:01:33,810 But if there's a lot of voice traffic or high priority traffic, it could result in starvation of less 21 00:01:33,810 --> 00:01:35,040 important traffic. 22 00:01:35,040 --> 00:01:40,800 If you're constantly sending a lot of voice and video, your FTP traffic may never be transmitted because 23 00:01:40,800 --> 00:01:46,350 you are always transmitting video and voice first in a strict priority queuing mechanism. 24 00:01:46,470 --> 00:01:52,650 So with congestion management, we have queuing or buffering which determines the ordering of packets 25 00:01:52,650 --> 00:01:54,090 in the output buffers. 26 00:01:54,270 --> 00:02:00,690 In other words, it determines how traffic leaves a router interface or leaves a switch interface. 27 00:02:00,960 --> 00:02:06,120 You do have ingress queues, but for now we'll just concentrate on egress queuing mechanisms. 28 00:02:06,390 --> 00:02:09,000 Queuing is only required when there's congestion. 29 00:02:09,150 --> 00:02:14,820 If you're driving on the highway or motorway late at night and there are six lanes and there are only 30 00:02:14,820 --> 00:02:18,240 a few cars, there's no need to have a queuing mechanism. 31 00:02:18,450 --> 00:02:25,800 So queuing is used when there's congestion, hence the term congestion management when queues fill up, 32 00:02:25,800 --> 00:02:32,010 packets are reordered so that high priority packets are sent out of a router interface first rather 33 00:02:32,010 --> 00:02:33,930 than lower priority packets. 34 00:02:33,930 --> 00:02:40,050 So again, when this congestion, you may have high priority packets and low priority packets arriving. 35 00:02:40,200 --> 00:02:45,990 A queuing mechanism is used to determine which packets should be processed first and then they are scheduled 36 00:02:45,990 --> 00:02:48,480 for transmission out of the interface of a router. 37 00:02:48,480 --> 00:02:54,840 So when packets arrive they are put into classes and will be processed on how important they are or 38 00:02:54,840 --> 00:02:57,570 based on the queuing algorithm used. 39 00:02:57,690 --> 00:03:03,120 More important packets will be transmitted first before less important traffic as an example. 40 00:03:03,120 --> 00:03:09,000 So they'll be scheduled for sending out of the interface of the router before less important packets. 41 00:03:09,240 --> 00:03:13,320 So queuing is the logic of ordering packets in output buffers. 42 00:03:13,740 --> 00:03:18,480 Scheduling is a process of deciding which packets should be sent out next. 43 00:03:18,690 --> 00:03:22,980 Scheduling occurs regardless of whether there's congestion on the link. 44 00:03:23,280 --> 00:03:30,570 Queuing is only activated when congestion occurs, when queues fill up, packets are reordered so that 45 00:03:30,570 --> 00:03:35,070 high priority packets can be sent out before lower priority packets.