D-Link DGS-3308FG Product Manual - Page 49

UDP and ICMP, Packet Headers

Page 49 highlights

8-port Gigabit Ethernet Switch User's Guide Connection 1 1234, 21 10.42.73.23 210.128.12.1 Connection 2 1235, 21 10.42.73.23 210.128.12.1 So the local computer, 10.42.73.23 has two connections to the FTP Server, 210.128.12.1. Commands sent from 10.42.73.23 are received by the FTP Server on the well-known TCP port number 21, but the transmitted files are received by 10.42.73.23 on either TCP port number 1234 or 1235, depending on which port issued the command. FTP actually uses two different connections. One for sending commands and a second one opened when a request to send data is issued. This is done to allow the user to continue sending commands (such as, abort the file transfer). Connections with a remote terminal use a single connection. When a command is to be sent, a special character is sent that indicates the next character is part of a command. UDP and ICMP TCP will divide large messages into several packets and manage the sending and receiving of all of these packets. Many applications do not require messages that must be divided into many smaller packets. The User Datagram Protocol (UDP) is designed for applications that do not need sequences of packets to be put together. UDP also does not keep track of what is sent and cannot resend data. UDP does use port numbers in much the same way as TCP. UDP allows several programs to make connections to a server at the same time. UDP port numbers are used just like TCP port numbers and there are well-known port numbers for servers that use UDP. Figure 5-10. UDP Packet Header Note that a UDP header is shorter than a TCP header, but it still has source and destination port numbers, and a checksum. The Internet Control Message Protocol (ICMP) is alternative protocol. It is used for messages intended for the TCP/IP software itself, such as error messages, rather than by any particular user program. ICMP can also be used for find information about the network. There are no port numbers since ICMP messages are processed by the network software itself. Packet Headers TCP TCP takes messages and data that are too long to fit into a single packet and divides the transmission up among a series of packets, transmits them, and reassembles them in the correct order when they are received. To do this, TCP needs to know how large a packet the network can handle. The TCPs at either end of a connection tell each other how large a packet they can process. The smaller of the two sizes is selected. 39

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237

8-port Gigabit Ethernet Switch User’s Guide
39
Connection 1
1234, 21
10.42.73.23
210.128.12.1
Connection 2
1235, 21
10.42.73.23
210.128.12.1
So the local computer, 10.42.73.23 has two connections to the FTP Server, 210.128.12.1. Commands sent from 10.42.73.23
are received by the FTP Server on the well-known TCP port number 21, but the transmitted files are received by
10.42.73.23 on either TCP port number 1234 or 1235, depending on which port issued the command.
FTP actually uses two different connections. One for sending commands and a second one opened when a request to send
data is issued. This is done to allow the user to continue sending commands (such as, abort the file transfer).
Connections with a remote terminal use a single connection. When a command is to be sent, a special character is sent
that indicates the next character is part of a command.
UDP and ICMP
TCP will divide large messages into several packets and manage the sending and receiving of all of these packets.
Many applications do not require messages that must be divided into many smaller packets.
The User Datagram Protocol (UDP) is designed for applications that do not need sequences of packets to be put together.
UDP also does not keep track of what is sent and cannot resend data. UDP does use port numbers in much the same way
as TCP. UDP allows several programs to make connections to a server at the same time. UDP port numbers are used just
like TCP port numbers and there are well-known port numbers for servers that use UDP.
Figure 5-10.
UDP Packet Header
Note that a UDP header is shorter than a TCP header, but it still has source and destination port numbers, and a
checksum.
The Internet Control Message Protocol (ICMP) is alternative protocol. It is used for messages intended for the TCP/IP
software itself, such as error messages, rather than by any particular user program. ICMP can also be used for find
information about the network. There are no port numbers since ICMP messages are processed by the network software
itself.
Packet Headers
TCP
TCP takes messages and data that are too long to fit into a single packet and divides the transmission up among a series
of packets, transmits them, and reassembles them in the correct order when they are received.
To do this, TCP needs to know how large a packet the network can handle. The TCPs at either end of a connection tell each
other how large a packet they can process. The smaller of the two sizes is selected.