Câu hỏi lấy từ 4 đề mock HCIP Advanced R&S, giữ nguyên tiếng Anh, giải thích tiếng Việt. Chỗ đáp án gốc của mock còn tranh cãi được ghi chú trong phần giải thích. Thấy đáp án chưa đúng thì bấm Báo lỗi.
To protect a device against the attacks of forged BGP messages, you can configure GTSM to check whether the TTL value in the IP message header is within the specified range. If the peer x.x.x.x valid-ttl-hops 100 command is configured on a device, the valid TTL value range of the detected message is [155, 255].
Đáp án: False
Với valid-ttl-hops n, dải TTL hợp lệ là [255 − n + 1, 255]. Với n = 100 thì dải là [156, 255], không phải [155, 255].
Câu 2BGPĐúng hay sai
Mock 1, câu 4
To reduce the possibility of attacks on BGP, use MD5 authentication between BGP peers. The MD5 algorithm is easy to configure and generates a single password that can only be changed manually.
Đáp án: True
Xác thực MD5 cho BGP dùng một mật khẩu tĩnh, muốn đổi phải cấu hình tay. Keychain thì khác: có thể tự đổi key theo lịch. Mệnh đề đúng.
Câu 3BGPĐúng hay sai
Mock 1, câu 10
When there are multiple equal-cost routes to the same destination, BGP can perform load balancing among these routes to load balance traffic. However, load balancing cannot be performed between IBGP and EBGP routes to the same destination on the public network.
Đáp án: True
Mặc định BGP chỉ cân bằng tải giữa các route cùng loại (cùng EBGP hoặc cùng IBGP). Trên public network không cân bằng tải giữa IBGP và EBGP.
Câu 4BGPĐúng hay sai
Mock 1, câu 11
A large-scale BGP network has a large number of peers. Configuring and maintaining these peers is difficult. You can add the BGP peers with the same configurations to a BGP peer group and then configure the BGP peers in batches to simplify peer management and improve route advertisement efficiency. When configuring an IBGP peer group, you do not need to specify an AS number for the peer group. When configuring an EBGP peer group, you must specify an AS number for the peer group.
Đáp án: True
Đồng ý với đáp án theo cách viết trong tài liệu Huawei: IBGP peer group dùng luôn AS local nên không cần khai AS, EBGP peer group thì phải khai AS cho peer. Lưu ý thực tế: một EBGP group có thể chứa peer thuộc nhiều AS khác nhau, khi đó AS được khai cho từng peer chứ không khai cho cả group.
Câu 5BGPĐúng hay sai
Mock 1, câu 12
Prefix-based outbound route filtering (ORF) enables a device to send locally configured prefix-based import policies to its BGP peers through Route-refresh messages. The BGP peers construct export policies based on the received policies to filter routes to be advertised. Compared with configuring routing policies on BGP peers, this method prevents the local device from receiving a large number of useless routes, and reduces the CPU usage and configuration workload on the local device.
Đáp án: False
Cơ chế ORF mô tả đúng, nhưng phép so sánh sai. Lợi ích của ORF là so với việc chỉ lọc ở chiều import trên thiết bị local (vẫn phải nhận hết route rồi mới lọc). Nếu cấu hình export policy ngay trên BGP peer thì local cũng không nhận route thừa. Cái ORF tiết kiệm là công cấu hình phía peer.
Câu 6BGPChọn một
Mock 1, câu 22
On the network shown in the figure, OSPF runs on R1, R2, and R3, and R1 and R3 use loopback interfaces to establish an IBGP peer relationship. BFD is enabled in the BGP process. The minimum interval for sending BFD packets is 1000 ms, the minimum interval for receiving BFD packets is 1000 ms, and the detection multiplier is 6. If OSPF is disabled on GE0/0/1 of R2 using the undo network x.x.x.x y.y.y.y command, which of the following is the longest period after which the BGP peer relationship of R1 will change from Up to Down?
Đáp án: D
Khi đường giữa hai loopback bị mất, gói BFD của BGP không đi được nữa. Thời gian phát hiện = 1000 ms × 6 = 6 s, sau đó BFD báo BGP down, nên lâu nhất là 6 s.
Câu 7BGPChọn một
Mock 1, câu 23
IGP convergence is faster than BGP convergence, which may cause network traffic loss. On an OSPF-enabled network, you can enable OSPF-BGP interworking to ensure that the device remains in a specified state for a specified period of time, preventing traffic loss. Which of the following statements about this particular state is incorrect?
Đáp án: C
stub-router on-startup / OSPF-BGP interworking quảng bá metric tối đa (0xFFFF) để các router khác tránh đi qua thiết bị này, chờ BGP hội tụ xong. Cơ chế này không làm BGP hội tụ nhanh hơn, chỉ tránh mất traffic trong lúc chờ, nên C sai.
Câu 8BGPChọn một
Mock 1, câu 24
On the network shown in the figure, R1 and R2 use directly connected interfaces to establish an EBGP peer relationship, and BFD is enabled in the BGP process. The minimum interval for sending BFD packets is 1000 ms, the minimum interval for receiving BFD packets is 1000 ms, and the detection multiplier is 6. If the IP address of GE0/0/0 on R2 is deleted, which of the following is the longest period after which the BGP peer relationship of R1 will change from Up to Down?
Đáp án: C
Interface của R1 vẫn up nên R1 không phát hiện ngay (cơ chế down ngay khi interface down chỉ áp dụng cho interface local). R1 chỉ biết khi BFD không nhận được gói: 1000 ms × 6 = 6 s.
Câu 9BGPChọn một
Mock 1, câu 25
On the network shown in the figure, EBGP peer relationships are established between neighboring routers through directly connected interfaces. The router ID of each router is 10.0.X.X, and the AS number is 6500X, where X is the number of the router. Both R1 and R4 have static routes to 192.168.1.0/24, which are imported to BGP through the import-route command. By default, which of the following is the greatest AS_Path length in the route to 192.168.1.0/24 received by R6?
Đáp án: C
BGP chỉ quảng bá route tốt nhất. R6 có neighbor R2, R3, R5. R2 và R5 nối trực tiếp R1/R4 nên best path dài 1 và gửi cho R6 dài 2. R3 không nối trực tiếp R1/R4, best path dài 2 (qua R2 hoặc R5) và gửi cho R6 dài 3. Vậy dài nhất là 3.
Câu 10BGPChọn một
Mock 1, câu 30
On the network shown in the figure, EBGP peer relationships are established between neighboring routers through directly connected interfaces. The AS number is 6500X, where X is the number of the router. Both R1 and R4 have static routes to 192.168.1.0/24, which are imported to BGP through the import-route command. By default, in the routing table of R3, which of the following is the AS_Path attribute carried in the route to 192.168.1.0/24?
Đáp án: D
R3 chỉ có neighbor R2 và R6. Từ R2 nhận AS_Path 65002 65001 (dài 2). Từ R6 nhận 65006 65005 65004 (dài 3). R3 chọn AS_Path ngắn hơn: 65002, 65001.
Câu 11BGPChọn một
Mock 1, câu 33
On the network shown in the figure, EBGP peer relationships are established between neighboring routers through directly connected interfaces. The AS number is 6500X, where X is the number of the router. Both R1 and R4 have static routes to 192.168.1.0/24, which are imported to BGP through the import-route command. The maximum number of equal-cost EBGP routes for load balancing is set to 8 on R3. By default, which of the following is the number of equal-cost routes from R3 to 192.168.1.0/24?
Đáp án: B
R3 nhận các route dài 2 từ R2 (65002 65001) và R5 (65005 65001). Điều kiện ECMP BGP mặc định yêu cầu AS_Path giống hệt nhau, chứ không chỉ cùng độ dài. Hai AS_Path này khác nhau nên chỉ có 1 route (trừ khi bật load-balancing as-path-ignore/as-path-relax).
Ghi chú về đáp án: Thầy bảo đáp án C.
Câu 12BGPChọn một
Mock 1, câu 35
On the network shown in the figure, OSPF runs on R1, R2, and R3, and OSPF BFD is enabled. R1 and R3 use loopback interfaces to establish an IBGP peer relationship. If GE0/0/1 of R2 is shut down, which of the following is the longest period after which the BGP peer relationship of R1 will change from Up to Down?
Đáp án: B
Chỉ có OSPF BFD, BGP không bật BFD. OSPF hội tụ nhanh và R1 mất route tới loopback R3, nhưng session IBGP multi-hop không down theo route. Phải chờ Hold timer hết: 180 s.
Câu 13BGPChọn một
Mock 1, câu 36
On the network shown in the figure, OSPF runs on R1, R2, and R3, and R1 and R3 use loopback interfaces to establish an IBGP peer relationship. If OSPF is disabled on GE0/0/1 of R2 using the undo network x.x.x.x y.y.y.y command, which of the following is the longest period after which the BGP peer relationship of R1 will change from Up to Down?
Đáp án: B
Không có BFD cho BGP. BGP chỉ down khi Hold timer (mặc định 180 s) hết hạn.
Câu 14BGPChọn nhiều
Mock 1, câu 41
On the network shown in the figure, IS-IS runs on R1, R2, R4, and R5, and the area ID is 49.0001. IS-IS runs on R3 and R6, and the area ID is 49.0002. In AS 65000, R1, R3, R4, and R6 each establish IBGP peer relationships with R2 and R5. R2 and R5 are RRs, and R1, R4, R3, and R6 are clients. The IBGP peer relationships are established using Loopback0. The IP address of Loopback0 on each router is 10.0.X.X/32, and the router ID is 10.0.X.X, where X is the number of the router. R1 and R4 import the external route 192.168.1.0/24 to BGP through the import-route command, and R3 and R6 import the external route 192.168.2.0/24 to BGP through the import-route command. Which of the following statements are true?
Đáp án: A, C, D
A: R1 là L1 nên không có route tới loopback R3/R6 (L2 không leak xuống L1). Mặc định Huawei không cho BGP next hop recurse qua default route, nên 192.168.2.0/24 không vào IP routing table. B sai: R2 và R5 đều reflect route của R1 (originator 10.0.1.1). R3 và R6 nhận hai bản giống nhau, so tới router ID của peer thì R2 (10.0.2.2) nhỏ hơn, nên cả hai cùng chọn R2. C: next hop BGP là 10.0.1.1, R3 đi tới đó qua R2 hoặc R5 với cost bằng nhau, nên có 2 next hop IGP. D: R4 có default từ ATT bit của cả R2 và R5, cost bằng nhau.
Câu 15BGPChọn nhiều
Mock 1, câu 43
On the network shown in the figure, EBGP peer relationships are established between neighboring routers through directly connected interfaces. The router ID of each router is 10.0.X.X, and the AS number is 6500X, where X is the number of the router. Both R1 and R4 have static routes to 192.168.1.0/24, which are imported to BGP through the import-route command. Which of the following statements are true?
Đáp án: A, B
R2 và R5 đều nối trực tiếp cả R1 lẫn R4. Hai route có thuộc tính như nhau, nên chọn theo router ID nhỏ hơn: R1. Vì vậy R2 → R1 (A đúng) và R5 → R1 (C sai). R3 nhận route dài 2 từ R2 và R5, chọn R2 (router ID nhỏ hơn): R3 → R2 → R1 (B đúng). R6 nhận từ R2 và R5, cũng chọn R2: R6 → R2 → R1 (D sai).
Câu 16BGPChọn nhiều
Mock 1, câu 46
On the network shown in the figure, IS-IS runs on R1, R2, R4, and R5, and the area ID is 49.0001. IS-IS runs on R3 and R6, and the area ID is 49.0002. In AS 65000, R1, R3, R4, and R6 each establish IBGP peer relationships with R2 and R5. R2 and R5 are RRs, and R1, R4, R3, and R6 are clients. The IBGP peer relationships are established using Loopback0. The IP address of Loopback0 on each router is 10.0.X.X/32, and the router ID is 10.0.X.X, where X is the number of the router. R1 and R4 import the external route 192.168.1.0/24 to BGP through the import-route command, and R3 and R6 import the external route 192.168.2.0/24 to BGP through the import-route command. Which of the following statements are true?
Đáp án: A, B, D
R1 không có route BGP 192.168.2.0/24 (câu 41), nên traffic đi theo default ATT tới R2 hoặc R5 (ECMP). R2/R5 có route BGP tới R3, nên A và B đều có thể. Từ R3, route 192.168.1.0/24 có BGP next hop là 10.0.1.1 (R1), nên traffic tới R1 qua R2 hoặc R5. R3 → R2 → R1 được (D). R3 → R5 → R4 không được vì đích là R1 chứ không phải R4 (C sai).
Câu 17BGPChọn nhiều
Mock 1, câu 48
On the network shown in the figure, IS-IS runs on R1, R2, R4, and R5, and the area ID is 49.0001. IS-IS runs on R3 and R6, and the area ID is 49.0002. In AS 65000, R1, R3, R4, and R6 each establish IBGP peer relationships with R2 and R5. R2 and R5 are RRs, and R1, R4, R3, and R6 are clients. The IBGP peer relationships are established using Loopback0. The IP address of Loopback0 on each router is 10.0.X.X/32, and the router ID is 10.0.X.X, where X is the number of the router. R1 and R4 import the external route 192.168.1.0/24 to BGP through the import-route command, and R3 and R6 import the external route 192.168.2.0/24 to BGP through the import-route command. Which of the following statements are true?
Đáp án: C, D
A sai một cách tinh tế: R2 chọn route nhận trực tiếp từ client R1, mà route này chưa có Originator_ID (thuộc tính chỉ được thêm khi RR reflect). B sai: originator là R1 (10.0.1.1), R2 chỉ là RR. C đúng: route R6 nhận được do RR reflect có Originator_ID 10.0.1.1. D đúng: R5 chọn R1 vì router ID nhỏ hơn R4.
Câu 18BGPChọn nhiều
Mock 1, câu 51
On the network shown in the figure, IS-IS runs on R1, R2, R4, and R5, and the area ID is 49.0001. IS-IS runs on R3 and R6, and the area ID is 49.0002. In AS 65000, R1, R3, R4, and R6 each establish IBGP peer relationships with R2 and R5. R2 and R5 are RRs, and R1, R4, R3, and R6 are clients. The IBGP peer relationships are established using Loopback0. The IP address of Loopback0 on each router is 10.0.X.X/32, and the router ID is 10.0.X.X, where X is the number of the router. R1 and R4 import the external route 192.168.1.0/24 to BGP through the import-route command, and R3 and R6 import the external route 192.168.2.0/24 to BGP through the import-route command. Which of the following statements are true?
Đáp án: A, B, C, D
Các route có thuộc tính và IGP cost bằng nhau, nên quyết định ở router ID / originator nhỏ hơn. Với 192.168.2.0/24, R2 và R5 chọn R3 (10.0.3.3 < 10.0.6.6). Với 192.168.1.0/24, R3 và R6 chọn bản reflect từ R2 (peer router ID nhỏ hơn R5).
Câu 19BGPĐiền vào
Mock 1, câu 57
To protect a device against the attacks of forged BGP messages, you can configure GTSM to check whether the TTL value in the IP message header is within the specified range. If the peer x.x.x.x valid-ttl-hops 100 command is configured on a device, the valid TTL value range of the detected message is [______, 255]. (Enter only digits.)
Đáp án: 156
255 − 100 + 1 = 156 (xem câu 2 của Mock 1).
Câu 20BGPĐúng hay sai
Mock 2, câu 4
On the network shown in the figure, R1 and R2 establish an EBGP peer relationship. R1 imports the route of the loopback interface using the network 2000::1 128 command. In Update messages sent by R1, the value of the Next_Hop attribute (well-known mandatory attribute) is 2000:12::1.
Đáp án: False
Với IPv6, BGP không dùng thuộc tính Next_Hop (well-known mandatory của IPv4). Next hop IPv6 nằm trong thuộc tính MP_REACH_NLRI (optional non-transitive). Đề gán giá trị cho sai thuộc tính nên mệnh đề sai.
Câu 21BGPĐúng hay sai
Mock 2, câu 6
To reduce the possibility of attacks on BGP, use keychain authentication between BGP peers. The keychain algorithm generates a set of passwords. Keychain authentication allows a password to be automatically changed based on the configuration. Therefore, keychain authentication applies to networks requiring high security.
Đáp án: True
Keychain gồm nhiều key, mỗi key có thời gian hiệu lực, nên tự động đổi mật khẩu theo lịch. Vì vậy keychain an toàn hơn MD5 tĩnh.
Câu 22BGPĐúng hay sai
Mock 2, câu 16
On a BGP network, you can configure prefix-based ORF to enable BGP devices to receive only required routes.
Đáp án: True
Với ORF, thiết bị gửi chính sách import cho peer, peer chỉ gửi những route phù hợp, nên thiết bị chỉ nhận route cần thiết.
Câu 23BGPChọn một
Mock 2, câu 21
As shown in the figure, R1 advertises EBGP routes to R2, and R2 advertises EBGP routes to R3. An engineer checks the BGP routing tables of R2 and R3 and finds that no entry is displayed on R3. In addition, the engineer only configures the AS_Path filter on R3. Which of the following statements about the preceding scenario is incorrect?
Đáp án: D
AS_Path khi tới R3 là "102 101". ^10 khớp (102 bắt đầu bằng 10). 101$ khớp (kết thúc bằng 101). Thiếu permit .* thì mọi route bị deny ngầm định. Còn ^101 yêu cầu AS_Path bắt đầu bằng 101, không khớp với "102 101", nên không giải thích được việc R3 mất route. Vì vậy D là mệnh đề không đúng.
Câu 24BGPChọn một
Mock 2, câu 27
As shown in the figure, AS 101, AS 102, and AS 103 communicate with each other through BGP. EBGP peer relationships are established between R1 and R2, and between R2 and R3. R1 adds the community attribute <101:1> to the route to 10.1.1.1, and R2 adds the community attribute to the route to 10.1.1.1. An engineer checks the entry of the route to 10.1.1.1. Then, the engineer performs the related configuration in Step 2 on R2. Which of the following statements about the preceding scenarios is true?
Đáp án: C
Origin là igp, nên route được đưa vào bằng lệnh network chứ không phải import-route (import-route cho origin incomplete), A sai. Route mang no-export và hiển thị "Not advertised to any peer yet", B sai. Ở Step 2, route-policy trên R2 deny route khớp community 101:1 theo chiều export tới R3, nên R3 không nhận được route nữa (C đúng, D sai).
Câu 25BGPChọn một
Mock 2, câu 29
A BGP peer group is a set of peers that have the same policies. Which of the following statements about a peer group is true?
Đáp án: B
Policy áp lên group được kế thừa bởi mọi member, nên có thể ảnh hưởng route của tất cả (B). Peer phải được thêm vào group thủ công (C sai). Có cả EBGP peer group (D sai). (Đề gốc có lẫn chuỗi "+D13:G13" ở đáp án B, đã lược bỏ.)
Câu 26BGPChọn nhiều
Mock 2, câu 40
The ip as-path-filter 1 permit ^10[^3-7]$ command is configured on a BGP router. Which of the following AS_Path items can be matched by the command?
Đáp án: B, D
Biểu thức khớp số có 3 chữ số dạng 10x, với x không nằm trong 3-7: tức 100, 101, 102, 108, 109. Trong các đáp án chỉ có 102 và 108.
Câu 27BGPChọn nhiều
Mock 2, câu 52
On the network shown in the figure, IS-IS runs on R1, R2, R4, and R5, and the area ID is 49.0001. IS-IS runs on R3 and R6, and the area ID is 49.0002. The import-route isis level-2 into level-1 command is configured on R2. In AS 65000, R1, R3, R4, and R6 each establish IBGP peer relationships with R2 and R5. R2 and R5 are RRs, and R1, R4, R3, and R6 are clients. The IBGP peer relationships are established using Loopback0. The IP address of Loopback0 on each router is 10.0.X.X/32, and the router ID is 10.0.X.X, where X is the number of the router. R1 and R4 import the external route 192.168.1.0/24 to BGP through the import-route command, and R3 and R6 import the external route 192.168.2.0/24 to BGP through the import-route command. Which of the following statements are true?
Đáp án: B, C, D
R2 leak route L2 (loopback của R3/R6) xuống L1, nên next hop BGP của 192.168.2.0/24 recurse được và R1 có route này (B). Chỉ R2 leak, R5 thì không, nên trên R4 route tới loopback R3/R6 chỉ đi qua R2, tức một next hop (A sai). R1 và R4 đều nối trực tiếp R2 và R5, cả hai set ATT bit, nên có 2 default ECMP (C, D).
Câu 28BGPChọn một
Mock 4, câu 36
If technology migration on the network affects the services running on the live network, strictly follow the preset operation process and risk control measures during the implementation of the technology migration project. Generally, this type of project is defined as a migration project. Which of the following operations performed on the live network belongs to a non-migration project?
Đáp án: A
Sửa description interface không ảnh hưởng dịch vụ. Đổi IS-IS level, đổi cách đưa route vào BGP hay đổi loại area OSPF đều làm route tính lại hoặc gián đoạn, nên là dự án migration.