Uploaded April 2015 | Updated November 2026, 3 hours ago
TCP Header: Networking & TCP/IP Tutorial. TCP/IP Explained
Today we examine the TCP header in great detail
let’s look at the location of TCP in the TCP/IP stack
resides in the transport layer which is layer 4
note the transport layer contains UDP and TCP
you going to either use TCP or UDP but not both. TCP is much more complex because it’s connection oriented
Let’s examine the fields in detail
source port
destination port
sequence number
acknowledgment number
HLEN
Reserved
URG
ACK
PSH
RST
SYN
FIN
window size
checksum
urgent pointer
options+ padding
TCP Header: Networking & TCP/IP Tutorial. TCP/IP Explained
Today we examine the TCP header in great detail
let’s look at the location of TCP in the TCP/IP stack
resides in the transport layer which is layer 4
note the transport layer contains UDP and TCP
you going to either use TCP or UDP but not both. TCP is much more complex because it’s connection oriented
Let’s examine the fields in detail
source port
destination port
sequence number
acknowledgment number
HLEN
Reserved
URG
ACK
PSH
RST
SYN
FIN
window size
checksum
urgent pointer
options+ padding









![Learn Address Resolution Protocol (ARP) in just 7 Minutes - ARP Tutorial. TCP/IP Explained
+++See my latest video: Internet Security or Die+++ https://youtu.be/CzB5n6_pBfk
TRANSCRIPT Address Resolution Protocol - ARP Tutorial. TCP/IP Explained
TRANSCRIPT:
Today I teach you ARP, which Ive had several requests from my viewers to do. Thats Address Resolution Protocol.
The first thing you want to know about any protocol when youre learning it, is where do you find the protocol on the TCP/IP Stack? We see here that ARP is located on the network layer. Not on the data link layer as some folks mistakenly believe
Here we see a LAN w 3 computers on it. Notice that each computer has 2 addresses, and IP address and a Mac address. The IP address is a logical address that the admin assigns to each host either manually or more likely with DHCP. The IP address is 32 bits long and is on the network layer of the TCP/IP Stack. The Mac address Is a physical address, that is actually burned into the network interface card or NIC. The Mac address is 48 bits long and is on the data link layer of the TCP/IP Stack.
Suppose we want to send a message from host A to host B. We start at the point where the Network layer of the OSI has recd a message to send from the layers above. This is encapsulated into a packet by appending a header to it, that has the dest IP address in it. At this point it is passed down to the data link layer where a new header needs to be appended with the dest MAC address.
The question is: How does Host A know the MAC address of host B? The Answer is: Host A broadcasts an ARP Request
To help us understand the ARP request, lets look at a ARP Header
Click on the following fields & ad lib each: Operation, Sender HW Address, Sender Protocol Address, Target HW Address, Target Protocol Address
Back to where Host A broadcasts an ARP Request. The reason it broadcasts is that it doesnt yet know the MAC address to send it to. Essentially the request is saying: If your IP address is 10.1.1.2, then tell me your MAC address. Lets see the parameters in the the ARP Request [show parameters on Hard Copy] as they magically Appear.
Now Host A recvs the unicast ARP reply & it becomes aware of the Host Bs MAC address & it caches it. Also when Host B recd the ARP request, it became aware of the Host As MAC address, and it cached that. Note therefore that Host B does NOT need to send an ARP request to find Host As MAC. So now both Computer A & B are each aware of the others MAC address, they can communicate back an forth over TCP/IP.
Now lets look a a different case. Suppose that Host A wants to go to the website Packethacks.com. How does ARP work then? Host A should already have the default gw of 10.1.1.4, which is the router that leads out to the internet. So it does an ARP request to find the MAC address of the rtr. When it recvs an ARP Reply back from the rtr, it caches the MAC address. And the Rtr caches the MAC address of Host A. Now when Computer A wants to talk to website Packethacks.com it simply sends all packets to the router, and the router is responsible for sending the packets to the next hop on the way to Packethacks.com
Just to drive home the point, what are we likely to see in the rtrs ARP cache? Host As IP & Corresponding MAC Address, Host Bs IP & Corresponding MAC Address, Host Cs IP & Corresponding MAC Address - because if Host B or C had recently accessed any website on the internet, then these wouls be caches. And also another entry with the IP & MAC of the next hop rtr to get to the Packethacks.com. Learn Address Resolution Protocol (ARP) in just 7 Minutes - ARP Tutorial. TCP/IP Explained](https://i.ytimg.com/vi/ULpPIVln6nI/mqdefault.jpg)
