CN108183967B - OPC UA (optical proximity correction) publishing/subscribing method suitable for IPv6 wireless sensor network - Google Patents

OPC UA (optical proximity correction) publishing/subscribing method suitable for IPv6 wireless sensor network Download PDF

Info

Publication number
CN108183967B
CN108183967B CN201810039837.5A CN201810039837A CN108183967B CN 108183967 B CN108183967 B CN 108183967B CN 201810039837 A CN201810039837 A CN 201810039837A CN 108183967 B CN108183967 B CN 108183967B
Authority
CN
China
Prior art keywords
message
queue
subscriber
opc
wireless sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810039837.5A
Other languages
Chinese (zh)
Other versions
CN108183967A (en
Inventor
王平
杨易
王恒
蒲宬亘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Institute of industrial Internet Chongqing University of Posts and Telecommunications
Original Assignee
Chongqing University of Post and Telecommunications
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing University of Post and Telecommunications filed Critical Chongqing University of Post and Telecommunications
Priority to CN201810039837.5A priority Critical patent/CN108183967B/en
Publication of CN108183967A publication Critical patent/CN108183967A/en
Application granted granted Critical
Publication of CN108183967B publication Critical patent/CN108183967B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Abstract

The invention relates to an OPC UA publishing/subscribing method suitable for an IPv6 wireless sensor network, belonging to the technical field of wireless sensor networks. The method takes a border gateway in the IPv6 wireless sensor network as a message forwarding agent, and enables the agent to have the function of message filtering based on a message Queue (Queue) and a message producer (WriterId). In addition, the agent also has the functions of resource discovery and fault tolerance, and can respond to the resource discovery request of the subscriber and the wrong subscription request. The invention enables the releasing/subscribing method of the OPC UA protocol to be applicable to the IPv6 wireless sensor network, saves the energy of a publisher and a subscriber and reduces the load of the network.

Description

OPC UA (optical proximity correction) publishing/subscribing method suitable for IPv6 wireless sensor network
Technical Field
The invention belongs to the technical field of wireless sensor networks, and relates to an OPC UA (optical proximity correction) publishing/subscribing method suitable for an IPv6 wireless sensor network.
Background
The IPv6 wireless sensor network applies the IPv6 technology to the wireless sensor network to realize the full IP of the sensor nodes, so that the sensor nodes in the network can be seamlessly connected with the existing IP network. This type of network generally has a central control architecture, and uses a border router (or border gateway) to manage nodes in the network and to converge and forward node data. The resources of the border router (or border gateway) are generally rich, while the nodes generally have the characteristics of limited resources and limited energy, and some technologies currently used in the wired IP network are generally required to be adapted to the IPv6 wireless sensor network.
The OPC UA protocol defines a uniform information model, can solve the problem of interoperability of protocols in an IPv6 wireless sensor network, and a publish/subscribe mode is a common communication mechanism in an IPv6 wireless sensor network, so that the publish/subscribe method of the OPCUA protocol is applied to an IPv6 wireless sensor network scene and has important significance. In an actual IPv6 wireless sensor network scenario, publishers and subscribers in a publish/subscribe mechanism are all IPv6 sensor nodes with limited resources and limited energy, and often use batteries to supply power to the nodes, and data communication between the nodes is a main part of energy consumption.
Currently, the OPC foundation has defined a specification of publish/subscribe patterns, in which two methods are defined. The first method utilizes multicast of UDP protocol to realize the forwarding of message, both the publisher and the subscriber join a group of UDP multicast, when there is message published, the subscribers of the group can receive the message; the second method uses the agent of the third party protocol to realize the message forwarding, such as AMQP or MQTT, when the message is published, the publisher sends the message to the agent as the load of the third party protocol, and the agent forwards the message to the subscriber. Both methods are designed based on a wired IP network, and an IPv6 wireless sensor network scene is considered, the traditional UDP multicast method needs the support of a multicast protocol and is difficult to be directly applied in the wireless scene, and the method of using the agent of a third-party protocol as the middleware for message forwarding increases the packet sending quantity of nodes because the agent can only forward the message according to the message head, which is not beneficial to saving energy of the nodes and reducing network cost. In view of this, both methods in publish/subscribe mode proposed by the OPC foundation are difficult to be directly applied to IPv6 wireless sensor networks. Therefore, the invention provides an OPC UA publish/subscribe method suitable for an IPv6 wireless sensor network, and aims to save energy of nodes and reduce network load on the premise of maintaining functions of the OPC UA publish/subscribe method.
Disclosure of Invention
In view of the above, an object of the present invention is to provide an OPC UA publish/subscribe method suitable for an IPv6 wireless sensor network, in which a border router (or border gateway) in an IPv6 wireless sensor network is used as a proxy for message forwarding, a function of filtering messages based on a message Queue (Queue) and a message producer (WriterId) is added to the border router (or border gateway), and the IPv6 protocol and the wireless protocol are adapted by using 6L wpan technology, and meanwhile, the proxy can support resource discovery and fault tolerance functions, reduce the number of packets sent by a publisher, simplify the steps of processing data packets by a subscriber, save node energy, and reduce network overhead.
In order to achieve the purpose, the invention provides the following technical scheme:
the OPC UA publishing/subscribing method applicable to the IPv6 wireless sensor network comprises the following steps of:
s1: a publisher sends a message to be published to a boundary router, and the boundary router receives the message and establishes a published message queue list and a message producer list corresponding to each message queue;
s2: a subscriber sends a message needing subscription to a boundary router, and the boundary router marks a message queue needing subscription and a corresponding message producer by using the address of the subscriber;
s3: the publisher sends a new message to the border router, and the border router finds a corresponding message queue in the message queue list by using the message queue in the message;
s4: the boundary router finds out the message producer needing subscription for each subscriber needing subscription to the current message queue, reserves the message load corresponding to the message producer needing subscription in the current message, and discards the message load corresponding to the producer not needing subscription;
s5: the border router sends the filtered message to the subscriber;
s6: and the subscriber receives the filtered message forwarded by the border router and analyzes the message.
Further, the messages issued by the publishers compress UDP protocol headers and IPv6 protocol headers by using 6L oWPAN technology to adapt to wireless scenarios, each message corresponds to only one message queue, and each message queue comprises a plurality of message producers.
Further, when the border router receives a message issued by a publisher, it first searches whether a queue of the message exists, if not, adds the queue in the queue list, and adds a producer corresponding to the queue to the producer list of the queue.
Further, when the border router receives a message published by a publisher and the queue of the message exists in the message queue list of the border router, all subscribers subscribing to the message are found, message loads are filtered according to different producers of the message queue to which each subscriber needs to subscribe, message loads corresponding to message producers which are not subscribed are discarded, and meanwhile, producers which are not included in the current message queue producer list in the message are added into the list.
Further, the border router supports the resource discovery and fault tolerance functions, and returns the current existing message queue and the corresponding message producer to the subscriber after receiving the resource discovery request message sent by the subscriber; and when the subscription information sent by the subscriber does not exist, returning error information to the subscriber.
The invention has the beneficial effects that:
(1) the OPC UA publishing/subscribing method applicable to the IPv6 wireless sensor network provided by the invention realizes message forwarding by using a boundary router (or a boundary gateway) in the IPv6 wireless sensor network as an agent, simplifies the network structure, avoids introducing a third party protocol, and solves the problems that the traditional OPC UA publishing/subscribing mode UDP multicast is difficult to be directly applicable to the IPv6 wireless sensor network and the network overhead is increased and the node energy is wasted by introducing the third party protocol.
(2) Compared with the traditional OPC UA message forwarding, the OPC UA publishing/subscribing method applicable to the IPv6 wireless sensor network provided by the invention has the advantage that when the message reaches the proxy, the proxy can filter the message by using the message queue subscribed by the subscriber and the message producer. In this way, the number of packages sent by the publisher can be reduced, and the processing steps of the data packages can be simplified by the subscriber, so that the energy of the publisher and the subscriber is saved, and the network overhead is reduced.
(3) According to the requirement of establishing the publish/subscribe relationship according to the OPC UA protocol publish/subscribe mode, the invention can support the resource discovery of the subscriber to the subscription information, and meanwhile, when the information subscribed by the subscriber does not exist, the proxy can respond error information to the subscriber.
Drawings
In order to make the object, technical scheme and beneficial effect of the invention more clear, the invention provides the following drawings for explanation:
FIG. 1 is a flowchart of a method for issuing/subscribing OPC UA protocol in accordance with the present invention;
FIG. 2 is a diagram of an application scenario of the OPC UA protocol publish/subscribe method according to the present invention;
FIG. 3 is a list of message queues (Queue) in the agent and a list of message producers (WriterId) and a map of subscriber addresses;
FIG. 4 is a flow chart of the proxy responding to subscriber resource discovery and mis-subscription information.
Detailed Description
Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Aiming at the defects of the existing OPC UA publishing/subscribing method, the structural characteristics of the IPv6 wireless sensor network are considered, a boundary router (or a boundary gateway) in the IPv6 wireless sensor network is used as a proxy for message forwarding, and an IPv6 sensor node is used as a publisher or a subscriber. The message filtering function based on a message Queue (Queue) and a message producer (WriterId) is added to the agent, and the resource discovery and fault tolerance functions can be supported. Fig. 1 is a flowchart of an OPC UA publish/subscribe method according to the present invention. The method provided by the invention is concretely implemented as follows:
fig. 2 is a diagram of an application scenario of an OPC UA protocol publish/subscribe method. The IPv6 wireless sensor network is taken as a specific embodiment of the method, and the communication entities comprise publishers, proxies and subscribers. Any node in the sensor network acts as a publisher or subscriber and the border router (or border gateway) acts as a proxy for message forwarding. The method comprises the following specific steps:
step 1: a publisher publishes data information to be published to an agent, and the agent receives the information of the publisher;
step 2: the broker builds a list of published message queues and a list of producers corresponding to each message queue.
Step 3: the subscriber sends a message needing subscription to the agent, and the agent marks the message queue needing subscription and the corresponding producer by using the subscriber address.
Step 4: the publisher publishes a new message, the agent determines the subscribers who need to subscribe the message according to the message queue in the message, filters the load corresponding to the producer who does not need to subscribe for each subscriber, and reserves the load corresponding to the producer who needs to subscribe.
Step 5: the proxy sends the filtered message to the subscriber.
Step 6: and the subscriber receives the filtered message forwarded by the proxy and analyzes the message.
Fig. 3 is a mapping diagram of a message queue list, a message producer list, and a subscriber address, and the specific mapping relationship is as follows:
when a publisher issues a message to an agent, the agent first judges whether the message queue exists in the agent according to the message queue in the message, if not, the message queue is added to a message queue list of the agent, and if so, the message is filtered.
The agent is provided with a plurality of message queues, each message queue is provided with a plurality of message producers, and after the subscriber sends the information needing subscription to the agent, the agent marks the message queue needing subscription and the message producer needing subscription in the current message queue by using the subscriber address.
FIG. 4 is a flowchart of an agent responding to subscriber resource discovery and mis-subscription information, comprising the following steps:
step 1: a subscriber sends a resource discovery request to an agent;
step 2: the agent returns the published message queues and the message producer lists corresponding to each queue to the subscriber;
step 3: a subscriber sends a nonexistent message queue or a message producer subscription request to an agent;
step 4: the proxy returns an error message to the subscriber.
The invention takes a border router (or a border gateway) as a proxy, and the method for forwarding the message by the proxy based on the message Queue (Queue) and the message producer (WriterId) is not only suitable for the IPv6 wireless sensor network, but also suitable for the OPCUA publish/subscribe communication mode of other networks.
Finally, it is noted that the above-mentioned preferred embodiments illustrate rather than limit the invention, and that, although the invention has been described in detail with reference to the above-mentioned preferred embodiments, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the scope of the invention as defined by the appended claims.

Claims (5)

1. The OPC UA publishing/subscribing method applicable to the IPv6 wireless sensor network, wherein the OPC UA represents an object connection and embedding unified framework for process control, and is characterized in that: the method comprises the following steps:
s1: a publisher sends a message to be published to a boundary router, and the boundary router receives the message and establishes a published message queue list and a message producer list corresponding to each message queue;
s2: a subscriber sends a message needing subscription to a boundary router, and the boundary router marks a message queue needing subscription and a corresponding message producer by using the address of the subscriber;
s3: the publisher sends a new message to the border router, and the border router finds a corresponding message queue in the message queue list by using the message queue in the message;
s4: the boundary router finds out the message producer needing subscription for each subscriber needing subscription to the current message queue, reserves the message load corresponding to the message producer needing subscription in the current message, and discards the message load corresponding to the producer not needing subscription;
s5: the border router sends the filtered message to the subscriber;
s6: and the subscriber receives the filtered message forwarded by the border router and analyzes the message.
2. The OPC UA publish/subscribe method for IPv6 wireless sensor network according to claim 1, wherein the messages published by publishers use 6L oWPAN technology to compress UDP protocol headers and IPv6 protocol headers to adapt to wireless scenarios, each message corresponds to only one message queue, and each message queue contains multiple message producers.
3. The OPC UA publishing/subscribing method applicable to IPv6 wireless sensor network according to claim 1, wherein: when the border router receives a message issued by a publisher, the border router firstly searches whether a queue of the message exists, if the queue does not exist, the queue is added into a queue list, and a producer corresponding to the queue is added into the producer list of the queue.
4. The OPC UA publishing/subscribing method applicable to IPv6 wireless sensor network according to claim 1, wherein: when the border router receives a message published by a publisher and the queue of the message exists in the message queue list of the border router, all subscribers subscribing to the message are found, message loads are filtered according to different producers of the message queue to which each subscriber needs to subscribe, the message loads corresponding to message producers not subscribed are discarded, and meanwhile, producers not included in the current message queue producer list in the message are added into the list.
5. The OPC UA publishing/subscribing method applicable to IPv6 wireless sensor network according to claim 1, wherein: the boundary router supports the resource discovery and fault tolerance functions, and returns the current existing message queue and the corresponding message producer to the subscriber after receiving a resource discovery request message sent by the subscriber; and when the subscription information sent by the subscriber does not exist, returning error information to the subscriber.
CN201810039837.5A 2018-01-16 2018-01-16 OPC UA (optical proximity correction) publishing/subscribing method suitable for IPv6 wireless sensor network Active CN108183967B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810039837.5A CN108183967B (en) 2018-01-16 2018-01-16 OPC UA (optical proximity correction) publishing/subscribing method suitable for IPv6 wireless sensor network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810039837.5A CN108183967B (en) 2018-01-16 2018-01-16 OPC UA (optical proximity correction) publishing/subscribing method suitable for IPv6 wireless sensor network

Publications (2)

Publication Number Publication Date
CN108183967A CN108183967A (en) 2018-06-19
CN108183967B true CN108183967B (en) 2020-08-04

Family

ID=62550587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810039837.5A Active CN108183967B (en) 2018-01-16 2018-01-16 OPC UA (optical proximity correction) publishing/subscribing method suitable for IPv6 wireless sensor network

Country Status (1)

Country Link
CN (1) CN108183967B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109739816B (en) * 2018-10-12 2020-06-19 比亚迪股份有限公司 Data storage method and device of comprehensive monitoring system based on rail transit
MX2021006828A (en) * 2018-12-13 2021-07-02 Guangdong Oppo Mobile Telecommunications Corp Ltd Subscription message processing method and apparatus, and computer device and storage medium.
CN111142487A (en) * 2019-12-30 2020-05-12 浪潮通用软件有限公司 Equipment data acquisition system based on OPC UA unified architecture protocol
CN113542314B (en) * 2020-04-13 2022-07-08 烽火通信科技股份有限公司 Method and system for realizing subscription mode based on keyword filtering
CN112751943A (en) * 2021-01-19 2021-05-04 国网江苏省电力有限公司无锡供电分公司 Data communication method, intermediate device and data communication system
CN113031507B (en) * 2021-03-25 2022-08-16 超越科技股份有限公司 High-efficiency transmission method for field bus central server based on OPC UA
CN114374708B (en) * 2021-12-07 2022-09-30 上海交通大学 Intelligent factory data automatic subscription method based on collaborative filtering and MQTT

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159711A (en) * 2007-11-27 2008-04-09 航天东方红卫星有限公司 Self-adaptive real time message subscribing and issuing system and method
CN101848236A (en) * 2010-05-06 2010-09-29 北京邮电大学 Real-time data distribution system with distributed network architecture and working method thereof
US8279798B2 (en) * 2008-01-10 2012-10-02 Research In Motion Limited Virtual home network arrangement for a subscriber module using IMS
CN103731510A (en) * 2014-01-24 2014-04-16 重庆邮电大学 Data interaction method for application layer of wireless sensor network based on IPv6 (internal protocol version 6)
CN103738369A (en) * 2013-12-26 2014-04-23 北京交控科技有限公司 ATS device and system based on OPC UA technology
CN103813372A (en) * 2014-02-19 2014-05-21 重庆邮电大学 Wireless sensor network management method based on IPV6 (internet protocol version 6)
CN104506439A (en) * 2014-12-19 2015-04-08 重庆邮电大学 IPv6 (Internet protocol version 6) message transmission system and method applicable to WIA-PA (windows image acquisition-power amplification) network
CN106533934A (en) * 2016-12-23 2017-03-22 重庆邮电大学 Border gateway applicable to all interconnected manufacturing networks
CN106550052A (en) * 2016-12-08 2017-03-29 南京富岛信息工程有限公司 A kind of data acquisition unit and method based on OPC UA
CN107357272A (en) * 2017-07-03 2017-11-17 燕山大学 A kind of DCS mobile remote monitoring systems and method based on OPC UA

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10007513B2 (en) * 2015-08-27 2018-06-26 FogHorn Systems, Inc. Edge intelligence platform, and internet of things sensor streams system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159711A (en) * 2007-11-27 2008-04-09 航天东方红卫星有限公司 Self-adaptive real time message subscribing and issuing system and method
US8279798B2 (en) * 2008-01-10 2012-10-02 Research In Motion Limited Virtual home network arrangement for a subscriber module using IMS
CN101848236A (en) * 2010-05-06 2010-09-29 北京邮电大学 Real-time data distribution system with distributed network architecture and working method thereof
CN103738369A (en) * 2013-12-26 2014-04-23 北京交控科技有限公司 ATS device and system based on OPC UA technology
CN103731510A (en) * 2014-01-24 2014-04-16 重庆邮电大学 Data interaction method for application layer of wireless sensor network based on IPv6 (internal protocol version 6)
CN103813372A (en) * 2014-02-19 2014-05-21 重庆邮电大学 Wireless sensor network management method based on IPV6 (internet protocol version 6)
CN104506439A (en) * 2014-12-19 2015-04-08 重庆邮电大学 IPv6 (Internet protocol version 6) message transmission system and method applicable to WIA-PA (windows image acquisition-power amplification) network
CN106550052A (en) * 2016-12-08 2017-03-29 南京富岛信息工程有限公司 A kind of data acquisition unit and method based on OPC UA
CN106533934A (en) * 2016-12-23 2017-03-22 重庆邮电大学 Border gateway applicable to all interconnected manufacturing networks
CN107357272A (en) * 2017-07-03 2017-11-17 燕山大学 A kind of DCS mobile remote monitoring systems and method based on OPC UA

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于OPC UA的无线现场设备服务化开放互联技术研究;蒲宬亘;《中国优秀硕士学位论文全文数据库 信息科技辑》;20170315(第03期);全文 *

Also Published As

Publication number Publication date
CN108183967A (en) 2018-06-19

Similar Documents

Publication Publication Date Title
CN108183967B (en) OPC UA (optical proximity correction) publishing/subscribing method suitable for IPv6 wireless sensor network
US11743855B2 (en) Network-function monitoring and control
US10813154B2 (en) Enabling interface aggregation of mobile broadband network interfaces
EP3249894B1 (en) Contextualized information bus
CN103703723B (en) Multicasting mechanism in split type architecture network
JP4583455B2 (en) Methods and nodes for processing multicast messages
JP5678198B2 (en) Mobile Internet service realization method, gateway, proxy and system
EP2629466B1 (en) Method, device and system for forwarding data in communication system
US20150052252A1 (en) Method and system for optimizing a network by independently scaling control segments and data flow
CA2789677C (en) Client routing in a peer-to-peer overlay network
WO2008077299A1 (en) A redirector, a relay and a routing information configuration system and an updating method
WO2015024524A1 (en) Issuing method for forwarding adjacency link
CN112218315A (en) End-to-end QoS policy execution and Ethernet data forwarding method of 5G private network
CN114885443B (en) Multi-mode network control system and method supporting mobile access of terminal
CN110380946A (en) A kind of communication means and communication device
US20130128888A1 (en) Method, system and router for changing application in bgp session
EP3396897A1 (en) Multicast load balancing in multihoming evpn networks
CN111683158A (en) MQTT protocol communication method for realizing synchronous request response
WO2014168852A1 (en) Network device with tunnel establishment control based on site-type attribute received from other network device
WO2018001339A1 (en) Method and apparatus for forwarding packet in virtual extensible local area network (vxlan)
CN105262682A (en) Software defined network for power data communication and traffic grooming method thereof
CN109787903B (en) Non-collision multicast data feedback method in centralized network
US11870683B2 (en) 3GPP network function set adaptation for pre-5G network elements
CN110336796A (en) A kind of communication means and communication device
WO2011026355A1 (en) Method for a node accessing a home agent, home agent cluster system and service router

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220207

Address after: 401120 No. 28, datagu Middle Road, Yubei District, Chongqing

Patentee after: Institute of industrial Internet Chongqing University of Posts and Telecommunications

Address before: 400065 Chongqing Nan'an District huangjuezhen pass Chongwen Road No. 2

Patentee before: CHONGQING University OF POSTS AND TELECOMMUNICATIONS

TR01 Transfer of patent right