Funcionamiento del protocolo de comunicación TCP/IP del servidor de puerto serie

Como todos sabemos, el servidor de puerto serie es un dispositivo de comunicación de datos que convierte el puerto serie en una interfaz de red TPC/IP. Entonces, ¿qué es TCP/IP?

Aunque la comunicación TCP/IP (y la recogida de datos de dispositivos TCP/IP) puede parecer intimidante a primera vista, en realidad es una herramienta de comunicación muy sencilla.

What is TCP/IP communication protocol and where did it come from?

TCP/IP communication protocol stands for “Transmission Control Protocol/Internet Protocol”. It is basically a network protocol that defines the details of how data is sent and received through network adapters, hubs, switches, industrial routers, and other network communication hardware. Its purpose is to interconnect government computer systems through a global fault-tolerant network. The Department of Defense network was opened to research institutions and eventually to the public to create what is now the Internet. The Protocolo TCP/IP has also been placed in the public domain , so any software company can develop network software based on the protocol. Since it is the main protocol used on the Internet and is in the public domain.

How does TCP/IP communication protocol work?

El protocolo TCP/IP está diseñado para que cada ordenador o dispositivo de la red tenga una "dirección IP" (dirección de Protocolo de Internet) única, y cada dirección IP pueda abrir y comunicarse a través de hasta 65535 "puertos" diferentes , para enviar y recibir datos. Una dirección IP identifica de forma única a un ordenador o dispositivo en una red, y un "número de puerto" identifica una conexión específica entre un ordenador o dispositivo y otro (es decir, entre dos direcciones IP). Un "puerto" TCP/IP puede considerarse como una línea de comunicación bidireccional dedicada, en la que el número de puerto se utiliza para identificar una conexión única entre dos dispositivos.

Los protocolos del modelo TCP/IP tienen importantes ventajas: funcionan independientemente del hardware y del software subyacente. Estos protocolos están estandarizados y pueden utilizarse en cualquier situación, independientemente del sistema operativo o del dispositivo que se comunique a través de la red.

DTU/Edge Gateway/IoT Platform/Gateway Module/How the TCP/IP communication protocol of the serial port server works

El protocolo incluye las capas 3 y 4 del modelo OSI. Las capas de transporte y enlace son las responsables directas de conectar dos dispositivos en la red. Por ejemplo, las direcciones IP y los protocolos de Internet se utilizan para enviar paquetes de datos al destinatario correcto. TCP, por su parte, se encarga de establecer una conexión entre dos dispositivos y mantenerla para la transferencia de datos. Si falla la transmisión del paquete, el protocolo intentará reenviarlo.

Modelo TCP/IP

Since TCP/IP communication protocol is just an umbrella term for the most important Internet protocols, the term is used in other instances as well. This is why there is also a reference model that governs TCP/IP. Similar to the OSI model, this model aims to map all aspects of network communication. However, the TCP/IP model consists of four different layers, while the OSI model has seven layers. The layers in the TCP/IP model are assigned various tasks and therefore protocols.

● Capa de acceso a la red: Esta capa está incluida en el modelo de referencia, pero no se definen protocolos específicos. En la práctica, se utilizan principalmente los protocolos Ethernet (por cable) e IEEE 802.11 (inalámbrico). La capa de acceso a la red se utiliza para enlazar diferentes subredes para aplicaciones, como la conexión de una red Wi-Fi doméstica a Internet a través de un router.

● Capa de Internet: Los protocolos de Internet se ejecutan en esta capa y garantizan que los datos transmitidos lleguen al destino correcto. Los paquetes se enrutan a través de la red por dirección IP.

● Capa de transporte: TCP se utiliza para el transporte en el modelo de referencia. Este protocolo permite la comunicación de extremo a extremo, lo que significa que es responsable de la conexión entre dos dispositivos. Junto con TCP, UDP también forma parte de esta capa.

● Capa de aplicación: La capa superior controla la comunicación entre aplicaciones en toda la red. Protocolos como HTTP y FTP son fundamentales para la capa de aplicación. Los protocolos de comunicación por correo electrónico como POP o SMTP también se ejecutan en esta capa.

Conexiones cliente y servidor TCP/IP

A TCP/IP connection works similar to a phone call, where someone has to initiate the connection by making a phone call. Someone on the other end of the connection must first listen for the call and then answer the call when it comes in.

In TCP/IP communications, an IP address is similar to a phone number and a port number is similar to a phone number. The specific extension to which the call was answered. The “client” in a TCP/IP connection is the computer or device that “makes the call” and the “server” is the computer that “listens” for incoming calls. In other words, the client needs to know the IP address of any server it wants to connect to once the connection is established, and it also needs to know the port number through which it wants to send and receive data.

Once a connection over a TCP/IP port is established between a TCP/IP client and a TCP/IP server, data can be sent in either direction in exactly the same way as you would send it through any other type of port on your PC . Data (serial, parallel, etc.). The only difference is that the data is sent over the network. The connection between client and server remains open until the client or server terminates the connection (ie hangs up the phone).

A very nice benefit of the TCP/IP communication protocol is that the low-level drivers that implement the sending and receiving of data perform error checking on all data, so you can be sure that any data you send or receive is error-free.

Artículos recientes

Póngase en contacto con nosotros