Skip to main content

Theory of Integration

In this article, we will discuss the theory of integration and how it relates to the concept of a Unified Namespace. Integration of systems is more urgent than ever with the proliferation of the Industrial Internet of Things (IIOT). Senior engineers inherently know that point-to-point integrations are not effective. Here we provide the math that demonstrates how correct that ad hoc knowledge is. With that math, we can calculate how valuable integration approaches such as the Unified Namespace are to our deployment of IIOT.

Concept of integration functions

Suppose there are two things that we wish to integrate. We will draw them as boxes and call them A and B as shown. You can think of the boxes as applications or documents or even organizations. You can think of them as physical things like engines if you like. It really doesn’t matter.

Fig 1. Two systems directly integrated

We will call these boxes representations or systems. Integration is the process of translating a representation from one form to another. The lines between the boxes represent the function of translation. The most direct means of integrating two representations is to create a single function such that

A=fab(B)B=fab(A)A = f_{ab}(B) \\ B = f_{ab}(A)

When we deal with integration, we always begin with two systems or representations, so the direct method seems most logical.

Fig 2. Two systems indirectly integrated

The alternative is an indirect means of normalization in which we create two functions such that:

N=fan(A)A=fan(N)N=fbn(B)B=fbn(N)N = f_{an}(A) \\ A = f_{an}(N) \\ N = f_{bn}(B) \\ B = f_{bn}(N)

To integrate, we must apply two equations.

A=fan(fbn(B))B=fbn(fan(A))A = f_{an}(f_{bn}(B))\\ B = f_{bn}(f_{an}(A))

Application of integration functions

This is not so abstract as it may first appear. We think of the boxes as applications and the functions as application programming interfaces (APIs). You could, however, think of the boxes as documents and the functions as translators.

Suppose for instance that A is Armenian and B is Bantu. Function fab represents an individual who speaks both Armenian and Bantu and can translate both ways. Our first inclination may be to find such a person, but our chances of finding such a person are remote. Now suppose that N is English. Function fan represents someone who speaks Armenian and English. Function fbn is a person who speaks Bantu and English. With two translators our integration can be achieved.

There is a distinct disadvantage to the indirect approach when dealing with just two systems. The direct approach requires only one function while the indirect approach requires two. If we add a third system C, we see no advantage to either the direct or indirect approach. They both require three functions.

Fig 3. Three systems integrated directly (left) and indirectly (right)

With the direct approach we employ the functions:

A=fab(B)B=fbc(C)C=fac(A)A = f_{ab}(B)\\ B = f_{bc}(C)\\ C = f_{ac}(A)

While the indirect approach employs the functions:

A=fan(N)B=fbn(N)C=fcn(N)A = f_{an}(N)\\ B = f_{bn}(N)\\ C = f_{cn}(N)

It is only when we introduce the fourth element that the advantages of the indirect approach over the direct approach begin to appear.

Fig 4. Four systems integrated directly (left) and indirectly (right)

In order to implement the direct approach, we need six equations:

fab,fac,fad,fbc,fbd,fcdf_{ab}, f_{ac}, f_{ad}, f_{bc}, f_{bd}, f_{cd}

Whereas, with an indirect approach, we only need four equations

fan,fbn,fcn,fdnf_{an}, f_{bn}, f_{cn}, f_{dn}

Increasing complexity of integration

The complexity of the direct approach increases exponentially, whereas the complexity of the indirect approach increases linearly. For every element i added to a system using direct integration, i-1 functions must be added. For example, when the tenth element is added to the system, nine new functions are needed. When the 100th element is added, 99 new functions are needed. Within a system using an indirect approach to integration, however, only one new function is needed for new element added.

Table 1 shows a comparison of the complexity between using a direct approach and an indirect approach of integration. For just two elements, the indirect approach is twice as complex as the direct approach. With three elements, they are equally complex. In a system of five elements, a direct approach is twice as complex as an indirect approach. In a system of 101 elements, a direct approach is 50 times more complex than an indirect approach.

Table 1. Comparison of complexity of direct and indirect approach

Integration of the unanticipated

The most important concept here is not the math, but rather that in a direct approach to integration, every instance must be anticipated. For instance, the system architect must anticipate element G, that is, the seventh element, in order to create the functions

...fag,fbg,fcg,fdg,feg,ffg... f_{ag}, f_{bg}, f_{cg}, f_{dg}, f_{eg}, f_{fg}

In the direct approach, the integrator must know both system A and system G. In an indirect approach, the architect is required to make no such anticipation. The function fan does not have to anticipate the function fgn. The new function may be applied without any change to the old one.

A=fan(N)N=fan(A)...G=fag(N)N=fag(G)G=fgn(fan(A))A=fan(fgn(G))A = f_{an}(N)\\ N = f_{an}(A)\\ ...\\ G = f_{ag}(N)\\ N = f_{ag}(G)\\ G = f_{gn}( f_{an}(A) )\\ A = f_{an}( f_{gn}(G) )

Thus, an indirect approach allows the integration of the unanticipated.

Disruption of change

The impact of small changes to a system using direct integration becomes catastrophic in their consequences. Suppose, for instance, that we have a system of 10 elements. There are 45 interconnections or functions to be maintained. Each element within the system employs 9 connections or functions. Now suppose that one element changes. The system requires the updating of 9 functions in response to the change in one element. Let us further suppose that only one element can change within a given period T and that we have the resources to make 9 function changes within period T. Under these assumptions, we have the ability to maintain the system indefinitely.

Let us now compare the disruptions change to a direct system with that of an indirect system. Suppose that disruption increases linearly at 10 percent, that is, that within any given system 10 percent of the elements change within a given period of time T. With a directly integrated system, we have seen that 9 connections must change. Suppose, as we did before, that we have resources enough to make 9 connection updates with period T. With those resources, we can maintain a system of 10 elements directly connected. In an indirectly integrated system, each element has only one connection. We can maintain a system of 90 elements.

Fig 5. The resources needed to maintain these two systems are equivalent

Now lets disrupt our world. Suppose that we add a new element to the system without adding to our resources for maintaining the system. (Not that this could ever happen within an IT department!) Now we have 11 elements with 55 connections, or 10 connections connected to each element. Now every time an element changes we must update 10 connections, rather than 9. However, because we have not increased our resources, we can only change 9 connections within a given period T. At the end of every period there is another connection that we have not been able to update. Within five periods, there are five connections out of date or incorrect. In other words, 10 percent of the connections within system are outdated or dysfunctional.

Growing the system

Growth of a system is often viewed as a form of disruption. IT departments are consistently faced with growth of their network systems and network applications. Let us compare our ability to grow a directly integrated system and an indirectly integrated system.

As stated earlier, with nine resources we can maintain 10 elements in a directly integrated system and 90 elements in an indirectly integrated system. One resource is able to update one connection in a given period. Suppose that we are able to grow our staff by one resource per period. Let us continue to assume that 10 percent of the elements change every period. In an indirect approach, each element has only one connection, and since one in 10 elements change in a given period, each resource is able to support 10 elements. We should be able to grow an indirect system by 10 elements each period indefinitely. That is, the system supports linear growth.

Table 2. Ability to support growth in direct and indirect systems

Growing a directly integrated system is much more problematic. For elements 11 to 15 we are fine, but once we reach the 16th element in the system we have a problem. Remember that 10 percent of the elements change each period. With 16 elements, more than one element is changing each period. To avoid having to deal with probabilities, lets jump ahead to a system of 20 elements. With 20 elements, 2 elements are changing each period and each element has 19 connections. That means we need a staff of 36 resources to support the system. Note that it takes more resources to support the system than there are elements in the system.

The math for calculating the number of resources required is straightforward.

  • p : percentage of resources changing in a given period
  • x : number of elements in system
  • f : number of connections in system
  • R : number of connections changing per period
fi=xfd=(x2x)/2Ri=pxRd=px(x1)f_i = x\\ f_d = (x^2 — x)/2\\ R_i = px\\ R_d = px(x –1)\\

For given resources R, we can support R/p elements in an indirectly integrated system. Since p is a percentage and thus less than or equal to one, the number of elements will be more than the number of resources. A directly integrated system requires R(R/p –1) resources to support the same number of elements. For instance, if 20 percent of the elements change in a given a period, then a staff of 20 resources can support 100 elements in an indirectly integrated system.

x=R/p=20/0.2=100x = R/p = 20 / 0.2 = 100

In a directly integrated system, that many elements under the same conditions would require nearly 50,000 resources.

R=p(x2x)=(0.2)(1002100)=49,900R = p(x^2 — x) = (0.2) ( 100^2–100) = 49,900

In other words, the directly integrated system is not sustainable at scale in any practical sense.

danger

Directly integrated systems are not sustainable at scale in any practical sense

Employing the concepts

When integrating systems, applications or even organizations, we are never dealing with a single amorphous block. The following Figure 6 conceptually represents two systems. Let us assume that these systems are actually organizations, perhaps two companies. Both organizations have complex point-to-point integrations within them. These integration links may represent actual systems integration or simply channels of communications between departments such as accounting, shipping and warehouse.

Fig 6. Two organizations or complex systems

To completely integrate the two organizations would look something like Figure 7. When two companies merge, they usually attempt some type of integration like this. Such integration, as we have seen, is unsustainable beyond two organizations.

Fig 7. Direct integration of two organizations or complex systems

Thus, most companies implement an interface for integrating with other outside organizations, as shown in Figure 8. Electronic data interchange (EDI) standards X12 and EDIFACT are examples of such an interface. The web is also an example. The website provides a single point of integration with outside organizations, even if it is read-only.

Fig 8. Indirect integration of two organizations or complex systems

If the standard interface is exceptionally good, then organizations come to realize that what works externally should work internally as well, as shown in Figure 9. We saw this realization with the adoption of intranets in the late 1990s. Companies brought the websites inside the company to communicate between divisions in exactly the same manner that they communicate with customers.

Fig 9. Complete indirect integration of two organizations or complex systems

The same sort of integration occurs with applications as it does with organizations. The two boxes in the figures above could represent large software systems. Applications provide application programming interfaces (API) to handle Figure 8.

The figure also expresses the concept of a unified namespace.

Unified namespace

The unified namespace (UNS) is an architecture for IIOT.

UNS operates on the principle that all data, regardless of whether there is an immediate consumer, should be published and made available for consumption. This means that any node in the network can work as either a producer or a consumer, depending on the needs of the system at any given time. 1

Typically, one implements a UNS with a message broker such as message queuing telemetry transport (MQTT). UNS provides context of the messages on the bus by globally identifying the source of the data. The identity can be based on the ISA 95 hierarchy of enterprise, site, area, line and cell.

To appreciate UNS, we should consider how integration was previously done in industry. Companies implemented a layering of systems.

  • Sensors connected to programmable logic controllers (PLC).
  • PLCs connected to a supervisory control and data acquisition (SCADA) network.
  • SCADA connected to manufacturing execution system (MES)
  • MES connected to a enterprise resource planning (ERP) system
  • ERP connected to cloud integrations such as data lakes

With traditional industrial integration, to know the data of a sensor in a cloud application, one would need to push that data through a PLC, SCADA, MES and ERP. That would entail at least five translations.

With UNS integration, the cloud application reads the sensor data from the message bus. In otherwords, traditional industrial integration was a direct (point-to-point) approach and the unified namespace is an indirect (normalized) approach. All the mathematics above apply.