Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define and Discuss "Hubs" #603

Merged
merged 1 commit into from
Mar 24, 2022
Merged

Define and Discuss "Hubs" #603

merged 1 commit into from
Mar 24, 2022

Conversation

mmccool
Copy link
Contributor

@mmccool mmccool commented Jun 29, 2021

  • add "hubs" to list of Edge Devices
  • expand comment on what to do for Edge Device discussion
  • update Edge Device section to discuss hubs vs. gateways
  • add explicit definitions for hubs and gateways to terminology
  • make sure use of "Gateway" in "Smart Home Gateway" is consistent with definition of "Gateway" (e.g. if it manages local devices, and is NOT just a proxy... maybe it should be a "Smart Home Hub"?
  • Explicitly allow for star as well as p2p topologies in architectural patterns (addressing Architectural patterns: Introduce star(hub) vs. p2p section #585)
  • cite use of hubs as a place to locate "digital twins", and along the way clarify the various functions that a digital twin might perform, and which are optional (e.g. protocol conversion, state caching, simulation, prediction, etc). A "simple" digital twin might just do protocol conversion and state caching, for instance, and these simple twins are commonly supported by hubs.

Preview | Diff


Preview | Diff

@mmccool
Copy link
Contributor Author

mmccool commented Jul 15, 2021

So I realized a more extensive refactoring is needed here, and I wanted to discuss the plan before proceeding. In particular, we have a section called "Smart Home Gateways" that may need to be renamed, and it's not clear if it's talking about hubs or just gateways. Also, Gateways are not limited the smart home. The following section talks about "edge devices" and the definition implies this includes hubs and gateways, but elsewhere in the text we use this term only for "larger" edge computers (e.g. that provide advanced services). So one option here would be to add a "hub" section in between "Gateways" and "Edge Devices" (renaming "Smart Home Gateways" to just "Gateways"), then focus each section on one particular level (e.g. refactoring hub functionality out of the current gateway section into the new hub section...)

@mryuichi
Copy link

First of all, it's a good idea to rename the session title "smart home gateway" to "gateway". In the first draft, all the descriptions of the topology used the smart home as an example. Only the name at that time remained.

I'm confused because of the difference between hub and gateway. The word "hub" is rarely used in the current documents.
We should define gateway, hub, and edge. In terminology session, hub, gateway, switch, and router are exemplified as the definition of Edge devices. These are clearly different from a network perspective but similar from a computer perspective. The definition of the edge device is to provide an entry point. Then it should be defined from the perspective of the computer that provides the entry point, and should not include anything transparent to computers like a switch or router. As a result, the edge device must be a device and a gateway that has an entry point.

The device is represented by a TD and has an entry point. On the other hand, the gateway provides an entry point instead of the device to be connected. There are two cases where the gateway provides it. One is that the adapter on the gateway provides the TD and entry point instead of the device that has a legacy interface. The other is that a shadow on the gateway provides the TD and entry point. This enhances security by avoiding direct access to the device from the consumers. Fujitsu's gateway supports both of them and the former is called "gateway" and the latter is "proxy". Is "hub" one of these?

@mmccool
Copy link
Contributor Author

mmccool commented Dec 2, 2021

Related to some work in use cases on hubs, e.g. description of EdgeX. This is an outlier, and really use cases should look at a survey of "hub" architectures. At any rate, it would be good to coordinate terminology, etc. And yes, the term "hub" is not ideal, but I think it's better than "gateway", at least in the smart home use case. That said, I can understand the perspective of the term "gateway" when the main service provided is a set of protocol translations/proxies. Then the "gateway" is bridging web and local networks and the name makes sense. But I think "hub" includes that function, as well as providing other services (e.g. orchestration), which are not implied by the term "gateway". The only unfortunately issue is that "hub" traditionally meant a dumb repeater in networks which is not what is meant here. But in modern usage "hub" is more commonly used for a computer providing a set of local services.

See: w3c/wot-usecases#158

@mlagally
Copy link
Contributor

Arch call on March 3rd:
Suggest to decouple the remaining tasks and merge this MR.
Check with @mmccool

@mlagally mlagally mentioned this pull request Mar 24, 2022
5 tasks
@mlagally mlagally changed the title WIP: Define and Discuss "Hubs" Define and Discuss "Hubs" Mar 24, 2022
@mlagally mlagally marked this pull request as ready for review March 24, 2022 10:43
@mlagally mlagally merged commit 21e94df into w3c:main Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Architectural patterns: Introduce star(hub) vs. p2p section Consolidate usage of gateway, edge and hub
3 participants