تسعى مجموعة الوثائق لهذا المنتج جاهدة لاستخدام لغة خالية من التحيز. لأغراض مجموعة الوثائق هذه، يتم تعريف "خالية من التحيز" على أنها لغة لا تعني التمييز على أساس العمر، والإعاقة، والجنس، والهوية العرقية، والهوية الإثنية، والتوجه الجنسي، والحالة الاجتماعية والاقتصادية، والتمييز متعدد الجوانب. قد تكون الاستثناءات موجودة في الوثائق بسبب اللغة التي يتم تشفيرها بشكل ثابت في واجهات المستخدم الخاصة ببرنامج المنتج، أو اللغة المستخدمة بناءً على وثائق RFP، أو اللغة التي يستخدمها منتج الجهة الخارجية المُشار إليه. تعرّف على المزيد حول كيفية استخدام Cisco للغة الشاملة.
ترجمت Cisco هذا المستند باستخدام مجموعة من التقنيات الآلية والبشرية لتقديم محتوى دعم للمستخدمين في جميع أنحاء العالم بلغتهم الخاصة. يُرجى ملاحظة أن أفضل ترجمة آلية لن تكون دقيقة كما هو الحال مع الترجمة الاحترافية التي يقدمها مترجم محترف. تخلي Cisco Systems مسئوليتها عن دقة هذه الترجمات وتُوصي بالرجوع دائمًا إلى المستند الإنجليزي الأصلي (الرابط متوفر).
الغرض من هذا المستند هو توضيح سلوك تحديد المسار أولا (OSPF) لفتح أقصر مسار عندما يستقبل الموجه إعلان حالة إرتباط (LSA) من النوع 5 و Type-7 LSA لشبكة خارجية معينة. عند إجراء إعادة التوزيع في منطقة غير NSSA، سيقوم OSPF بحقن LSA من النوع 5 في مجال OSPF. تؤدي إعادة التوزيع في منطقة NSSA إلى إنشاء نوع خاص من LSA يشار إليه باسم Type-7، والذي يمكن أن يكون موجودا فقط في منطقة NSSA.
ارجع إلى الرسم التخطيطي للشبكة في الشكل 1 عند إستخدام هذا المستند:

شكل 1
في الرسم التخطيطي للشبكة، يوجد كل من المنطقة رقم 1 غير الأساسية ومنطقة NSSA رقم 50 المتصلة بالخادم رقم R1. R1 هو موجه حدود المنطقة (ABR) متصل بمنطقة العمود الفقري 0. يتحمل كل من R2 و R3 مسؤولية إعادة توزيع نفس البادئة 192.0.2.100/32 إلى مجال OSPF.
توصي Cisco بأن تكون لديك معرفة ببروتوكول OSPF.
تستند المعلومات الواردة في هذا المستند إلى إصدارات البرامج التالية:
تدعم أجهزة Cisco IOS-XE RFC 3101 لحساب المسار الخارجي. يتم إلغاء RFC 1587 بواسطة RFC 3101 ولكن لا يزال يمكن تمكين السلوك المحدد ل RFC 1587 من خلال التكوين. في الإصدار 15.1(2)S من Cisco IOS والإصدارات الأحدث، يعرض إخراج الأمر show ip ospf ما إذا كان الجهاز يستخدم RFC 3101 أو RFC 1587.
(e) If the current LSA is functionally the same as an installed LSA (i.e., same destination, cost and non-zero forwarding address) then apply the following priorities in deciding which LSA is preferred: 1. A Type-7 LSA with the P-bit set. 2. A Type-5 LSA. 3. The LSA with the higher router ID.
5. Otherwise, compare the cost of this new AS external path
to the ones present in the table. Note that type-5 and
type-7 routes are directly comparable. Type-1 external
paths are always shorter than Type-2 external paths.
Type-1 external paths are compared by looking at the sum
of the distance to the forwarding address/ASBR and the
advertised Type-1 paths (X+Y). Type-2 external paths are
compared by looking at the advertised Type-2 metrics,
and then if necessary, the distance to the forwarding
address/ASBR.
When a type-5 LSA and a type-7 LSA are found to have the
same type and an equal distance, the following priorities
apply (listed from highest to lowest) for breaking the tie.
a. Any type 5 LSA.
b. A type-7 LSA with the P-bit set and the forwarding
address non-zero.
c. Any other type-7 LSA.
If the new path is shorter, it replaces the present paths
in the routing table entry. If the new path is the same
cost, it is added to the routing table entry's list of
paths

شكل 2
في هذا السيناريو، سننظر في السلوك الذي تتم ملاحظته عند إستخدام RFC 3101 لحساب المسار الخارجي. سنكون مهتمين بالبادئة 192.0.2.100/32 التي تتم إعادة توزيعها على كل من R3 و R2.
نوع-1 LSA من R1 في الإخراج أدناه:
R1#show ip ospf database router 1.1.1.1
OSPF Router with ID (1.1.1.1) (Process ID 1)
Router Link States (Area 0)
LS age: 51
Options: (No TOS-capability, DC)
LS Type: Router Links
Link State ID: 1.1.1.1
Advertising Router: 1.1.1.1
LS Seq Number: 80000007
Checksum: 0x3BD6
Length: 48
Area Border Router
AS Boundary Router
Number of Links: 2
Link connected to: another Router (point-to-point)
(Link ID) Neighboring Router ID: 4.4.4.4
(Link Data) Router Interface address: 192.168.14.1
Number of MTID metrics: 0
TOS 0 Metrics: 1
Link connected to: a Stub Network
(Link ID) Network/subnet number: 192.168.14.0
(Link Data) Network Mask: 255.255.255.0
Number of MTID metrics: 0
TOS 0 Metrics: 1
Router Link States (Area 1)
LS age: 562
Options: (No TOS-capability, DC)
LS Type: Router Links
Link State ID: 1.1.1.1
Advertising Router: 1.1.1.1
LS Seq Number: 8000000C
Checksum: 0xEC26
Length: 48
Area Border Router
AS Boundary Router
Number of Links: 2
Link connected to: another Router (point-to-point)
(Link ID) Neighboring Router ID: 3.3.3.3
(Link Data) Router Interface address: 192.168.13.1
Number of MTID metrics: 0
TOS 0 Metrics: 1
Link connected to: a Stub Network
(Link ID) Network/subnet number: 192.168.13.0
(Link Data) Network Mask: 255.255.255.0
Number of MTID metrics: 0
TOS 0 Metrics: 1
Router Link States (Area 50)
LS age: 562
Options: (No TOS-capability, DC)
LS Type: Router Links
Link State ID: 1.1.1.1
Advertising Router: 1.1.1.1
LS Seq Number: 80000012
Checksum: 0x42CA
Length: 48
Area Border Router
AS Boundary Router
Number of Links: 2
Link connected to: another Router (point-to-point)
(Link ID) Neighboring Router ID: 2.2.2.2
(Link Data) Router Interface address: 192.168.12.1
Number of MTID metrics: 0
TOS 0 Metrics: 1
Link connected to: a Stub Network
(Link ID) Network/subnet number: 192.168.12.0
(Link Data) Network Mask: 255.255.255.0
Number of MTID metrics: 0
TOS 0 Metrics: 1
في R1 لدينا LSAs الخارجية التالية في قاعدة بياناتنا:
R1#show ip ospf database external
OSPF Router with ID (1.1.1.1) (Process ID 1)
Type-5 AS External Link States
LS age: 706
Options: (No TOS-capability, DC, Upward)
LS Type: AS External Link
Link State ID: 192.0.2.100 (External Network Number )
Advertising Router: 1.1.1.1
LS Seq Number: 80000001
Checksum: 0xE617
Length: 36
Network Mask: /32
Metric Type: 2 (Larger than any link state path)
MTID: 0
Metric: 20
Forward Address: 192.168.12.2
External Route Tag: 0
LS age: 600
Options: (No TOS-capability, DC, Upward)
LS Type: AS External Link
Link State ID: 192.0.2.100 (External Network Number )
Advertising Router: 3.3.3.3
LS Seq Number: 80000002
Checksum: 0xBFAC
Length: 36
Network Mask: /32
Metric Type: 2 (Larger than any link state path)
MTID: 0
Metric: 20
Forward Address: 0.0.0.0
External Route Tag: 0
R1#show ip ospf database nssa-external
OSPF Router with ID (1.1.1.1) (Process ID 1)
Type-7 AS External Link States (Area 50)
LS age: 865
Options: (No TOS-capability, Type 7/5 translation, DC, Upward)
LS Type: AS External Link
Link State ID: 192.0.2.100 (External Network Number )
Advertising Router: 2.2.2.2
LS Seq Number: 80000002
Checksum: 0x32BC
Length: 36
Network Mask: /32
Metric Type: 2 (Larger than any link state path)
MTID: 0
Metric: 20
Forward Address: 192.168.12.2
External Route Tag: 0
الآن دعونا نتحقق مما تفضله LSA على R1:
R1#show ip ospf rib 192.0.2.100
OSPF Router with ID (1.1.1.1) (Process ID 1)
Base Topology (MTID 0)
OSPF local RIB
Codes: * - Best, > - Installed in global RIB
LSA: type/LSID/originator
*> 192.0.2.100/32, NSSA2, cost 20, fwd cost 1, tag 0, area 50
SPF Instance 38, age 00:04:51
contributing LSA: 7/192.0.2.100/2.2.2.2 (area 50)
contributing LSA: 5/192.0.2.100/3.3.3.3
Flags: RIB, HiPrio, ViaFwAddr, IntraNonBB, NSSA P-bit
via 192.168.12.2, GigabitEthernet1 label 1048578
Flags: RIB
LSA: 7/192.0.2.100/2.2.2.2
كما يمكننا أن نرى في الإخراج أعلاه، يفضل R1 إتفاقات LSA النوع 7 من R2. هذا بسبب أننا نتبع RFC 3101، أي له تفضيل حساب المسار التالي
1. LSA من النوع 7 مع مجموعة بت.
2. A نوع-5 LSA.
3. LSA مع معرف الموجه الأعلى.
ملاحظة: يرجى الانتباه إلى أن تفضيل حساب المسار التالي قابل للتطبيق إذا كان بدل الإقامة اليومي الحالي مماثلا وظيفيا لبدل الإقامة اليومي المثبت. يمكننا التحقق من أن قياس إعادة التوجيه لكل من LSAs هو نفسه الذي ينظر إلى النوع 1 LSA من R1.
الآن إذا قمنا بمسح P-bit على NSSA type-7 LSA من R2، فسوف نرى أننا سنفضل Type-5 LSA من R3:
ملخص من RFC 3101 القسم 2.4
An NSSA internal AS boundary router must set the P-bit in the LSA header's option field of any Type-7 LSA whose network it wants advertised into the OSPF domain's full transit topology. The LSAs of these networks must have a valid non-zero forwarding address. If the P-bit is clear the LSA is not translated into a Type-5 LSA by NSSA border routers. When an NSSA border router originates both a Type-5 LSA and a Type-7 LSA for the same network, then the P-bit must be clear in the Type-7 LSA so that it isn't translated into a Type-5 LSA by another NSSA border router.
قبل المتابعة في مسح P-bit على R2، فيما يلي الناتج من النوع 7 LSA من R2
R2#show ip ospf database nssa-external
OSPF Router with ID (2.2.2.2) (Process ID 1)
Type-7 AS External Link States (Area 50)
LS age: 1215
Options: (No TOS-capability, Type 7/5 translation, DC, Upward)
LS Type: AS External Link
Link State ID: 192.0.2.100 (External Network Number )
Advertising Router: 2.2.2.2
LS Seq Number: 80000002
Checksum: 0x32BC
Length: 36
Network Mask: /32
Metric Type: 2 (Larger than any link state path)
MTID: 0
Metric: 20
Forward Address: 192.168.12.2
External Route Tag: 0
يمكن مسح P-Bit عندما ينشأ موجه حدود NSSA كل من LSA من النوع-5 و Type-7 LSA للشبكة نفسها.
R2#show ip ospf database nssa-external
OSPF Router with ID (2.2.2.2) (Process ID 1)
Type-7 AS External Link States (Area 50)
LS age: 44
Options: (No TOS-capability, No Type 7/5 translation, DC, Upward)
LS Type: AS External Link
Link State ID: 192.0.2.100 (External Network Number )
Advertising Router: 2.2.2.2
LS Seq Number: 80000003
Checksum: 0xBFAD
Length: 36
Network Mask: /32
Metric Type: 2 (Larger than any link state path)
MTID: 0
Metric: 20
Forward Address: 0.0.0.0
External Route Tag: 0
وفيما يلي بعض الخصائص الهامة المتعلقة بالناتج المذكور أعلاه:
الآن عندما نتحقق من R1 نرى أننا نفضل النوع 5 على النوع 7 LSA.
R1#show ip ospf rib 192.0.2.100
OSPF Router with ID (1.1.1.1) (Process ID 1)
Base Topology (MTID 0)
OSPF local RIB
Codes: * - Best, > - Installed in global RIB
LSA: type/LSID/originator
*> 192.0.2.100/32, Ext2, cost 20, fwd cost 1, tag 0
SPF Instance 39, age 00:03:32
contributing LSA: 7/192.0.2.100/2.2.2.2 (area 50)
contributing LSA: 5/192.0.2.100/3.3.3.3
Flags: RIB, HiPrio, IntraNonBB
via 192.168.13.3, GigabitEthernet2 label 1048578
Flags: RIB
LSA: 5/192.0.2.100/3.3.3.3

شكل 3
في هذا السيناريو، سننظر في السلوك الذي تتم ملاحظته عند إستخدام RFC 1587 لحساب المسار الخارجي. يتم تمكين التوافق مع معيار RFC 3101 تلقائيا على أجهزة IOS-XE. لاستبدال التوافق مع معيار RFC 3101 مع التوافق مع معيار RFC 1587 لتحديد المسار في موجهات حدود المنطقة (NSSA)، أستخدم الأمر compatibilityRFC1587 في وضع تكوين الموجه أو وضع تكوين عائلة العنوان. لاستعادة التوافق مع RFC 3101، أستخدم الصيغة no من هذا الأمر.
سنهتم بالبادئة 192.0.2.100/32 التي تتم إعادة توزيعها على كل من R3 و R2. أولا يجب تمكين توافق RFC 1587 على R1
R1#conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#router ospf 1 R1(config-router)#compatible rfc1587 R1#show ip ospf | in RFC Supports NSSA (compatible with RFC 1587)
بمجرد تمكيننا ل Compatibility RFC 1587 على R1، يمكننا التحقق من المسارات الموجودة في قاعدة البيانات الخاصة بنا وما هو المفضل ل LSA:
R1#show ip ospf database external
OSPF Router with ID (1.1.1.1) (Process ID 1)
Type-5 AS External Link States
LS age: 115
Options: (No TOS-capability, DC, Upward)
LS Type: AS External Link
Link State ID: 192.0.2.100 (External Network Number )
Advertising Router: 3.3.3.3
LS Seq Number: 80000003
Checksum: 0xBDAD
Length: 36
Network Mask: /32
Metric Type: 2 (Larger than any link state path)
MTID: 0
Metric: 20
Forward Address: 0.0.0.0
External Route Tag: 0
R1#show ip ospf database nssa-external
OSPF Router with ID (1.1.1.1) (Process ID 1)
Type-7 AS External Link States (Area 50)
LS age: 48
Options: (No TOS-capability, Type 7/5 translation, DC, Upward)
LS Type: AS External Link
Link State ID: 192.0.2.100 (External Network Number )
Advertising Router: 2.2.2.2
LS Seq Number: 80000005
Checksum: 0x2CBF
Length: 36
Network Mask: /32
Metric Type: 2 (Larger than any link state path)
MTID: 0
Metric: 20
Forward Address: 192.168.12.2
External Route Tag: 0
الآن دعونا نتحقق من ماهية LSA مفضل على R1:
R1#show ip ospf rib 192.0.2.100
OSPF Router with ID (1.1.1.1) (Process ID 1)
Base Topology (MTID 0)
OSPF local RIB
Codes: * - Best, > - Installed in global RIB
LSA: type/LSID/originator
*> 192.0.2.100/32, Ext2, cost 20, fwd cost 1, tag 0
SPF Instance 44, age 00:01:56
contributing LSA: 7/192.0.2.100/2.2.2.2 (area 50)
contributing LSA: 5/192.0.2.100/3.3.3.3
Flags: RIB, HiPrio, IntraNonBB, PartialSPF
via 192.168.13.3, GigabitEthernet2 label 1048578
Flags: RIB
LSA: 5/192.0.2.100/3.3.3.3
يفضل نوع-5 LSA.
في الإخراج المذكور أعلاه، قد تلاحظ أيضا أن R1 لا يقوم بترجمة النوع 7 إلى النوع 5، ويرجع ذلك إلى أن موجهات النوع 7 فقط التي تمت إضافتها إلى جدول التوجيه هي المرشحة للترجمة.
| المراجعة | تاريخ النشر | التعليقات |
|---|---|---|
1.0 |
05-Jan-2018
|
الإصدار الأولي |
التعليقات