Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the network protocol of Go network programming?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

Today, I will talk to you about what the network protocol of Go network programming is. Many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.

Network protocol

From the point of view of application, the protocol can be understood as "rules", which is the rules of data transmission and data interpretation. Suppose that both An and B want to transfer files. Stipulate that:

For the first time, the file name is transferred, and the receiver receives the file name and replies OK to the transmitter.

The second time, send the size of the file, the receiver receives the data and replies to an OK again.

The third time, transfer the contents of the file. Similarly, the OK reply after the receiver has received the data indicates that the contents of the file have been received successfully.

Therefore, no matter what kind of file is transferred between An and B, it is completed through three data transfers. The simplest data transmission rule is formed between An and B. Both parties send and receive data according to this rule. The mutual compliance rule reached between An and B is the agreement.

This kind of agreement, which is only observed between An and B, is called the original agreement.

When this agreement is adopted by more people, it is constantly added, improved, maintained and improved. Finally, a stable and complete file transfer protocol is formed, which is widely used in all kinds of file transfer process. The agreement becomes a standard protocol. The earliest ftp protocol is derived from this.

Typical protocol

Application layer: common protocols are HTTP protocol and FTP protocol.

Transport layer: common protocols are TCP/UDP protocol.

Network layer: common protocols include IP protocol, ICMP protocol and IGMP protocol.

Network interface layer: common protocols include ARP protocol and RARP protocol.

Brief description of the uses of each protocol:

IP protocol is the Internet interconnection protocol (InternetProtocol).

TCP Transmission Control Protocol (TransmissionControlProtocol) is a connection-oriented, reliable, byte-stream-based transport layer communication protocol.

UDP user Datagram Protocol (UserDatagramProtocol) is a connectionless transport layer protocol in the OSI reference model, which provides a simple and unreliable transaction-oriented information transfer service.

ICMP protocol is the Internet Control message Protocol (InternetControlMessageProtocol), which is a subprotocol of the TCP/IP protocol family, which is used to transmit control messages between IP hosts and routers.

IGMP protocol is the Internet Group Management Protocol (InternetGroupManagementProtocol), which is a multicast protocol in the Internet protocol family. The protocol runs between the host and the multicast router.

ARP protocol is a forward address resolution protocol (AddressResolutionProtocol), which finds the MAC address of the corresponding host through the known IP.

RARP is a reverse address translation protocol that determines IP addresses by MAC addresses.

After reading the above, do you have any further understanding of the network protocol of Go network programming? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report