‫A TCP segment consists of a segment header and a data section.
‫The TCP header contains 10 mandatory fields and an optional extension field.
‫The optional field is the options field, which is the last field seen on the slide.
‫The TCP header includes a source port and destination port, each 16 bits in length.
‫The source port is a port on the originating machine that emitted the packet.
‫The destination port indicates the port on the target machine.
‫The package should be delivered to.
‫The sequence number and an acknowledgement number allows TCP to track a series of packets to make sure
‫they arrive reliably and pretty much in order.
‫No, absolutely in order.
‫If a packet is lost, TCP will retransmit it if packets arrive out of order, TCP will adjust them to
‫make sure that they are delivered to the destination services in the proper order.
‫Data asset specifies the size of the TCP header in 32 bit words.
‫The minimum size header is five words and the maximum is 15 word.
‫There is also TCP control built space, also known as flags, which are incredibly important for tracking
‫the state of a given TCP connection.
‫As you know, we've talked about them a few minutes ago.
‫Of course, if you didn't take a break, it was a few minutes ago.
‫But whatever you do, just don't spill in the keyboard.
‫Now, TCP senders use a number called window size, which is in byte by default.
‫To regulate how much data they send to a receiver before requiring an acknowledgement in mature.
‫So if the window size becomes too small, network data transfer will be unnecessarily slow, while if
‫the window size becomes too large, the network link can become saturated or the receiver may not be
‫able to process incoming data quickly enough.
‫Also resulting in slow performance.
‫Windowing algorithms built into the protocol dynamically calculate size values and use this field of
‫the TCP headers to coordinate changes between senders and receivers.