SIGMESH 2.3.8 Publish-subscribe and message exchange翻译

Publication and subscription of data within the mesh network is described as using a publish-subscribe paradigm. Nodes that generate messages publish the messages to a unicast address, group address, or virtual address. Nodes that are interested in receiving the messages will subscribe to these addresses.

MESH网络中的数据发布和订阅被描述为使用发布-订阅范式。生成消息的节点将消息发布到单播地址、组地址或虚拟地址。对接收消息感兴趣的节点将订阅这些地址。

Generated messages are sent to destination mesh addresses that can be unicast, pre-configured group addresses, or virtual addresses. Messages can be sent as replies to other messages or can be unsolicited messages. When an instance of a model is sending a reply message, it uses the incoming message originator’s source address as the destination address. When an instance of a model is sending unsolicited messages, it uses a model publish address as the destination address. Each instance of a model within a node has a single publish address.

生成的消息被发送到目标网格地址,这些地址可以是单播的、预配置的组地址或虚拟地址。消息可以作为对其他消息的应答,也可以是未经请求的消息。当模型的实例发送应答消息时,它使用传入消息发起者的源地址作为目标地址。当模型的实例发送未经请求的消息时,它使用模型发布地址作为目标地址。节点中的每个模型实例都有一个发布地址

On the receiving side, each instance of a model within a node can subscribe to one or more group addresses or virtual addresses. Whenever a message that is addressed to a group address or a virtual address on one of the model’s subscription lists arrives, it is processed by the node. A message is also processed when its destination address is the unicast address of a receiving element or when its destination address is a fixed group address that this device is a member of. If a node has multiple elements, then the message is processed once on each of the addressed elements.

在接收端,节点内模型的每个实例都可以订阅一个或多个组地址或虚拟地址。每当消息发送到订阅列表上的组地址或虚拟地址时,节点将对其进行处理。当消息的目标地址是接收元素的单播地址时,或者当它的目标地址是该设备所属的固定组地址时,消息也会被处理。如果一个节点有多个元素,那么消息将在每个寻址元素上处理一次。

Publish addresses and subscription lists for models defined by higher layer specifications use the Model Publication and Subscription List states that are managed by the Configuration Server Model.

模型的发布地址和订阅列表是由更高层规范通过使用 Configuration Server Model管理的模型发布和订阅列表状态。

A node can have any number of subscriptions per instance of a model’s element, although nodes may limit the number of subscriptions that are supported. Using multiple subscription addresses allows a node to respond to messages that are published to different groups. For example, a light may be subscribed to messages sent to the bedside light group, the bedroom group, the upstairs group, and the house group.

一个节点可以对模型元素的每个实例拥有任意数量的订阅,尽管节点可能会限制所支持的订阅数量。使用多个订阅地址允许节点响应发布到不同组的消息。例如,一个灯光可以订阅发送到床边灯光组、卧室灯光组、楼上灯光组和住宅灯光组的消息。

Each message is sent from a single unicast address (an element address) and sequenced using a unique sequence number to facilitate detection of and protection against replay attacks

每个消息都从单个单播地址(一个元素地址)发送,并使用唯一的序列号进行排序,以方便检测和防止重播攻击

Messages can be acknowledged or unacknowledged (see Section 3.7.5). An acknowledged message (for example, a Get message) causes a response message; an unacknowledged message (for example, a Status message) does not cause a response

消息可以被确认,也可以不被确认(参见3.7.5节)。确认消息(例如,Get消息)导致响应消息;未确认的消息(例如,状态消息)不会引起响应

猜你喜欢

转载自www.cnblogs.com/gancai/p/12275543.html
今日推荐