Type5 to Type7 translation - completely lost

in CCIE
I am doing one of the INE AT workbook exercises. In this scenario NSSA Area 1 has three routers - R6 - 150.1.6.6 (ASBR redistributing its loopback), R1 and R4 (ABR's). I am seeing some behaviour which makes no sense to me at all Sad
My assumptions are - if a P-bit is set to zero then an LSA7 cannot be translated to LSA5 and is only propogated within the NSSA. Secondly if translation is allowed then the ABR does the translation, if there are multiple ABR's then the one with the highest RID will do the translation. The observations below are not making much sense based on these assumptions:
1. So the first area of confusion for me is that for some reason the P-bit is set to zero, however a Type-5 LSA is still created, and another router in another area (R
can see the distributed route:
- First the output showing that R6 is not an ABR:
R6#sh ip ospf int br
Interface PID Area IP Address/Mask Cost State Nbrs F/C
Lo0 1 1 150.1.6.6/32 1 LOOP 0/0
Et0/1.146 1 1 155.1.146.6/24 10 BDR 2/2
Et0/1.67 1 2 155.1.67.6/24 10 BDR 1/1
R6#sh ip ospf border-routers
OSPF Router with ID (150.1.6.6) (Process ID 1)
Base Topology (MTID 0)
Internal Router Routing Table
Codes: i - Intra-area route, I - Inter-area route
i 150.1.1.1 [10] via 155.1.146.1, Ethernet0/1.146, ABR/ASBR, Area 1, SPF 15
i 150.1.3.3 [20] via 155.1.67.7, Ethernet0/1.67, ABR, Area 2, SPF 6
i 150.1.4.4 [10] via 155.1.146.4, Ethernet0/1.146, ABR/ASBR, Area 1, SPF 15
R4#sh ip ospf database nssa-external
OSPF Router with ID (150.1.4.4) (Process ID 1)
Type-7 AS External Link States (Area 1)
Routing Bit Set on this LSA in topology Base with MTID 0
LS age: 173
Options: (No TOS-capability, No Type 7/5 translation, DC, Upward)
LS Type: AS External Link
Link State ID: 160.1.6.6 (External Network Number )
Advertising Router: 150.1.6.6
R8#sh ip ospf data external
OSPF Router with ID (150.1.8.
(Process ID 1)
Type-5 AS External Link States
Routing Bit Set on this LSA in topology Base with MTID 0
LS age: 1901
Options: (No TOS-capability, DC, Upward)
LS Type: AS External Link
Link State ID: 160.1.6.6 (External Network Number )
Advertising Router: 150.1.6.6
- Secondly I can see R6 creating the Type5 LSA even though its not an ABR (output above shows no interfaces in Area 0), I'm lost
R6#sh ip ospf database self-originate
OSPF Router with ID (150.1.6.6) (Process ID 1)
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
150.1.6.6 150.1.6.6 775 0x80000009 0x00DDD7 2
Type-7 AS External Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Tag
160.1.6.6 150.1.6.6 1023 0x80000002 0x0075D6 0
Router Link States (Area 2)
Link ID ADV Router Age Seq# Checksum Link count
150.1.6.6 150.1.6.6 1023 0x80000005 0x0022ED 1
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
160.1.6.6 150.1.6.6 775 0x80000006 0x0089C0 0
My assumptions are - if a P-bit is set to zero then an LSA7 cannot be translated to LSA5 and is only propogated within the NSSA. Secondly if translation is allowed then the ABR does the translation, if there are multiple ABR's then the one with the highest RID will do the translation. The observations below are not making much sense based on these assumptions:
1. So the first area of confusion for me is that for some reason the P-bit is set to zero, however a Type-5 LSA is still created, and another router in another area (R

- First the output showing that R6 is not an ABR:
R6#sh ip ospf int br
Interface PID Area IP Address/Mask Cost State Nbrs F/C
Lo0 1 1 150.1.6.6/32 1 LOOP 0/0
Et0/1.146 1 1 155.1.146.6/24 10 BDR 2/2
Et0/1.67 1 2 155.1.67.6/24 10 BDR 1/1
R6#sh ip ospf border-routers
OSPF Router with ID (150.1.6.6) (Process ID 1)
Base Topology (MTID 0)
Internal Router Routing Table
Codes: i - Intra-area route, I - Inter-area route
i 150.1.1.1 [10] via 155.1.146.1, Ethernet0/1.146, ABR/ASBR, Area 1, SPF 15
i 150.1.3.3 [20] via 155.1.67.7, Ethernet0/1.67, ABR, Area 2, SPF 6
i 150.1.4.4 [10] via 155.1.146.4, Ethernet0/1.146, ABR/ASBR, Area 1, SPF 15
R4#sh ip ospf database nssa-external
OSPF Router with ID (150.1.4.4) (Process ID 1)
Type-7 AS External Link States (Area 1)
Routing Bit Set on this LSA in topology Base with MTID 0
LS age: 173
Options: (No TOS-capability, No Type 7/5 translation, DC, Upward)
LS Type: AS External Link
Link State ID: 160.1.6.6 (External Network Number )
Advertising Router: 150.1.6.6
R8#sh ip ospf data external
OSPF Router with ID (150.1.8.

Type-5 AS External Link States
Routing Bit Set on this LSA in topology Base with MTID 0
LS age: 1901
Options: (No TOS-capability, DC, Upward)
LS Type: AS External Link
Link State ID: 160.1.6.6 (External Network Number )
Advertising Router: 150.1.6.6
- Secondly I can see R6 creating the Type5 LSA even though its not an ABR (output above shows no interfaces in Area 0), I'm lost
R6#sh ip ospf database self-originate
OSPF Router with ID (150.1.6.6) (Process ID 1)
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
150.1.6.6 150.1.6.6 775 0x80000009 0x00DDD7 2
Type-7 AS External Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Tag
160.1.6.6 150.1.6.6 1023 0x80000002 0x0075D6 0
Router Link States (Area 2)
Link ID ADV Router Age Seq# Checksum Link count
150.1.6.6 150.1.6.6 1023 0x80000005 0x0022ED 1
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
160.1.6.6 150.1.6.6 775 0x80000006 0x0089C0 0
Comments
You are right. I tested this theory by shutting down R6 area 2 interface, when this was done then an LSA5 for the prefix was still seen but had the ABR's ip address as the advertising router.
This wouldn't necessarily be problem IF the forwarding address in the type 5 external was set to an address on the ASBR. If that was the case, routers could use the shortest path to the forwarding address to reach the ASBR, using type 1/2/3 LSA information. The forwarding address is not set in the type 5 LSA though, and it gets the default 0.0.0.0. Routers must therefore rely on the type 4 LSA to reach the ASBR, and only the normal area ABR injects type 4 LSAs, not the NSSA ABRs. This means that if you have this situation, you cannot use the NSSA area as transit to the ASBR from area 0's perspective. Hopefully this makes sense, I just got home from a dinner party
I don't know if there's a solution to this yet. There's an "nssa-only" parameter on the redistribution command, and this does seem to prevent the type 5 external from being created, but it also clears the p-bit so the type 7 doesn't get translated.