Upload
alicia-cooper
View
213
Download
1
Embed Size (px)
Citation preview
1
2 3
4
1
2 3
64 5
Figure 1A – Mesh (example) Figure 1B – Tree (example)
1
2 3
64 5
Figure 2 – trail system (example)
Figure 3A
Local node in continuum #2 subscribes to subject 23 from continuum #3. (Assume this is the first subscriber for this subject from this domain)
1
2 3
4
1
2 3
4
Before
After
Figure 3B
Local node in continuum #2 subscribes to subject 23 from continuum #3. (Assume this is the first subscriber for this subject from this domain)
1
2 3
64 5
1
2 3
64 5
Before
After
Figure 4A
Local node in continuum #1 subscribes to subject 23 from continuum #3. (There is already a subscriber in continuum #2)
1
2 3
4
Before
After
1
2 3
4
Figure 4B
Local node in continuum #4 subscribes to subject 23 from continuum #3. (There is already a subscriber in continuum #2)
1
2 3
64 5
Before
After
1
2 3
64 5
Figure 5A
Local node in continuum #2 cancels subscription to subject 23 from continuum #3. (There is still a subscriber in continuum #1)
1
2 3
4
Before
After
1
2 3
4
Figure 5B
Local node in continuum #2 cancels subscription to subject 23 from continuum #3. (There is still a subscriber in continuum #4)
1
2 3
64 5
Before
After
1
2 3
64 5
1
2 3
Mesh Tree
Figure 6
New continuum is added to the RAMS Network Node in continuum #1 has subscribed to subject 23 from “all continua”
1
2 3
4
1
2 3
1
2 3
4
Before
After
1
2 3
Figure 7
Using the SCS to establish a trail system (mesh network)
1
2 3
1
2 3
Step 1 Step 2 Step 3
Step 1 – A local node in continuum #2 asserts a subscription for subject 23 from continua #3.
Step 2 – Gateway #2 receives the assertion, adds the local node to its DNS, and calculates the required SCS. Citing rule 1a, it adds gateway #3 to its SCS and sends an assertion.
Step 3 – Gateway #3 receives the assertion, adds gateway #2 to its DGS, and calculates the required SCS. Citing rule 2, it adds its own continuum (#3) to the SCS and issues a local subscription assertion.
The resulting trail system is a single trail that goes from publishers in continuum #3 to gateway #3 to gateway #2 to the subscriber in continuum #2. Note that trails are established in a direction that leads from subscribers to publishers, and then traveled in the reverse direction to publish messages.
1
2 3
Figure 8
Using the SCS to establish a trail system (tree network)
Step 1
Step 1 – A local node in continuum #2 asserts a subscription for subject 23 from continua #3.
Step 2 – Gateway #2 receives the assertion, adds the local node to its DNS, and calculates the required SCS. Citing rule 1a, it adds gateway #1 to its SCS and sends an assertion.
Step 3 – Gateway #1 receives the assertion, adds gateway #2 to its DGS, and calculates the required SCS. Citing rule 3a, it adds gateway #3 to the SCS.
Step 4 – Gateway #3 receives the assertion, adds gateway #1 to its DGS, and calculates the required SCS. Citing rule 2, it adds its own continuum (#3) to the SCS and issues a local subscription assertion.
The resulting trail system is a single trail that goes from publishers in continuum #3 to gateway #3 to gateway #1 to gateway #2 to the subscriber in continuum #2.
1
2 3
Step 21
2 3
Step 31
2 3
Step 4
1
2 3
Figure 9
A local node in continuum #2 has subscribed to subject 23 from “all continua”.
Correct trail system
1
2 3
Incorrect trail system
Figure 10
Removing a gateway from a network
Before
1
2 3
64 5
1
2 3
4 5
2 3
64 5
A) Removing a leaf gateway results in a smaller network
B) Removing a non-leaf gateway splits a single network into multiple smaller networks (in this case, two smaller networks).