Читать книгу Networking All-in-One For Dummies - Lowe Doug, Doug Lowe - Страница 125

The transport layer

Оглавление

The transport layer is where you find two of the most well-known networking protocols: TCP (typically paired with IP) and SPX (typically paired with IPX). As its name implies, the transport layer is concerned with the transportation of information from one computer to another.

The main purpose of the transport layer is to ensure that packets are transported reliably and without errors. The transport layer does this task by establishing connections between network devices, acknowledging the receipt of packets, and resending packets that aren’t received or are corrupted when they arrive.

In many cases, the transport layer protocol divides large messages into smaller packets that can be sent over the network efficiently. The transport layer protocol reassembles the message on the receiving end, making sure that all the packets that make up a single transmission are received so that no data is lost.

For some applications, speed and efficiency are more important than reliability. In such cases, a connectionless protocol can be used. As you can likely guess, a connectionless protocol doesn’t go to the trouble of establishing a connection before sending a packet: It simply sends the packet. TCP is a connection-oriented transport layer protocol. The connectionless protocol that works alongside TCP is User Datagram Protocol (UDP).

You can view information about the status of TCP and UDP connections by running the Netstat command from a command window, as shown in Figure 1-4. In the figure, you can see that several TCP connections are established.


FIGURE 1-4: See TCP and UDP connections.

In fact, you can use the command Netstat /N to see the numeric network addresses instead of the names. With the /N switch, the output in Figure 1-4 would look like this:

Active Connections Proto Local Address Foreign Address StateTCP 127.0.0.1:2869 127.0.0.1:54170 ESTABLISHEDTCP 127.0.0.1:5357 127.0.0.1:54172 TIME_WAITTCP 127.0.0.1:27015 127.0.0.1:49301 ESTABLISHEDTCP 127.0.0.1:49301 127.0.0.1:27015 ESTABLISHEDTCP 127.0.0.1:54170 127.0.0.1:2869 ESTABLISHEDTCP 192.168.1.100:49300 192.168.1.101:445 ESTABLISHED

TCP is a connection-oriented transport layer protocol. UDP is a connectionless transport layer protocol.

Networking All-in-One For Dummies

Подняться наверх