1 00:00:05,550 --> 00:00:09,040 Okay, so I'm going to set this to real-time to end the simulation. 2 00:00:09,580 --> 00:00:11,170 Let's run another simulation. 3 00:00:11,830 --> 00:00:18,470 And what I'm going to do on the PC is open up a different application. 4 00:00:18,470 --> 00:00:23,200 You can see the web server has displayed the website on that server. 5 00:00:23,200 --> 00:00:24,950 I'll close this down now. 6 00:00:25,030 --> 00:00:29,740 So that was just a built in web server running on that internal server. 7 00:00:29,890 --> 00:00:32,680 What I'll do here is let's start. 8 00:00:32,740 --> 00:00:36,610 Email, let's compose an e-mail. 9 00:00:36,780 --> 00:00:43,900 And in this example, the only email address used is Peter@Cisco.com going to our server again you 10 00:00:43,900 --> 00:00:47,050 can see that we're running multiple services on the server. 11 00:00:47,080 --> 00:00:51,770 We've got HTTP, TFTP, FTP but here 12 00:00:51,790 --> 00:00:53,610 We've got an e-mail server. 13 00:00:53,920 --> 00:00:58,150 The only user account I've configured on the server is Peter. 14 00:00:58,150 --> 00:01:00,860 You could create a different one if you wanted to. 15 00:01:00,910 --> 00:01:03,510 So you could add another user for yourself. 16 00:01:03,550 --> 00:01:10,440 We've got two e-mail services running here simple mail transfer protocol is MTP and POP 3, POP 17 00:01:10,440 --> 00:01:15,900 3 is an older protocol that allows us to retrieve e-mail from an email server is MTP 18 00:01:15,910 --> 00:01:21,220 allows us to transmit e-mail these protocols use different port numbers 19 00:01:21,550 --> 00:01:25,240 So let's actually show that practically. 20 00:01:25,240 --> 00:01:29,440 So test e-mail, test e-mail 21 00:01:31,900 --> 00:01:36,880 showing port numbers before I click send. 22 00:01:37,110 --> 00:01:45,340 I want to make sure that I'm running simulation mode which I am and now I'll click send SMTP uses 23 00:01:45,910 --> 00:01:53,740 TCP looking at that TCP message, inbound PDU, we have our source and destination MAC addresses. 24 00:01:53,820 --> 00:01:58,130 PC talking to the server PCIP address talking to the server IP address. 25 00:01:58,350 --> 00:02:02,410 So layer 2, layer 3 this is IP version 4 26 00:02:02,430 --> 00:02:08,639 Again just to recap make sure that you know this stuff at layer 2,the type field indicates that the 27 00:02:08,639 --> 00:02:15,220 protocol at layer 3 is IP version 4, IP version 6 has a different protocol number. 28 00:02:15,390 --> 00:02:21,260 We know the protocol at layer 4 because of this number TCP. 29 00:02:21,270 --> 00:02:30,900 So that indicates TCP at layer 4, destination port number is 25, what is 25 looking at the IANA 30 00:02:30,900 --> 00:02:36,010 Website port 25 is simple mail transfer it's empty. 31 00:02:36,660 --> 00:02:42,710 So random port number, or ephemeral port number going to port 25. 32 00:02:42,810 --> 00:02:49,680 So we are sending an email to the server using SMTP so push that along. 33 00:02:49,680 --> 00:02:58,430 So we've got our TCP what's called the three way handshake that takes place so we have to use what are 34 00:02:58,430 --> 00:03:01,460 called synchronization bits and it has to be an acknowledgement. 35 00:03:01,520 --> 00:03:08,510 I'll talk about that in a separate video but notice here we've got our inbound PDU going to the server 36 00:03:08,840 --> 00:03:14,080 once again source port number destination port number at layer 4(*layer 7) 37 00:03:14,090 --> 00:03:16,150 You can see SMTP data 38 00:03:16,580 --> 00:03:24,500 So we are sending data to the server this will be our actual email going to the server. 39 00:03:24,720 --> 00:03:29,140 And now the server replies back looking at that. 40 00:03:29,280 --> 00:03:39,120 The message to the PC, notice port 25 talking to the agreed port number of 1027 SMTP data. 41 00:03:39,120 --> 00:03:43,440 Another reason we have the TCP handshake is we have to agree what port numbers we're going to be talking 42 00:03:43,440 --> 00:03:43,920 on. 43 00:03:44,070 --> 00:03:48,080 If you choose a random port number to talk to me how will I know what your random port number is. 44 00:03:48,180 --> 00:03:53,940 You need to tell me that or your ephemeral port number you need to tell me what that is. 45 00:03:53,940 --> 00:04:00,530 Notice also we have sequence numbers and acknowledgments in the messages so that takes place. 46 00:04:00,530 --> 00:04:07,130 And now suddenly we've got some more TCP, let's have a look at that TCP message inbound PDU still 47 00:04:07,130 --> 00:04:12,990 using port 25 so a bunch of TCP messages 48 00:04:16,600 --> 00:04:18,290 I run out of space there 49 00:04:24,150 --> 00:04:27,870 so my packet tracer has locked up so I'm going to restart it. 50 00:04:27,920 --> 00:04:41,820 This may happen sometimes with packet tracer. 51 00:04:41,840 --> 00:04:44,280 Now you may encounter problems like this in Packet Tracer. 52 00:04:44,340 --> 00:04:50,430 Just bear with the application it's not perfect but it's well worth the trouble because you'll learn 53 00:04:50,430 --> 00:04:53,590 a lot to using this application. 54 00:04:53,600 --> 00:04:54,420 Cause I didn't get my email. 55 00:04:54,420 --> 00:05:03,610 Let's try that again someone to send it to Peter@cisco.com, test to, test to send my email now 56 00:05:03,610 --> 00:05:05,140 To retrieve my email, 57 00:05:05,140 --> 00:05:12,220 I'm going to go to simulation mode and I'm going to click retrieve, to get my email from the server. 58 00:05:12,220 --> 00:05:13,450 So what have we got here, 59 00:05:13,450 --> 00:05:17,730 what message is this, notice 60 00:05:17,730 --> 00:05:26,910 this is TCP but the port number is 1 1 0, what is 1 1 0 on the IANA website. 61 00:05:26,910 --> 00:05:31,570 We can see that this is Post office Protocol Version 3 or POP 3. 62 00:05:31,680 --> 00:05:43,490 So this is the protocol used to retrieve the message from the server. 63 00:05:43,540 --> 00:05:46,200 So here's the actual POP 3 message. 64 00:05:46,270 --> 00:05:50,720 Let's have a look at that inbound means it's inbound to the switch. 65 00:05:50,750 --> 00:05:53,840 So it will be the same inbound and outbound on the switch. 66 00:05:53,870 --> 00:06:00,320 Source MAC address is PC, destination MAC addresses is server, type is 800 telling us that it's IP version 67 00:06:00,320 --> 00:06:07,070 4 source and destination IP address is PCI and server, protocol use at Layer 4 is TCP we can see that 68 00:06:07,070 --> 00:06:07,580 here. 69 00:06:07,850 --> 00:06:12,110 Source port number used by the PC is this, destination port number is 110. 70 00:06:12,260 --> 00:06:20,600 This is POP 3 data so that will go to the server, message goes back to the PC we've got some TCP messages 71 00:06:22,240 --> 00:06:28,820 I'll clear my event list, it's got a real-time and then hopefully on my PC what you can see is I've 72 00:06:28,820 --> 00:06:32,510 received my messages now, see here's my original message. 73 00:06:32,510 --> 00:06:37,910 Actually that's been retrieved from the server and here's my test to message that was received from 74 00:06:37,910 --> 00:06:39,280 the server. 75 00:06:39,310 --> 00:06:44,990 Now I can spend a long time showing you different protocols here as an example you could open up a command 76 00:06:45,020 --> 00:06:52,760 prompt and then open up FTP to the server and log in as Cisco Cisco username Cisco password Cisco and 77 00:06:52,770 --> 00:07:00,410 use the command DRR to see the files on the server if you ran simulation mode you'd be able to see 78 00:07:00,530 --> 00:07:03,890 those messages to the server. 79 00:07:03,890 --> 00:07:12,380 So spend some time having a look at the different protocols use email, use HTTP, use FTP to see the messages 80 00:07:12,560 --> 00:07:15,800 and the protocols, simulation mode in packet tracer's 81 00:07:15,800 --> 00:07:17,670 great to actually see what's going on. 82 00:07:17,840 --> 00:07:21,130 So fantastic way to actually learn the protocols.