CN113938443A - Wireless Internet of things protocol switch architecture and implementation method - Google Patents

Wireless Internet of things protocol switch architecture and implementation method Download PDF

Info

Publication number
CN113938443A
CN113938443A CN202110854776.XA CN202110854776A CN113938443A CN 113938443 A CN113938443 A CN 113938443A CN 202110854776 A CN202110854776 A CN 202110854776A CN 113938443 A CN113938443 A CN 113938443A
Authority
CN
China
Prior art keywords
data
wireless internet
things
switch
protocol
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.)
Granted
Application number
CN202110854776.XA
Other languages
Chinese (zh)
Other versions
CN113938443B (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.)
Peking University
Original Assignee
Peking University
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 Peking University filed Critical Peking University
Priority to CN202110854776.XA priority Critical patent/CN113938443B/en
Publication of CN113938443A publication Critical patent/CN113938443A/en
Application granted granted Critical
Publication of CN113938443B publication Critical patent/CN113938443B/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
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/354Switches specially adapted for specific applications for supporting virtual local area networks [VLAN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the field of Internet of things and industrial Internet, and discloses a switch framework supporting multiple wireless communication protocols and port data exchange of the multiple wireless communication protocols and an implementation method. By adopting a hardware circuit method, the multi-port wireless Internet of things protocol data can be accessed into the TSN switch under the condition of ensuring time certainty, and then the industrial Internet is accessed. The wireless Internet of things protocol data are transmitted into a hardware circuit of the wireless Internet of things switch through a data transceiver module, and after checking, priority (defined in VLAN Tag) judgment and Ethernet frame packing operation are carried out in the circuit, the encapsulated wireless protocol data are transmitted to the TSN switch through a TSN interface module. Supported wireless internet of things protocols include, but are not limited to: bluetooth, ZigBee, LoRa, NB-IoT. The whole transmission process is completely processed by adopting a hardware circuit, the conversion speed is high, the conversion time is short, the multi-protocol and multi-port data conversion adopts a parallel mode, and data congestion caused by large data volume can be avoided.

Description

Wireless Internet of things protocol switch architecture and implementation method
Technical Field
The invention belongs to the field of Internet of things and industrial Internet, and relates to a switch framework supporting multiple wireless communication protocols and port data exchange of the multiple wireless communication protocols and an implementation method.
Background
The industrial internet of things is the internet of things technology in the industrial field, and part of industrial field devices are interconnected and intercommunicated on the basis of the wireless internet of things technology. With the application of emerging technologies in the traditional industrial field, a novel industrial production mode which integrates technologies such as a cloud platform, edge computing, big data analysis and artificial intelligence is promoting the rapid transition of the industrial internet of things to digitization and intelligence. The industrial Internet of things switch is used as an important component of the industrial Internet of things, and comprehensive conversion from the industrial Internet of things to the industrial Internet is achieved.
The interconnection of numerous industrial field devices becomes a first problem to be solved quickly in the industrial internet, and the connection cost is greatly increased due to more and more heterogeneous devices. However, in the present phase, due to different communication standards used by countries and equipment manufacturing enterprises in the world, communication protocols between industrial equipment are different, which causes difficulty in interconnection between industrial equipment in the enterprise, mutual independence between systems, and failure in real-time information interaction. Although the industrial gateways on the market are various in types, the functions of the products are not complete, and most of the products cannot support the access and transmission of multiple types of data and multi-protocol data.
TSN (Time sensitive networking, Time sensitive network) is a set of "sub-standards" established based on specific application requirements under the IEEE802.1 standard framework, and is intended to establish a "universal" Time sensitive mechanism for ethernet protocols to ensure real-Time performance, certainty and low latency of network data transmission.
The wireless internet of things protocol supported by the existing internet of things gateway or internet of things switch is single, the protocol conversion mode is realized by adopting general processor software, the conversion rate is limited, when the ports are too many and the data volume is large, data blockage can be caused, if the buffer area is not reserved enough, data loss can be caused, the certainty of communication can not be ensured, and conversion while more wireless data ports can not be met. The TSN switch is an important component of an industrial Ethernet, and the existing Internet of things switch does not support interconnection with the TSN switch, so that the requirement of the industrial Internet cannot be well met.
Disclosure of Invention
Aiming at the problem that the existing Internet of things switch can not support multi-protocol and multi-port data conversion under the condition of meeting communication certainty, the invention provides a method for realizing multi-protocol and multi-port data conversion by adopting a hardware circuit.
The wireless Internet of things protocol data are transmitted into a hardware circuit of the wireless Internet of things switch through a data transceiver module, and after checking, priority (defined in VLAN Tag) judgment and Ethernet frame packing operation are carried out in the circuit, the encapsulated wireless protocol data are transmitted to the TSN switch through a TSN interface module. Supported wireless internet of things protocols include, but are not limited to: bluetooth, ZigBee, LoRa, NB-IoT. The whole transmission process is completely processed by adopting a hardware circuit, the conversion speed is high, the conversion time is short, the multi-protocol and multi-port data conversion adopts a parallel mode, and data congestion caused by large data volume can be avoided.
The invention mainly comprises the following modules: the device comprises a data transceiving module, a VID mapping module, a packet unpacking module, a TSN interface module and an AXI4 interface module.
Drawings
Fig. 1 is a block diagram of a wireless internet of things switch architecture system.
Fig. 2 is a schematic diagram of a wireless internet of things switch architecture.
Fig. 3 is a schematic diagram of a data transceiver module.
Fig. 4 contains an ethernet frame structure diagram of wireless internet of things protocol data.
Fig. 5 is an exemplary diagram of wireless internet protocol VID values and priority fields.
Fig. 6 is a flow chart of transmission of wireless internet of things protocol data in the present invention.
Detailed Description
The implementation details are as follows:
the embodiment of the invention relates to a wireless Internet of things protocol switch framework with time certainty and an implementation method thereof. The core of the invention is that the TSN switch and the VLAN technology are utilized to realize the deterministic communication of the wireless Internet of things protocol data in the TSN network through a hardware circuit. Fig. 1 shows the application of the present invention in a TSN network and a wireless internet of things network, and a schematic block diagram of the present invention is shown in fig. 2.
The working principle and the process are as follows:
for uplink data, that is, a wireless internet of things network- > a wireless internet of things protocol switch- > a TSN switch, the wireless internet of things protocol data enters the wireless internet of things protocol switch through a data transceiver module, a VID mapping module compares a VID mapping table with a priority mapping table according to different transceiver circuit interfaces, and a VID value and a priority field are added before a wireless protocol data frame, if multiple ports receive data at the same time, the VID mapping module sends the data to a packet unpacking module according to configured priorities in sequence, the packet unpacking module adds protocol data to an ethernet frame header and a frame tail, and an ethernet frame structure diagram containing the wireless internet of things protocol data refers to fig. 4. The encapsulation and unpacking module transmits the Ethernet frames containing the wireless Internet of things protocol data to the TSN interface module, and the TSN interface module transmits the data to the TSN switch according to the standard time sequence of the Ethernet interface.
For downlink data, namely TSN switch- > wireless Internet of things protocol switch- > wireless Internet of things network, an Ethernet frame containing the wireless Internet of things protocol data enters the wireless Internet of things protocol switch through a TSN interface module, an Ethernet frame header and frame tail are removed by a packet unpacking module, only the wireless Internet of things protocol data and VID values are reserved, a VID mapping module judges which data transceiver module the wireless Internet of things protocol data is sent to according to the VID values and a VID mapping table, and the data transceiver module sends the protocol data to the wireless Internet of things equipment after receiving the wireless Internet of things protocol data from the VID mapping module.
Fig. 6 shows a transmission flow of wireless internet of things protocol data in the present invention.
The invention adds VLAN Tag which accords with IEEE 802.1Q standard on the basis of packaging wireless Internet of things protocol data into standard Ethernet frame, and the total number of the VLAN Tag is 4 bytes. Containing a TPID of 2 bytes and a TCI of 2 bytes, the TPID value being 0x8100 for ethernet frames, the TCI comprising a 3-bit priority field capable of representing eight priority levels, a 1-bit typical format indicator, a vid (vlan identifier) of 12bits, wherein the priority field may specify the priority level of each protocol port, the higher the priority field value, the higher the priority level. When a plurality of protocol ports receive data from the wireless Internet of things at the same time, the TSN switch can determine which port data is preferentially switched according to the priority level; meanwhile, each port is assigned with a VID value, and the wireless Internet of things switch and the upper computer distinguish which protocol data the transmitted data is according to the VID in the data frame. See fig. 5 for an example of wireless internet protocol VID values and priority fields.
VLAN Tag has two important roles: firstly, for the condition that multiple paths of uplink data are generated simultaneously, the sequence of sending the data to the TSN switch can be judged according to the priority domain; and secondly, the TSN switch can determine the transmission priority of the wireless Internet of things protocol data in the TSN according to the priority domain.
Detailed description of the modules:
the invention mainly comprises the following modules: the device comprises a data transceiving module, a VID mapping module, a packet unpacking module, a TSN interface module and an AXI4 interface module.
The data transceiver module also comprises a UART receiving module, a UART transmitting module, a receiving FIFO module, a transmitting FIFO module, a gating module, a baud rate calculating module and a clock frequency dividing module. Please refer to fig. 3 for a schematic diagram of the data transceiver module.
The UART receiving module realizes UART receiving time sequence and parity check function, and stores protocol data received from the UART interface into a receiving FIFO; the UART transmitting module realizes the functions of transmitting time sequence and parity check and transmits the protocol data transmitted by the transmitting FIFO to the wireless protocol port.
The receiving FIFO module and the sending FIFO module are realized by adopting asynchronous FIFO which is designed based on a double-port RAM. Because the UART transceiving speed is different from the transceiving speed of the TSN interface module, the data is cached by adopting the asynchronous FIFO.
The VID mapping module comprises a VID mapping table, a VID mapping circuit and a multi-path selection circuit, wherein the VID mapping table needs the CPU to be configured into the VID mapping module through the AXI4 interface module.
The VID mapping module is used for receiving protocol data from a receiving FIFO (first in first out) for uplink data, namely a wireless Internet of things network- > wireless Internet of things protocol switch- > TSN switch, attaching VID values and priority domains corresponding to ports to the wireless protocol data according to different ports and VID mapping tables and priority mapping tables of different protocols, wherein the attachment position is the front end of the protocol data, and then sending the protocol data with the attached VID values and priority domains to a packet unpacking module; for downlink data, namely TSN exchanger- > wireless Internet of things protocol exchanger- > wireless Internet of things network, the VID mapping module receives protocol data from the packet unpacking module, the foremost end of the protocol data is provided with 12bits VID information, the VID mapping module compares the VID mapping table according to the VID value, and the wireless Internet of things protocol data with the VID value removed is transmitted to the corresponding transmission FIFO.
The function that the said package unpacks the module and finishes is, for the upstream data, namely wireless Internet of things network- > exchanger- > host computer, after the package unpacks the module and receives the data with VID value from VID mapping module, add the frame head frame end of Ethernet on the basis of this data frame, the frame head of Ethernet needing to add includes: destination address, source address, type/length, and the end of the ethernet frame to be added is the frame check sequence FCS.
In which besides the destination address, the source address, the type/length, and the type/length byte, a 4-byte VLAN Tag value is added before the protocol data, and since the VID mapping module has added the VID value before the protocol data, the packet unpacking module only needs to add the TPID, the priority field, and the typical format indicator in the VLAN Tag. The priority value of the priority domain needs to be added according to the priority mapping table configured by the CPU through the AXI4 interface module.
For downlink data, namely an upper computer-switch equipment-field bus network, the encapsulation unpacking module receives an Ethernet frame with VLAN Tag from the TSN interface module, the encapsulation unpacking module removes the information of the head and the tail of the Ethernet frame, and only retains the VID value of 12bits and the protocol data of the wireless Internet of things.
The AXI4 interface module is to implement an AXI4 lite protocol, and includes 2 AXI4 lite registers with 32 bit widths, which are used for caching configuration information transmitted to an IP of a wireless internet of things switch by a CPU, wherein the configuration information is as follows: priority table in VLAN Tag, VID value of each port in VLAN Tag, parity check configuration information and baud rate configuration information needed by port.
The TSN interface module realizes GMII interface time sequence in accordance with IEEE 802.3 standard, and wireless Internet of things protocol data encapsulated into Ethernet frame format is transmitted with the TSN switch through the TSN interface module.

Claims (3)

1. A wireless Internet of things protocol switch framework with time certainty and an implementation method are characterized by comprising the following steps:
and for uplink data, namely wireless Internet of things network- > wireless Internet of things protocol switch- > TSN switch, adding the data into the content of the Ethernet frame, and encapsulating the data frame into the Ethernet frame.
And for downlink data, namely TSN (transmission line network) switch- > wireless Internet of things protocol switch- > wireless Internet of things network, removing the content of the Ethernet frame of the data, and unpacking the data into wireless Internet of things protocol data.
2. The added ethernet frame contents of claim 1 comprising: preamble, start of frame delimiter, destination MAC address, source MAC address, 802.1Q VLAN Tag, frame check FCS. Wherein the 802.1Q VLAN Tag has 4 bytes. Contains 2 bytes of TPID and 2 bytes of TCI, the TPID value is 0x8100, the TCI includes 3 bits of priority field, can represent eight priority levels, 1 bit of typical format indicator, VID (VLAN identifier) of 12 bits. Wherein the priority domain may specify a priority level for each protocol port, the greater the priority domain value, the higher the priority level. When a plurality of protocol ports receive data from the wireless Internet of things at the same time, the TSN switch can determine which port data is transmitted preferentially according to the priority level; meanwhile, each port is assigned with a VID value, and the upper computer and the invention distinguish which protocol data the transmitted data is according to the VID in the data frame.
3. The method for transmitting wireless internet of things protocol data in a TSN network according to claim 1, comprising:
for uplink data, namely wireless internet of things network- > wireless internet of things protocol switch- > TSN switch, the wireless internet of things protocol data enters the wireless internet of things protocol switch through a data receiving and sending module, a VID mapping module adds a VID value and a priority domain to the front of a wireless protocol data frame through comparing a VID mapping table with a priority mapping table according to different receiving and sending circuit interfaces, if multiple ports receive the data at the same time, the VID mapping module sends the data to a packet unpacking module according to configured priorities in sequence, and the packet unpacking module adds the protocol data to an Ethernet frame header and a frame tail. The encapsulation and unpacking module transmits the Ethernet frames containing the wireless Internet of things protocol data to the TSN interface module, and the TSN interface module transmits the data to the TSN switch according to the standard time sequence of the Ethernet interface.
For downlink data, namely, a TSN (transmission line network) switch, a wireless Internet of things protocol switch and a wireless Internet of things network, an Ethernet frame containing wireless Internet of things protocol data enters the wireless Internet of things protocol switch through a TSN interface module, a packet unpacking module removes an Ethernet frame header and a frame tail, only the wireless Internet of things protocol data and a VID (video identifier) value are reserved, a VID mapping module judges which data transceiver module to send the wireless Internet of things protocol data to according to the VID value and a VID mapping table, and the data transceiver module sends the protocol data to wireless Internet of things equipment after receiving the wireless Internet of things protocol data from the VID mapping module.
CN202110854776.XA 2021-07-28 2021-07-28 Wireless internet of things protocol switch Active CN113938443B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110854776.XA CN113938443B (en) 2021-07-28 2021-07-28 Wireless internet of things protocol switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110854776.XA CN113938443B (en) 2021-07-28 2021-07-28 Wireless internet of things protocol switch

Publications (2)

Publication Number Publication Date
CN113938443A true CN113938443A (en) 2022-01-14
CN113938443B CN113938443B (en) 2022-10-21

Family

ID=79274353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110854776.XA Active CN113938443B (en) 2021-07-28 2021-07-28 Wireless internet of things protocol switch

Country Status (1)

Country Link
CN (1) CN113938443B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115567617A (en) * 2022-09-29 2023-01-03 深圳市英威腾电气股份有限公司 Communication expansion method and device
CN117579709A (en) * 2024-01-16 2024-02-20 成都数维通信技术有限公司 Construction method of industrial control network communication protocol system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200351752A1 (en) * 2019-05-02 2020-11-05 Nokia Solutions And Networks Gmbh & Co. Kg Integration of communication network in time sensitive networking system
CN112073388A (en) * 2020-08-20 2020-12-11 上海交通大学 Time-sensitive heterogeneous network system of industrial control system and management method
US20200404731A1 (en) * 2019-06-18 2020-12-24 Qualcomm Incorporated Techniques for communicating management information for mechanisms using wireless communications
CN112422700A (en) * 2021-01-25 2021-02-26 奥特酷智能科技(南京)有限公司 Vehicle-mounted network redundant communication method and system based on DDS (direct digital synthesizer) protocol and TSN (time delay network) technology

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200351752A1 (en) * 2019-05-02 2020-11-05 Nokia Solutions And Networks Gmbh & Co. Kg Integration of communication network in time sensitive networking system
US20200404731A1 (en) * 2019-06-18 2020-12-24 Qualcomm Incorporated Techniques for communicating management information for mechanisms using wireless communications
CN112073388A (en) * 2020-08-20 2020-12-11 上海交通大学 Time-sensitive heterogeneous network system of industrial control system and management method
CN112422700A (en) * 2021-01-25 2021-02-26 奥特酷智能科技(南京)有限公司 Vehicle-mounted network redundant communication method and system based on DDS (direct digital synthesizer) protocol and TSN (time delay network) technology

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115567617A (en) * 2022-09-29 2023-01-03 深圳市英威腾电气股份有限公司 Communication expansion method and device
CN117579709A (en) * 2024-01-16 2024-02-20 成都数维通信技术有限公司 Construction method of industrial control network communication protocol system
CN117579709B (en) * 2024-01-16 2024-03-29 成都数维通信技术有限公司 Construction method of industrial control network communication protocol system

Also Published As

Publication number Publication date
CN113938443B (en) 2022-10-21

Similar Documents

Publication Publication Date Title
US20210051045A1 (en) Communication switching apparatus for switching data in multiple protocol data frame formats
US8908704B2 (en) Switch with dual-function management port
US11296807B2 (en) Techniques to operate a time division multiplexing(TDM) media access control (MAC)
CN107426246B (en) FPGA-based high-speed data exchange system between gigabit Ethernet and RapidIO protocol
US8649387B2 (en) Method and system for fibre channel and ethernet interworking
US10841230B1 (en) Intelligent controller and sensor network bus, system and method
CN113938443B (en) Wireless internet of things protocol switch
CN106953853B (en) Network-on-chip gigabit Ethernet resource node and working method thereof
CN100370788C (en) Method for realizing data communication utilizing virtual network adapting card in network environment simulating
US20090210601A1 (en) Systems and methods for providing a virtual network interface connection ("nic") with the baseboard management controller ("bmc")
EP2003823A1 (en) Autonegotiation over an interface for which no autonegotiation standard exists
US11089140B2 (en) Intelligent controller and sensor network bus, system and method including generic encapsulation mode
WO2016191990A1 (en) Packet conversion method and device
US9772968B2 (en) Network interface sharing
US5875176A (en) Network adaptor driver with destination based ordering
CN113709047A (en) Data forwarding system and method for automobile domain controller
US6909717B1 (en) Real time ethernet protocol
CN113630326A (en) Gigabit Ethernet flow control device
CN108228521A (en) A kind of Serial Communication at High Speed on MS network
US6484213B1 (en) Adapting networking device for enhancing performance of a hybrid networking system
CN113890680A (en) Transmission method applied to fiber channel avionics network DDS
CN113300800A (en) Multi-mode deterministic data processing device and method
CN100521690C (en) System and component for realizing first component and second component communication
CN109951458B (en) RapidIO/FC protocol conversion system and method applied to simulation ICP environment
WO2011012022A1 (en) Base station interface controller, base station cascade transmission system and cascade transmission method

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