In "TCP/IP Basics: Data Encapsulation", we mentioned that each layer in the network layer interacts with each other through interfaces and provides services. The interface between the application layer and the user is called the Application Programming Interface (API). API is actually a collection of functions, or a collection of definitions and protocols. Regardless of the type of collection, its essence is to shield users from implementation details and complexity through abstraction.
The main purpose of an API is to provide application developers with the ability to access a set of routines based on certain software or hardware without having to access the source code or understand the details of the internal working mechanism. From the user's perspective, the application program interface is presented as a series of API functions that users can use to develop network applications. From a network perspective, the application programming interface provides users with a set of methods that they can use to send service requests, information, and data to the application layer. Each layer in the network responds in turn, ultimately completing network data transmission. The role of API is mainly reflected in the following aspects.
There are many application programming interfaces at the application layer, and they are developing rapidly. The more common ones include Socket, FTP, HTTP, and Telnet. These interfaces can be divided into four categories:
For example, the FTP protocol belongs to the file interface, based on which users can share and transfer files across the network. Socket and HTTP can be attributed to data communication interfaces, based on which users can develop network communication applications and web page interactive programs. From the perspective of programming development, whether it is FTP, HTTP or Telnet, they are all application layer protocols developed based on the Socket interface. They are further encapsulation and abstraction of the Socket interface, thereby providing users with a higher level of services and interfaces. There are two commonly used socket types: stream socket (SOCK_STREAM) and datagram socket (SOCK_DGRAM).
In terms of user interface, there is also the transport layer TLI interface, which was developed by AT&T and is sometimes called XTI. It is an application program interface provided by the transport layer for users and can be used to develop applications at the transport layer. |
<<: How to protect data center power systems from winter threats
>>: Will ZeroNet subvert the existing Internet network?
"IO multiplexing" is a common technical...
Customer Introduction Wuhan Aidi Group Co., Ltd. ...
In nine days, China's 5G commercialization wi...
[Original article from 51CTO.com] In the context ...
Since the international standards were finalized ...
When dealing with complex network environments, i...
As the Internet of Things (IoT) continues to grow...
HostKvm has launched a regular promotion this mon...
SD-WAN became a "hot word" in China in ...
Get detailed information about your network conne...
The so-called change of perspective is to start f...
1 Do you know how Kafka's ultra-high concurre...
Private 5G networks are attractive to the largest...
On December 4, 2013, the Ministry of Industry and...
According to media reports, due to high investmen...