Socket classification based on transport layer difference

Source: Internet
Author: User

Socket is a set of programming APIs ). Provides unified programming interfaces to the application layer between the transport layer and the application layer. The Application Layer does not have to understand the TCP/IP protocol details. Data is transmitted over the IP network directly by calling the socket interface function.

Based on Transport Layer differences, four types of socket:

(1) TCP-based socket: provides reliable streaming data services to the application layer, using TCP socket applicationsProgramProtocol: BGP, HTTP, FTP, telnet, etc. Advantage: Data Transmission-based reliability.

(2) UDP-based socket: Applicable to scenarios with low data transmission reliability requirements. UDP-based socket applications or protocols include rip, SNMP, and L2TP.

(3) rawip-based socket: Non-connection and unreliable data transmission. Feature: enables applications to directly access the network layer. Rawip-based sockets include Ping, tracert, and OSPF.

(4) Link Layer-based socket. The socket interface provided for the is-is protocol. Enable the is-is protocol to directly access the link layer through socket. Non-connection and unreliable communication service

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.