What is the difference between Soap, Http, and TCP/IP three basic communication protocols?

Source: Internet
Author: User

Tcp

TCP is a connection-oriented communication protocol, the connection is established through three handshake, the communication is completed to remove the connection, because TCP is connection-oriented so can only be used for end-to-end communication.
TCP provides a reliable data flow service, using "positive confirmation with retransmission" technology to achieve the reliability of transmission. TCP also uses a method called "sliding window" for traffic control, so-called window actually represents the ability to receive, to limit the sending speed.
If there are TCP packets already sealed in the IP packets, then IP will transfer them to the TCP layer. TCP sorts the packets and checks for errors, and realizes the connection between the virtual circuits. TCP packets include sequence numbers and acknowledgments, so packages that are not received sequentially can be sorted, and corrupted packets can be re-transmitted.
TCP sends its information to higher-level applications, such as Telnet's service programs and client programs. The application turns the information back to the TCP layer, and the TCP layer sends them down to the IP layer, device drivers and physical media, and finally to the receiver.
Connection-oriented services (such as Telnet, FTP, rlogin, X windows, and SMTP) require a high degree of reliability, so they use TCP. DNS uses TCP (sending and receiving domain name databases) in some cases, but uses UDP to transmit information about a single host.

Ip

The IP layer receives packets sent from a lower layer (such as an Ethernet device driver) and sends the packet to a higher-level---TCP or UDP layer, whereas the IP layer transmits packets received from the TCP or UDP layer to the lower level. IP packets are unreliable because IP does not do anything to verify that packets are sent sequentially or corrupted, that the IP packet contains the address (source address) of the host that sent it, and the address of the host receiving it (the destination).
High-level TCP and UDP services typically assume that the source address in the package is valid when the packet is received. It can also be said that IP addresses form the basis of authentication for many services, which believe that packets are sent from a valid host. IP acknowledgement contains an option called IP Source routing, which can be used to specify a direct path between a source address and a destination address. For some TCP and UDP services, the IP packet using this option seems to be passed from the last system on the path, not from its real location. This option is available for testing purposes, which means it can be used to trick the system into making connections that are normally forbidden. Then, many services that rely on IP source address validation will cause problems and will be hacked.

Udp

UDP is a non-connection-oriented communication protocol, UDP data includes the destination port number and the source port number information, because the communication does not need to connect, so it can be implemented broadcast send.
UDP communication does not need to be confirmed by the receiver, is unreliable transmission, there may be packet loss phenomenon, practical applications require programmer programming verification.
UDP is located at the same level as TCP, but it does not matter the order, error, or re-send of packets. Therefore, UDP is not applied to connection-oriented services that use virtual circuits, and UDP is primarily used for services that are query-----responsive, such as NFS. These services need to exchange less information relative to FTP or telnet. Services that use UDP include NTP (Network Time Protocol) and DNS (DNS also uses TCP).
Spoofing UDP packets is easier than spoofing TCP packets because UDP does not establish an initialization connection (also known as a handshake) (because there is no virtual circuit between the two systems), that is, UDP-related services are at greater risk.

Icmp

ICMP is located at the same level as IP and is used to transmit control information for the IP. It is primarily used to provide information about the path to the destination address. ICMP ' Redirect ' information informs the host of a more accurate path to other systems, while the ' unreachable ' message indicates a problem with the path. Additionally, if the path is not available, ICMP can cause the TCP connection to ' gracefully ' terminate. Ping is the most commonly used ICMP-based service.

When soap serializes the information into XML, it is then packaged in the same way as the HTTP protocol, and it is transmitted in either TCP or UDP. A metaphor is a good idea. Both TCP and UDP are highways, and for the moment TCP is considered a general highway, UDP Highway, SOAP and HTTP are all cars, then both soap and HTTP can run on TCP and UDP. Said soap can be transmitted via HTTP, which is actually said that soap is a car, HTTP is a car truck, the SOAP information into the HTTP, and then transport, of course, the road is still TCP or UDP.
Said soap can be transmitted through the HTTP protocol, this sentence is not very accurate, more accurate: The SOAP message can be wrapped through the HTTP protocol via TCP or UDP transmission.

HTTP
is a communication protocol that transmits information over a network.

Soap
is an XML-based protocol Exchange message that can be used to transmit this information using HTTP. In fact, HTTP is the most common transport tool for SOAP messages.


When soap serializes the information into XML, it is then packaged in the same way as the HTTP protocol, and it is transmitted in either TCP or UDP. A metaphor is a good idea. Both TCP and UDP are highways, and for the moment TCP is considered a general highway, UDP Highway, SOAP and HTTP are all cars, then both soap and HTTP can run on TCP and UDP. Said soap can be transmitted via HTTP, which is actually said that soap is a car, HTTP is a car truck, the SOAP information into the HTTP, and then transport, of course, the road is still TCP or UDP. Said soap can be transmitted through the HTTP protocol, this sentence is not very accurate, more accurate: The SOAP message can be wrapped through the HTTP protocol via TCP or UDP transmission.

What is the difference between the

Soap, Http, and TCP/IP three basic communication protocols?

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.