AWS · Advanced Networking Specialty

网络课程笔记

Lecture 131 · 19 张幻灯片

幻灯片、双语总结及 Transcript · 图片已内嵌,可离线阅读。

原文默认收起
lecture-131.md

Lecture 131: Public VIF Routing policies

  • 课程:[NEW] AWS Certified Advanced Networking Specialty 2026
  • 视频时长:07:24
  • 来源:Udemy Lecture 27898448
  • Slide 数量:19
  • 画面切换:00:13、00:25、00:43、01:09、01:23、01:43、02:07、02:27、02:42、03:04、03:12、03:21、03:44、04:56、05:19、05:47、06:19、06:33

扫描说明

逐条检查了 Udemy 页面中的 172 条 Transcript cue,并扫描了全长约 7:24 的视频。播放器曾因课程已播放至结尾显示 Up next 遮罩;正式截图前逐次关闭该遮罩,并在播放状态、隐藏播放器控件、关闭 Transcript 与课程侧栏后按完整媒体边界重截。依据标题页、入站策略要点渐显、入站架构动画和出站策略要点渐显,共划分为 19 个小节;所有图片统一输出为 1364×770,并复核右侧、底部与左侧边界。

Transcript 来自 Udemy 页面自带的英文自动字幕,没有使用 ASR。下面保留页面原文,包括其中的语法或识别错误。

1. Public VIF 路由策略

时间范围:00:00–00:13

Public VIF Routing Policies title slide

总结 / Summary

中文

本讲说明公有虚拟接口(Public Virtual Interface, Public VIF)的入站与出站路由策略(Inbound and Outbound Routing Policies),以及这些策略如何影响 AWS 与本地部署环境(On-Premises)之间的流量。

English

This lecture explains inbound and outbound routing policies for a Public VIF and how they affect traffic between AWS and on premises.

Transcript

00:00 Okay, so now let's look at

00:02 the public wifi routing policies first,

00:04 and let's see how it influences the traffic,

00:07 which flows from AWS to on premise

00:09 as well as from on-premise network to AWS.

2. Public VIF 入站策略概览

时间范围:00:13–00:25

Public VIF inbound routing policy overview

总结 / Summary

中文

入站策略(Inbound Policy)适用于从客户路由器(Customer Router)进入 AWS 的路由和流量。AWS 会对客户通告的公网前缀进行资格与安全检查。

English

Inbound policy applies to routes and traffic flowing from the customer router into AWS, where AWS validates and filters advertised public prefixes.

Transcript

00:13 So, there are two type of the policies,

00:15 inbound policies and outbound policies.

00:18 As I said, inbound policies means

00:20 the policies which are applicable to the traffic or routes

00:23 flowing from customer router to AWS.

3. 必须通告公网 IPv4/IPv6 前缀

时间范围:00:25–00:43

Public VIF inbound policy requiring public IPv4 or IPv6 prefixes over BGP

总结 / Summary

中文

创建 Public VIF 时,客户必须通过边界网关协议(Border Gateway Protocol, BGP)指定要通告的公网 IPv4 或 IPv6 前缀,让 AWS 知道客户侧可达地址范围。

English

A Public VIF requires the customer to advertise public IPv4 or IPv6 prefixes over BGP so AWS knows which address ranges are reachable on the customer side.

Transcript

00:25 So in this case,

00:27 of course, when you create a public wifi,

00:28 you remember you have to provide the IPv4 prefixes

00:32 or IPv6 prefixes, right?

00:34 To advertise over the BGP.

00:36 So what that AWS learns,

00:37 which are the IP addresses on the customer insight.

00:40 So you must specify those IP addresses

4. 必须拥有通告的公网前缀

时间范围:00:43–01:09

Public VIF inbound policy requiring ownership through a Regional Internet Registry

总结 / Summary

中文

客户必须拥有所通告的公网前缀,AWS 会依据区域互联网注册机构(Regional Internet Registry, RIR)验证所有权,防止把其他组织的流量错误发送给该客户。

English

The customer must own the advertised public prefixes, and AWS verifies ownership through a Regional Internet Registry to prevent traffic hijacking or misdelivery.

Transcript

00:43 and you must also own those IP addresses.

00:45 So AWS verifies that you own those IP prefixes.

00:50 And this is important because, you know,

00:51 if you advertise the IP prefixes not owned by you

00:55 and maybe some other customers own it,

00:58 then AWS would wrongly send this traffic to you

01:03 instead of sending it to the other customers.

01:05 And that's where this is very important

01:06 that you own these public prefixes.

5. 流量目标必须是 Amazon 公网前缀

时间范围:01:09–01:23

Public VIF inbound policy requiring traffic destined to Amazon public prefixes

总结 / Summary

中文

从客户路由器发往 Public VIF 的流量必须以 Amazon 公网前缀(Amazon Public Prefixes)为目标;Public VIF 不是任意互联网流量的通用出口。

English

Traffic sent from the customer router over a Public VIF must be destined for Amazon public prefixes; the VIF is not a general-purpose Internet transit path.

Transcript

01:09 Now traffic must be destined to AWS public prefixes.

01:13 That means all the traffic that you are sending

01:15 from customer router to AWS should also have the destination

01:19 as one of the public IP addresses on AWS site.

6. 不支持传递路由

时间范围:01:23–01:43

Public VIF inbound policy stating transitive routing is unsupported

总结 / Summary

中文

Public VIF 不支持传递路由(Transitive Routing):AWS 不会把从某个客户学到的前缀继续通告给其他客户或连接。

English

A Public VIF does not support transitive routing; AWS does not re-advertise one customer's learned prefixes to other customers or connections.

Transcript

01:23 The transitory routing

01:24 between the connection is not supported

01:26 and I'll talk more about that shortly,

01:28 but essentially what it means is

01:30 once AWS learns about your side of the prefixes,

01:34 AWS does not further share these prefixes with,

01:37 you know, other customers

01:39 because AWS would be having direct connect connection

01:42 with multiple customers.

7. AWS 执行入站包过滤

时间范围:01:43–02:07

Public VIF inbound policy stating AWS performs inbound packet filtering

总结 / Summary

中文

AWS 根据 BGP 已接受的客户前缀执行入站包过滤(Inbound Packet Filtering)。若数据包源地址来自未通告或未授权的前缀,AWS 会拒绝该流量。

English

AWS performs inbound packet filtering against the accepted customer prefixes and rejects packets sourced from unadvertised or unauthorized ranges.

Transcript

01:43 So AWS does not advertise it further to the other customers.

01:47 AWS also performs the inbound packet filtering now

01:50 because AWS knows your side of the IP prefixes.

01:53 It makes sure that AWS is receiving traffic

01:56 only from those prefixes.

01:58 So if you send the packet from a new IP prefixes,

02:02 which is not advertised over BGP,

02:04 AWS will reject that traffic.

8. Public VIF 入站拓扑

时间范围:02:07–02:27

Public VIF inbound topology across AWS Regions and a corporate data center

总结 / Summary

中文

架构图显示一个企业数据中心(Corporate Data Center)通过 Public VIF 连接 AWS,并可访问多个 AWS 区域(AWS Regions)的公共服务;旁边的其他客户连接用于说明隔离边界。

English

The topology shows a corporate data center reaching public services across multiple AWS Regions through a Public VIF, with other customer connections shown to illustrate isolation.

Transcript

02:07 So let's look at through this architecture.

02:09 On the right side, of course you have corporate data center

02:11 and on left side, you have all AWS regions.

02:14 Now, because we are talking about the public wifi,

02:17 then you can access all AWS region as you know.

02:20 So on your corporate data center side,

02:22 you might be having some network ranges.

02:24 One of the range is this, 192.168,

9. 客户与 AWS 公网前缀

时间范围:02:27–02:42

Public VIF topology labeled with customer CIDRs and AWS public range

总结 / Summary

中文

客户侧示例前缀为 77.11.23.0/24 和 192.168.0.0/16,AWS 侧显示 0.0.0.0/0 作为公共目标范围示意;实际 Public VIF 通告必须满足公网前缀所有权要求。

English

The diagram labels example customer CIDRs and an AWS public destination range. Actual Public VIF advertisements must satisfy public-prefix ownership requirements.

Transcript

02:27 and there could be additional network ranges as well.

02:30 Now you want to advertise these routes to AWS

02:33 over a BGP session.

02:34 So first thing you must own these networks

02:37 and AWS will verify that

02:38 before setting up this BGP connection.

02:41 And once that is done,

10. 通告路由并验证所有权

时间范围:02:42–03:04

Public VIF topology showing route advertisement and Must Own requirement

总结 / Summary

中文

客户通过 BGP 向 AWS 通告路由,AWS 先验证“必须拥有”(Must Own)这些前缀,再让这些路由用于 AWS 公共服务的返回路径。

English

The customer advertises routes to AWS over BGP. AWS verifies that the customer owns them before using them for return traffic from AWS public services.

Transcript

02:42 you advertise these routes and these routes get advertised

02:46 to all AWS regions

02:47 because public wifi allows you to

02:50 connect to all AWS regions.

02:52 Now once AWS learns about these prefixes from your end,

02:57 AWS could also propagate these routes to the other customer,

03:01 but as transitive routing is not supported,

11. 阻断跨客户传递

时间范围:03:04–03:12

Public VIF topology blocking propagation to other customers

总结 / Summary

中文

红色叉号表示 AWS 不会把该客户路由传播到其他客户、其他 Direct Connect 连接或合作伙伴网络,从而避免形成跨客户传递。

English

The red X shows that AWS does not propagate the customer's routes to other customers, Direct Connect connections, or partner networks.

Transcript

03:04 and this is not something that you want, right?

03:06 You don't want your routes to be published

03:08 to some other customers, right?

03:10 So that's where this is not supported.

12. 传递路由限制说明

时间范围:03:12–03:21

Public VIF topology with transitive routing not supported callout

总结 / Summary

中文

Public VIF 的传递路由(Transitive Routing)限制覆盖其他 AWS Direct Connect 客户、与 AWS 全球网络对等的网络以及 Amazon 的传输提供商(Transit Providers)。

English

The no-transit rule covers other Direct Connect customers, networks peering with the AWS global network, and Amazon transit providers.

Transcript

03:12 That means transitive routing is not valid.

03:16 So that's one thing that you need to understand

03:18 with respect to the inbound routing policies.

13. Public VIF 出站策略概览

时间范围:03:21–03:44

Public VIF outbound routing policy overview

总结 / Summary

中文

出站策略(Outbound Policy)描述从 AWS 返回客户路由器的流量如何选择路径,尤其适用于客户拥有多条 Direct Connect 连接的情况。

English

Outbound policy governs how AWS selects a path toward the customer router, especially when multiple Direct Connect connections are available.

Transcript

03:21 Now let's talk about the public wifi

03:23 outbound outing policies.

03:25 Outbound means the traffic,

03:27 which is flowing from AWS to the customer router.

03:30 Now in this case, how AWS takes that decision,

03:33 like I want to take one path over the other,

03:37 and this is essentially applicable

03:38 when there are multiple direct connect connections

03:41 between AWS and your on-premise networks, right?

14. 最长前缀与 AS_PATH 影响出站选路

时间范围:03:44–04:56

Public VIF outbound policy using longest prefix and AS PATH

总结 / Summary

中文

AWS 先应用最长前缀匹配(Longest Prefix Match);若前缀相同,可利用自治系统路径(AS_PATH)影响选择。更具体的前缀优先,而较短的 AS_PATH 通常更受偏好。

English

AWS first applies longest prefix match; for equal prefixes, AS_PATH can influence selection. More-specific routes win, and a shorter AS_PATH is generally preferred.

Transcript

03:44 So the longest prefix match takes the precedence.

03:47 That, that is obvious

03:48 and we have been seeing this in the various section,

03:52 like a VPN as well, right?

03:54 So what essentially this means is that

03:57 if on AWS side, you have multiple routes in the route table

04:03 and say, one route is with a slash 16 prefix,

04:06 another route is with slash 28 prefix.

04:09 And if there are two connection to reach to the destination,

04:12 which route it will take?

04:14 So if your IP address falls in slash 28 range,

04:18 then it would take that prefix,

04:19 even though the IP address also falls into a slash 16 range,

04:23 but slash 28 is more, you know,

04:26 longest prefix, I would say.

04:27 More specific, right?

04:29 In that case, that route will be,

04:31 or that path will be selected

04:32 for sending the traffic to customer router site.

04:36 And the other thing is ASPATH.

04:38 We learned about ASPATH in BGP session as well.

04:41 Essentially, this means how many hubs are there

04:44 to reach to the destination.

04:46 Longest ASPATH, less paper path it would be, right?

04:50 So these are the outbound policies,

04:51 which also influence the routing decision

04:53 for outbound connection.

15. AWS 通告本地与远程区域前缀

时间范围:04:56–05:19

Public VIF outbound policy advertising local and remote AWS Region prefixes

总结 / Summary

中文

AWS Direct Connect 会向客户网络通告本地和远程 AWS 区域(AWS Region)的公共前缀,使客户路由器能够把相关流量正确送入 Public VIF。

English

AWS Direct Connect advertises local and remote AWS Region public prefixes so the customer router can send corresponding traffic over the Public VIF.

Transcript

04:56 Now, AWS also advertises all local

04:58 and remote AWS region prefixes to your network.

05:02 And this is important because otherwise,

05:04 if your network does not know about

05:06 those public IP prefixes,

05:09 then it does not really help you

05:11 to route the traffic to AWS.

05:17 with something called NO Export BGP communities.

16. NO_EXPORT 社区标签

时间范围:05:19–05:47

Public VIF outbound policy adding NO EXPORT BGP community

总结 / Summary

中文

AWS 通告公共前缀时附带 NO_EXPORT BGP 社区(BGP Community),要求客户不要把这些 AWS 路由继续导出到其网络边界之外。

English

AWS advertises public prefixes with a NO_EXPORT BGP community, indicating that customers must not propagate those routes beyond their network boundary.

Transcript

05:19 AWS will also advertise all the public prefixes

05:20 Now what that means is

05:21 once you learn the routes from the AWS,

05:24 you should not further export these routes

05:27 to the other networks outside of your network.

05:30 Not similar to what AWS does as a non transitory routing

05:34 in case of inbound, right?

05:36 We said that AWS does not share those routes

05:38 with the other customers.

05:40 Same thing applies to you as well.

05:41 You should not further export these routes

05:44 to the other networks.

17. 7224:8100 与 7224:8200 社区

时间范围:05:47–06:19

Public VIF outbound policy adding AWS BGP community tags 7224 8100 and 7224 8200

总结 / Summary

中文

AWS 还可通告 7224:8100 和 7224:8200 等 BGP 社区标签(BGP Community Tags),帮助客户按路由来源范围过滤,只接收本地区域或更广范围的公共前缀。

English

AWS also advertises communities such as 7224:8100 and 7224:8200, allowing customers to filter public routes by their AWS geographic scope.

Transcript

05:47 Now, additionally,

05:48 AWS also advertises some BGB community tags.

05:52 Now, what does BGB community tags mean?

05:55 We will see shortly,

05:57 but what the purpose of this community tag

06:00 is to filter the traffic at your end.

06:02 And in the start of this section, I told you that,

06:04 you know, you can filter whether you want to talk to

06:06 only one AWS region or you want to the multiple AWS region,

06:11 that can be done using this BGP community tags.

06:14 And we'll see example of that shortly.

18. AWS 路由不得越过客户网络边界

时间范围:06:19–06:33

Public VIF outbound policy prohibiting re advertisement beyond the customer network

总结 / Summary

中文

经 AWS Direct Connect 学到的前缀不得继续通告到客户连接的网络边界之外;这与 AWS 入站侧不向其他客户传递客户路由的原则相呼应。

English

Prefixes learned from AWS Direct Connect must not be advertised beyond the customer's network boundary, mirroring AWS's own non-transitive treatment of customer routes.

Transcript

06:19 Now, the prefixes advertised by AWS Direct Connect

06:21 must not be advertised beyond the network boundaries

06:23 of your connection.

06:24 We just talked about that when we say

06:26 there is a No Export BGP community tag,

06:29 which AWS sends along with the routes.

19. 多 DX 连接的负载共享与主备设计

时间范围:06:33–07:24

Completed Public VIF outbound routing policies including load sharing with path attributes

总结 / Summary

中文

组合最长前缀、AS_PATH 和 BGP 社区可设计多条 DX 连接的负载共享或主备(Active/Passive)架构。课程还提到可通过多出口鉴别器(Multi-Exit Discriminator, MED)等路径属性调节流量分配,后续用场景进一步演示。

English

Combining longest prefix, AS_PATH, and BGP communities supports load-sharing or active/passive designs across multiple DX connections. MED and other path attributes can further tune traffic distribution.

Transcript

06:33 And finally,

06:35 with the combination of this ASPATH and BGP communities,

06:39 you can actually design

06:41 different type of the network architecture.

06:44 That means if you're multiple direct connect connection

06:46 to reach to the target,

06:48 you can decide if I want to do a load sharing of the traffic

06:50 between these two connection,

06:52 or maybe sometimes you want to have one connection

06:54 as an active and one connection as a passive.

06:56 Now this can be done using the combination of,

06:59 you know, routing policies as well as BGP communities.

07:03 So now with basic understanding of how the routing

07:06 and BGP communities work,

07:08 let's try to build some architecture

07:10 when it comes to the traffic flowing

07:13 between the AWS and on-premise network

07:15 and when there are multiple direct connect connections.

07:17 So how do you make a choice

07:19 for one connection over the other?

07:21 So let's get into that.

07:22 Thanks for watching.

整讲总结 / Overall Summary

中文

Public VIF 的入站策略要求客户通过 BGP 通告自己拥有的公网 IPv4/IPv6 前缀,流量目标必须是 Amazon 公网前缀;AWS 会验证前缀所有权、执行入站包过滤,并禁止跨客户传递路由(Transitive Routing)。出站方向上,AWS 通告本地与远程区域的公共前缀,并用 NO_EXPORT 及 7224:8100、7224:8200 等 BGP 社区(BGP Communities)标记传播范围。多条 DX 连接之间可通过最长前缀匹配(Longest Prefix Match)、AS_PATH、MED 和社区策略实现负载共享或主备路径。

English

Public VIF inbound policy requires customers to advertise owned public IPv4/IPv6 prefixes over BGP, with traffic destined for Amazon public prefixes. AWS validates ownership, filters inbound packets, and prevents transitive propagation across customers. Outbound, AWS advertises local and remote Region public prefixes with NO_EXPORT and communities such as 7224:8100 and 7224:8200. Multiple DX links can be shaped into load-sharing or active/passive designs using longest prefix, AS_PATH, MED, and community policy.

返回顶部 ↑