Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,510 --> 00:00:01,970
Okay, so now let's talk about
2
00:00:01,970 --> 00:00:03,350
Enhanced Networking.
3
00:00:03,350 --> 00:00:06,060
So it is a way for you to get better networking performance
4
00:00:06,060 --> 00:00:07,480
for your EC2 instances.
5
00:00:07,480 --> 00:00:10,240
And so we have the type SR-IOV,
6
00:00:10,240 --> 00:00:12,620
which gives you higher bandwidth and higher PPS,
7
00:00:12,620 --> 00:00:13,890
so packets per second,
8
00:00:13,890 --> 00:00:15,380
with a lower latency.
9
00:00:15,380 --> 00:00:16,976
This is something that can come up in the exam.
10
00:00:16,976 --> 00:00:18,660
And you have two options for this,
11
00:00:18,660 --> 00:00:22,660
the most recent one is called Elastic Network Adapter, ENA.
12
00:00:22,660 --> 00:00:23,630
Which gives you performance of
13
00:00:23,630 --> 00:00:25,780
up to 100 gigabits per second.
14
00:00:25,780 --> 00:00:26,630
Or option two,
15
00:00:26,630 --> 00:00:30,070
is using an Intel VF up to 10 gigabits per second,
16
00:00:30,070 --> 00:00:31,150
which is legacy.
17
00:00:31,150 --> 00:00:33,120
So this EC2, Enhanced Networking,
18
00:00:33,120 --> 00:00:36,119
especially the ENA adapter, works for newer generations
19
00:00:36,119 --> 00:00:39,060
EC2 instances, as we will see in the hands on.
20
00:00:39,060 --> 00:00:43,100
And then we have the Elastic Fabric Adapter, EFA,
21
00:00:43,100 --> 00:00:46,500
which is an improved ENA dedicated for HPC
22
00:00:46,500 --> 00:00:48,510
which is high performance computing.
23
00:00:48,510 --> 00:00:50,150
It only works on Linux.
24
00:00:50,150 --> 00:00:51,294
The idea is that if you have a lot
25
00:00:51,294 --> 00:00:55,010
of inter-node communications that are tightly coupled
26
00:00:55,010 --> 00:00:57,070
because they live within the same cluster,
27
00:00:57,070 --> 00:00:59,260
then they're going to get better network performance
28
00:00:59,260 --> 00:01:00,930
talking with one another.
29
00:01:00,930 --> 00:01:02,010
This is going to leverage
30
00:01:02,010 --> 00:01:03,841
a standard called the MPI standard,
31
00:01:03,841 --> 00:01:06,670
the Message Passing Interface standard.
32
00:01:06,670 --> 00:01:08,980
And the idea is that Elastic Fabric Adaptor
33
00:01:08,980 --> 00:01:10,445
is having a higher performance
34
00:01:10,445 --> 00:01:13,660
because your EC2 instances are talking with one another.
35
00:01:13,660 --> 00:01:15,237
And so AWS knows that
36
00:01:15,237 --> 00:01:17,980
and it will bypass the underlying Linux OS
37
00:01:17,980 --> 00:01:21,990
to provide even lower latency with a reliable transport.
38
00:01:21,990 --> 00:01:23,660
So bottom line of this lecture is that,
39
00:01:23,660 --> 00:01:24,493
if you just wanna have
40
00:01:24,493 --> 00:01:26,760
Enhanced Networking for lower latency,
41
00:01:26,760 --> 00:01:29,510
look for ENA, the Elastic Network Adapter.
42
00:01:29,510 --> 00:01:31,860
And if you have a HPC cluster,
43
00:01:31,860 --> 00:01:35,203
then look for the EFA on top of it to improve performance.
44
00:01:36,320 --> 00:01:38,500
Okay, so, I'm not going to be able to demonstrate EFA,
45
00:01:38,500 --> 00:01:40,250
but I can demonstrate ENA.
46
00:01:40,250 --> 00:01:42,250
So take your instance and start it.
47
00:01:42,250 --> 00:01:44,840
This is my first instance, a type T2 Micro.
48
00:01:44,840 --> 00:01:47,240
And I'm going to launch a second EC2 instance
49
00:01:47,240 --> 00:01:49,240
but this time it's going to be a newer generation.
50
00:01:49,240 --> 00:01:51,390
So I'll choose, still Amazon Linux 2,
51
00:01:51,390 --> 00:01:54,300
still this architecture, but instead of a T2 Micro,
52
00:01:54,300 --> 00:01:58,930
which is older generation, I'm going to look for a T3 Micro,
53
00:01:58,930 --> 00:02:00,043
which is a newer generation
54
00:02:00,043 --> 00:02:02,760
and has a newer kind of networking.
55
00:02:02,760 --> 00:02:05,080
And this will not be Free Tier Eligible,
56
00:02:05,080 --> 00:02:07,310
unless you don't have availability
57
00:02:07,310 --> 00:02:09,150
of T2 Micro in your region.
58
00:02:09,150 --> 00:02:09,983
And in that case,
59
00:02:09,983 --> 00:02:12,920
T3 micro is going to be Free Tier Eligible.
60
00:02:12,920 --> 00:02:13,753
Next, for key pair,
61
00:02:13,753 --> 00:02:15,913
I will just usually have the DemoKeyPair.
62
00:02:16,792 --> 00:02:19,050
And then for network settings, I will add this
63
00:02:19,050 --> 00:02:22,160
and I will select an existing security group
64
00:02:22,160 --> 00:02:24,640
which is my SSH security group.
65
00:02:24,640 --> 00:02:26,300
The rest looks fine.
66
00:02:26,300 --> 00:02:28,000
I'm going to launch that instance.
67
00:02:29,020 --> 00:02:30,470
And then I will get back to my view
68
00:02:30,470 --> 00:02:33,020
with my two EC2 instances.
69
00:02:33,020 --> 00:02:35,480
And so I'm going to connect to my first instance,
70
00:02:35,480 --> 00:02:36,313
this one,
71
00:02:36,313 --> 00:02:40,170
of T2 Micro, and T2 Micro is what I call an older generation
72
00:02:40,170 --> 00:02:41,530
type of instances.
73
00:02:41,530 --> 00:02:42,940
So, how do we know this?
74
00:02:42,940 --> 00:02:45,410
Well, we can have a look to see if
75
00:02:45,410 --> 00:02:48,480
the ENA mod is installed, first.
76
00:02:48,480 --> 00:02:50,050
And this is going to be installed, by the way,
77
00:02:50,050 --> 00:02:53,140
on every single Amazon Linux 2 installation.
78
00:02:53,140 --> 00:02:55,410
So if I do "modinfo ena",
79
00:02:55,410 --> 00:02:58,960
as we can see the ENA module is loaded onto
80
00:02:58,960 --> 00:03:00,470
my EC2 instance
81
00:03:00,470 --> 00:03:01,750
but it doesn't mean it's going to be leveraged
82
00:03:01,750 --> 00:03:04,110
because this instance needs to have some kind
83
00:03:04,110 --> 00:03:07,690
of capability and T2 Micro is older generation.
84
00:03:07,690 --> 00:03:09,370
So "modinfo ena" means
85
00:03:09,370 --> 00:03:12,190
that the ENA is installed on Amazon Linux 2.
86
00:03:12,190 --> 00:03:16,823
But, if I type, and I clear my screen, "ethtool -i eth0",
87
00:03:19,960 --> 00:03:21,730
this is going to give me some information
88
00:03:21,730 --> 00:03:25,200
around the driver used for my network interface.
89
00:03:25,200 --> 00:03:29,280
As we can see right now, it doesn't say "ena" it says "vif".
90
00:03:29,280 --> 00:03:31,900
But if I go back to my EC2 instances
91
00:03:31,900 --> 00:03:35,160
and now look at my T3 Micro and connect to it.
92
00:03:35,160 --> 00:03:38,580
So I will use, again, EC2 instance connect,
93
00:03:38,580 --> 00:03:41,330
if we type "modinfo ena", same results
94
00:03:41,330 --> 00:03:42,980
because we are using Amazon Linux 2.
95
00:03:42,980 --> 00:03:46,870
And so the ENA is going to be installed on it as a module.
96
00:03:46,870 --> 00:03:50,530
But now if I type "ethtool -i eth0",
97
00:03:50,530 --> 00:03:53,360
as we can see the driver is ENA,
98
00:03:53,360 --> 00:03:56,590
and that means that we're using the Enhanced Networking
99
00:03:56,590 --> 00:03:57,930
that we need on this instance.
100
00:03:57,930 --> 00:04:00,290
So bottom line is, to leverage Enhanced Networking
101
00:04:00,290 --> 00:04:03,840
to have a newer generation type of EC2 instance.
102
00:04:03,840 --> 00:04:06,640
And if you're using Amazon Linux 2, by default,
103
00:04:06,640 --> 00:04:08,200
it is going to be enabled.
104
00:04:08,200 --> 00:04:09,800
So that's it for the quick demo.
105
00:04:09,800 --> 00:04:12,160
Now, just to finish, please make sure
106
00:04:12,160 --> 00:04:16,040
to terminate your EC2 T3 Micro,
107
00:04:16,040 --> 00:04:17,080
to be good to go.
108
00:04:17,080 --> 00:04:18,130
So that's it, I hope you liked it,
109
00:04:18,130 --> 00:04:20,080
and I will see you in the next lecture.
8678
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.