Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

#Interface

Requirement


Additional InformationSign Off
1CPS-E-08.eNCMP is to merge CM Notification Subscriptions Create request for the same CM Handle & XPath(s)
  • Prevent unnecessary subscription updates to nodes already involved in a subscription to the same path
  • For possible combinations, see table below

2CPS-E-08.e

Last lights out: upon subscription Delete request only when there is no more subscription for a cm-handle & xpath combination a subscription-delete request wil be send to the relevant DMI(s)



3CPS-E-08.eAmalgamation per DMI: all subscription updates originating from a single client request should be send to a single DMI in one request (message). Of course there can be several message if more than 1 DMI is involved.

4CPS-NCMP-I-01CM Handle deletion should update subscription detailsdo NOT delete dmi-subscription entry until owning subscription is deleted, see issue #4 below

Error Handling


#Error ScenarioExpected behaviorSign-off
1DMI Downrejected
2DMI Not responding withing 30 secpending
3create for non-existing cm handle idrejected
4delete for non-existing cm handle id(silently?) ignore
5any operation on non-existing xpathignore? (no or minimal validation, see issue #5)
6error upon error

An error scenario on a second subscription for the same cm-handle/xpath as a previous subscription which did not complete successfully (yet)

to be discussed, see tabel below


Characteristics

#ParameterExpectationNotes
1


2


3


4


5


...

#IssueNotes Decision
1Is it intended that CM Notification subscription request  cover (all) descendants of the given xpath too?!e.g.. if a child is removed and there is a subscription for the parent node, will a notification be send (grandchild, child leaf updates etc.)
I hope NOT!

2Could xpath point to an element that does not exist (yet)if not how, how can I client be informed about a create event? 
3Should NCMP support re-homing, moving of a CM Handle from one DMI to another?assume only trough delete & create 
4CM Handle Delete: Should DMI or Clients be sent a subscription update (assume no)do NOT delete dmi-subscription entry until owning subscription is deleted
(just ignore upon future delete if cm handle is gone altogether)

5Validation of xpathoptions order of implement and also performance cost!
  1. none
  2. xpath-parser
  3. model check
  4. instance check

6can DMI plugin 'reject' a subscription create create (for a given cm-handel-xpath combination)As NCMP might not validate as per issue#5 the DMI=plugin or component further down might have to reject an invalid xpath...
7implementation question: should 'rejected' DMI-subscriptions be storedI would think not


Solution Proposals 

Merge → Split

  • NCMP treat treats a Client Subscription as one or more (small) DMI Subscriptions, each of which wil have there own state.
    Each DMI Subscription is related to 1 or more client subscriptionsubscriptions.
    If there is no more related client subscription the DMI Subscription can be deleted (once accepted by DMI Plugin)!

...

draw.io Diagram
1
bordertrue
diagramNameDMI v Client Subscriptions
simpleViewerfalse
width
linksauto
tbstyletop
lboxtrue
diagramWidth511
revision2
 

Create Combinations


Existing Subscription AClient Create Subscription B RequestDMI Create RequestData Model
1CH-1, [ /p/c1, p/c2 ]CH-1, [ /p/c1 ]None


Expand
titleData Model...


Client  Subscription
DMI Subscription
nameclient-idcm-handlexpathowners
A10CH-1/p/c1[ A-10, B-35 ]
B35CH-1/p/c2[ A-10 ]



2CH-1, [ /p/c1, p/c2 ]CH-1, [ /p/c2, /p/c3 ]CH-1, [ /p/c3 ]


Expand
titleData Model...


Client  Subscription
DMI Subscription
nameclient-idcm-handlexpathowners
A10CH-1/p/c1[ A-10 ]
B35CH-1/p/c2[ A-10, B-35 ]

CH-1/p/c3[ B-35 ]



3CH-1, [ /p/c1]
CH-2, [ /p/c1]
CH-2, [ /p/c1]
CH-3, [ /p/c1]
CH-3, [ /p/c1]


Expand
titleData Model...


Client  Subscription
DMI Subscription
nameclient-idcm-handlexpathowners
A10CH-1/p/c1[ A-10 ]
B35CH-2/p/c1[ A-10, B-35 ]

CH-3/p/c1[ B-35 ]



4CH-1, [ /p/c1]CH-1, [ /p/c1/gc1 ]CH-1, [ /p/c1/gc1 ] (see issue #1)


Expand
titleData Model...


Client  Subscription
DMI Subscription
nameclient-idcm-handlexpathowners
A10CH-1/p/c1[ A-10 ]
B35CH-1/p/c1/gc1[ B-35 ]



...


NCMP Existing ANCMP Existing BClient Delete A RequestDMI Delete Request
1CH-1, [ /p/c1, p/c2 ]CH-1, [ /p/c1 ]CH-1, [ /p/c1, p/c2 ]CH-1, [ p/c2 ]
2CH-1, [ /p/c1]
CH-2, [ /p/c1]
CH-2, [ /p/c1]
CH-3, [ /p/c1]
CH-1, [ /p/c1]
CH-2, [ /p/c1]
CH-1, [ /p/c1]
3CH-1, [ /p/c1]

CH-1, [ /p/c1]
CH-2, [ /p/c1]
CH-1, [ /p/c1]None

Error-upon error Combinations


Previous InteractionCurrent InteractionExpectationNotes
1create rejected for non-existing cm-handlecreate for same non-existing cm-handlelisted in 'rejected' immediately
2create pendingcreate for same cm-handle/xpathTBD send again or just remain pending?!
3create pendingdelete for same cm-handle/xpath

4delete pendingdelete for same cm-handle/xpath

5delete pendingcreate for same cm-handle/xpath

Proposed JIRAs

PriorityComponent DescriptionJIRAEstimates
1



2



3



4



5



6



7



8



...