2026년 4월 7일, 화요일
식민지역사박물관
B&R

Introduction to Gateway Technology

Gateways, Linking Devices, Switches, Device Servers, Media Converters, Modems, Wireless…Confusing? Well, you are not alone. Communication between two different networks is challenging.

OSI Model
First, let’s start with taking a look on the basic model for all data communication, the OSI model.

The most basic communication is just using sub-sets of the OSI model. Layer 1 represent the lowest level, i.e. the physical communication line and its electrical signals. Layer 7 is the user level where the data model makes it possible for two devices to exchange and understand exchanged data. A common example is that even if we can hear someone speaking, we must understand his language to be able to understand the meaning of the “data”. Devices use a common Layer 7 which speaks the same language and can freely exchange data that both devices understand.

A basic RS-232 interface just defines Layer 1, making sure that two RS-232 devices can be electrically interconnected without electrical conflicts. To be able to communicate and interpret data between two devices, additional protocol software needs to be added in both devices, defining the communication rules and data formats.

The popular CAN protocol, used in most automotive applications nowadays, just communicates on Layer 2. Inside an automobile, the vendor uses CAN as communication link, but the vendor adds their own Layer 7 protocol on top of CAN to make this understandable for all nodes communicating inside the car. Any other CAN node outside the car is not able to participate in the communication if the same Layer 7 protocol isn’t implemented.

In the industrial marketplace devices from several different vendors need to be interconnected and therefore there are several open Layer 7 protocols based on CAN like DeviceNet and CANopen. Two DeviceNet nodes from two different vendors can communicate and exchange data because they use the same Layer 7 protocol.

Ethernet and the TCP/IP protocol covers the Layer 1-4 of the OSI model, which gives more functions and features than the CAN technology. Two Ethernet nodes can be interconnected in order for them to communicate, but TCP/IP only provides a transport mechanism of the data and performing service tasks like establishing connections, handling re-sends if any of the communication bits are corrupted etc.

However, two nodes using Ethernet and TCP/IP can only talk to each other, but they do not understand each other because they do not use the same “language”, i.e. the Layer 7 is not defined by TCP/IP protocol. On top of TCP/IP there must be applications like SNMP, HTTP, FTP etc to be able to exchange and process any data from the network.

All these IT protocols are standardized layer 7 protocols. In the Industrial area there are additional layer 7 protocols that handle real time data exchange. Two examples are EtherNet/IP (IP = Industrial Protocol) and Modbus-TCP that both are used on top of the TCP/IP protocol.

OK, with this information in the back of our minds, let’s take a look into how to convert from one network to another network.

Media Converters & Repeaters
Media converters normally operate in the Layer 1 and Layer 2 area of the OSI model. What they do is that they take the electrical signals from one physical media and converts them to another physical media. One example is a RS-232 < -> RS-422 converter that re-formats the electrical signals between these two networks. Another example is an Ethernet 100Mbit CAT5 Cable < ->100Mbit Fiber converter.

Media converters are very useful in Industrial applications when going from one physical media to another, but they just re-format the signals, they do not provide any additional value to the application.

As signals travel along a network cable, they degrade and become distorted in a process that is called attenuation. If a cable is long enough, the attenuation will finally make a signal unrecognizable. A Repeater enables signals to travel further. It works at the OSI’s Physical layer to regenerate the network signal and then it resends the signal on other segments.

Repeaters are basically used to allow longer distances between the nodes on the network. The repeater takes a weak electrical signal from one segment, regenerates it, and passes it to the next segment. Repeaters do not translate or filter anything. For a repeater to work, both segments that the repeater joins must have the same access method.

For example, a repeater cannot connect a segment using CSMA/CD (Ethernet) to a segment using Token Passing.

Industrial Ethernet Switches
Switches can be viewed as intelligent repeaters. They amplify the signals of the Physical network, but they also provide intelligent analyzes on the bit packages received. An Ethernet Switch with store-and forward technology looks on the entire data frame it receives on any of its ports. It starts with verifying that no communication bits are corrupted, by checking the CRC checksum. If it is not OK, the data frame will be discarded. If CRC check is successful the switch will look at the destination address and forward the data frame to the port where this destination address is located.
Device Servers

Device Servers are also refererred to as Bridges. Bridges operate in the Layer 1-4 of the OSI model. They establish connections, re-transmissions, error handling etc. Data is exchanged easily between bridges, but still the data is just sent as a chunk of anonymous data. Layer 4 has no mechanism of processing the data itself.

For Ethernet it is very popular to use Device Servers to bridge between a serial network, such as RS-232, up to Ethernet. The Device Server has a complete TCP/IP protocol stack included and when it’s connected to a serial port, the data from that port is encapsulated in a TCP/IP frame and can be transported over Ethernet. On the destination side of Ethernet the serial data is just extracted out from the TCP/IP frame. This may sound like a Media Converter but there is complicated timing and protocol processing being performed by the Device Server.

If the serial device is communicating with a PC-based system, the PC normally runs application software that handles the extraction of the serial data from the TCP/IP frame.

This PC software will create a virtual serial port on the PC to be used with current applications on the PC. While this method does not add any new features to the original application, the solution is transparent to the attached equipment and requires few, if any, changes to either the hardware or software. In most cases, the end user is not aware that the direct serial connection is being replaced by a virtual one over an Ethernet (IP) network.

In this application the Device Server allows the serial device to be located far away from the PC using the Ethernet network for data transportation of the serial data.

If using a PLC, which is the predominant solution in Industrial Applications, two Device Servers need to be used. One close to the serial device that encapsulates the serial data in the TCP/IP frame and another one close to the serial port of the PLC extracting back the data to serial format from the TCP/IP frame.

Device Servers work’s well in message based networks where the acyclic data packets can be re-transmitted on another type of network, maintaining its original structure and format.

However, most of the industrial networks have also incorporated I/O data traffic that sends cyclic data for fast updates to achieve real time data communication. All these protocols requires Layer 7 processing to bridge data between two different networks.

Another limitation with Device Servers is lack of web-based data handling. Many device servers have a built in static web server for configuration of the Device Server itself, but the fact that a Layer 4 protocol level can not process data values makes it impossible to display data from a application on a built in web server with SSI scripts or Java applets.

See Anybus Serial Server – RS232-Ethernet Virtual COM port

Industrial Gateways (Layer 7 Gateways)
Gateways makes communication possible between different architectures and protocols. They repackage and convert data going from one network to another network so that it can understand the other’s application data.

A gateway repackages information to match the requirements of the destination system. Gateways can change the format of a message so that it will conform to the application program at the receiving end of the transfer. A gateway links two systems that might not use the same Communication protocols and Data formatting structures.

Gateways incorporate the entire suite of the OSI model from Layer 1 up to Layer 7. This allows true data translation and processing on the two different networks and thus a true liking of data between the networks can be achieved. Using a Gateway to bridge between Ethernet and other protocols such as DeviceNet, Profibus or simple serial protocols also allows the Gateway to serve up data from that network directly to a built in web server, enabling true web based control and monitoring.

The area of converting data from a Device with a serial port to Ethernet, or any other network, deserves a closer explanation. The fact that the serial port may not have a Layer 7 protocol at all, makes the data linking difficult. An example can be a device like a barcode reader just transmitting ASCII data embedded in a device specific serial data frame.

Serial to Fieldbus/Ethernet Gateways
Transporting data between RS232/422/485 & ASCII protocols up to an Fieldbus/Ethernet network is made by a “Serial Gateway” often referred to as a “Protocol Converter”. The Anybus Communicator for example, has solved this conversion with using temporary memory storage inside the gateway. The data from the serial /device is mapped into a local memory in the gateway and via a Configurator software the Gateway can define which data bytes from the serial data stream that is Data and what bytes that are just command and control information. The selected data is mapped into the Layer 7 of the selected Network and thus can be received and understood by the other node using the Layer 7 for its data.

A great benefit with this solution is that the Serial Device will look like it had an embedded network card inside and will act in the way a user would expect for a networked enabled device, i.e. the gateway converts selected data bytes from the serial data stream into a format that is understood by a PLC using a Fieldbus System and the device will look like any other device on that Fieldbus network. An example would be an I/O device with digital and anlog process values.

Advanced modes of for example, the Anybus Communicator can also act as an active gateway controlling and communicating with several serial devices (multi-drop function) using a common protocol such as Modbus RTU and linking selected data to a Industrial network such as Profibus or Ethernet. It can also be used as a web enabler to give serial devices a web based management, monitoring and control function.
See Anybus Communicator – Serial to Ethernet/Fieldbus Gateways

Fieldbus/Ethernet to Fieldbus/Ethernet
The growing need for flexibility and diversity within the factory floor is becoming more and more important. Using Industrial Gateways is a way of linking old/new factories and in particular bridging between different fieldbus or Ethernet networks within the same factory or when out in the field. The Anybus X-gateway product range is an industrial Bridge/Gateway between almost any 2 Fieldbus or Ethernet networks. Take a closer look at how the X-gateway can be used to easily exchange I/O data with two networks thus enabling the old factory network and new factory network to communicate with each other.

See Anybus-X – Ethernet/Fieldbus to Ethernet/Fieldbus Bridge/Gateways

Summary
Transporting data between two different networks is not trivial and it is important to analyze the requirement of the application.

– Media converters work well when overcoming electrical difference in two network technologies. Normally no configuration is necessary.

– Device Servers are attractive when using Ethernet based networks and with PC based control.

– Serial Gateways are able to solve all data linking between two networks such as RS232/422/485 to other networks. The drawback is that Gateways are quite complex devices and require set-up during installation to define the data that should be linked between the two networks.

– Bridges/Gateways are able to solve all data linking between two networks. Today this usually means simple exchange of I/O data, but in the future more and more functionality will be encoporated into these products.

– To web-enable data from a serial device with a legacy protocol, you must have a Layer 7 gateway product to interpret the real data and link it to a built in web server.

아이씨엔 매거진 2013년 03월호

뉴스레터 구독하기

아이씨엔매거진은 AIoT, IIoT 및 피지컬 AI, 디지털트윈을 통한 제조업 디지털전환 애널리틱스를 제공합니다.
테크리포트: 자율제조, 전력전자, 모빌리티, 로보틱스, 스마트농업

AW2026 expo
ACHEMA 2027
오윤경 기자
오윤경 기자http://icnweb.co.kr
아이씨엔매거진 온라인 뉴스 에디터입니다. 오토메이션과 클라우드, 모빌리티, 공유경제, 엔지니어 인문학을 공부하고 있습니다. 보도자료는 아래 이메일로 주세요. => news@icnweb.co.kr
fastech EtherCAT
as-interface

Related Articles

Stay Connected

440FansLike
407FollowersFollow
224FollowersFollow
120FollowersFollow
372FollowersFollow
152SubscribersSubscribe
spot_img
InterPACK
spot_img
SPS 2026
automotion
Power Electronics Mag

Latest Articles

Related Articles

PENGUIN Solutions
구글, 엣지 AI 혁신 이끌 ‘젬마 4’ 공개… 온디바이스 추론 성능 극대화

구글, 엣지 AI 혁신 이끌 ‘젬마 4’ 공개… 온디바이스 추론 성능...

0
구글이 인터넷 연결 없이도 스마트폰이나 소형 산업용 컴퓨터에서 빠르게 작동하는 인공지능 '젬마 4'를 공개했다. 이 모델은 크기가 작으면서도 성능은 대형 AI 못지않아 공장의 기계 상태를 살피거나 로봇을 조종하는 데 유용하다
WindEnergy
InterPACK

Related Articles

fastech EtherCAT
as-interface
구글, 엣지 AI 혁신 이끌 ‘젬마 4’ 공개… 온디바이스 추론 성능 극대화

구글, 엣지 AI 혁신 이끌 ‘젬마 4’ 공개… 온디바이스 추론 성능...

0
구글이 인터넷 연결 없이도 스마트폰이나 소형 산업용 컴퓨터에서 빠르게 작동하는 인공지능 '젬마 4'를 공개했다. 이 모델은 크기가 작으면서도 성능은 대형 AI 못지않아 공장의 기계 상태를 살피거나 로봇을 조종하는 데 유용하다
한국레노버, AI 기반 산업용 엣지 솔루션 씽크엣지 2종 출시

한국레노버, AI 기반 산업용 엣지 솔루션 씽크엣지 2종 출시

0
한국레노버가 공장이나 물류 창고처럼 덥거나 먼지가 많은 곳에서도 인공지능 기능을 척척 수행하는 산업용 컴퓨터 씽크엣지 2종을 출시했다. 이 장치들은 인터넷 연결 없이도 현장에서 직접 데이터를 분석해 불량을 잡아내거나 로봇을 조종하며, 작고 튼튼한 설계로 좁은 틈새나 벽면에도 쉽게 설치할 수 있다
ARC 인포메티크, IEC 62443-4-1 인증 획득… PcVue 플랫폼 보안성 강화

ARC 인포메티크, IEC 62443-4-1 인증 획득… PcVue 플랫폼 보안성 강화

0
공장 자동화 소프트웨어인 PcVue를 만드는 ARC Informatique가 국제적인 산업 보안 인증을 받았다. 이번 인증은 소프트웨어를 처음 만들 때부터 해킹에 강하게 설계했다는 것을 보증한다. 이를 통해 공장을 운영하는 기업들은 보안 걱정을 덜고 더 안전하게 생산 시설을 관리할 수 있다
터크, IP67 등급 IO-Link 전자 퓨즈 TBIF 출시… 캐비닛 없는 현장 자동화 구현

터크, IP67 등급 IO-Link 전자 퓨즈 TBIF 출시… 캐비닛 없는 현장...

0
터크가 별도의 보호함 없이 공장 현장에 바로 설치할 수 있는 똑똑한 전자 퓨즈 TBIF를 출시했다. 이 제품은 물과 먼지에 강한 설계를 갖추고 있으며, 컴퓨터나 스마트 기기로 원격에서 상태를 확인하거나 고장 난 회로를 다시 켤 수 있다. 이를 통해 기계 고장 시간을 줄이고 관리 비용을 아낄 수 있다
한국레노버, 씽크패드 아우라 에디션 3종 출시… 온디바이스 AI로 업무 혁신 주도

한국레노버, 씽크패드 아우라 에디션 3종 출시… 온디바이스 AI로 업무 혁신 주도

0
한국레노버가 인공지능 기능을 강화한 씽크패드 아우라 에디션 노트북 3종을 출시했다. 인공지능이 업무 환경을 분석해 보안을 강화하거나 집중을 돕는 스마트 모드를 탑재했다
호리바, 광섬유식 비접촉 약액 농도 모니터 CS-900F 출시… 반도체 공정 효율 극대화

호리바, 광섬유식 비접촉 약액 농도 모니터 CS-900F 출시… 반도체 공정 효율...

0
호리바 어드밴스드 테크노가 반도체 공정용 약액 농도 측정기 CS-900F를 출시했다. 광섬유 기술을 활용해 핵심 부품을 분리 배치함으로써 배관에 붙는 측정기 크기를 기존보다 60%나 줄였다. 덕분에 복잡한 반도체 장비 내부 공간을 더 넓게 쓸 수 있고, 측정 가능한 약액 종류도 대폭 늘어났다
- Our Youtube Channel -Engineers Youtube Channel

Latest Articles