Lesson 2 - Advanced TCPIP
Lesson 2 - Advanced TCPIP
Lesson 2 - Advanced TCPIP
Lesson 2
Advanced TCP/IP
Objectives
Down
A comparison of the OSI vs TCP/IP (DOD) models
Headers and the encapsulation process as
data moves down the stack.
RFCs (Requests for Comments)
– Industry standard
– Freely available
– www.rfc-editor.org
i.e.,
• 00001010.yyyyyyyy.yyyyyyyy.yyyyyyyy = IP address
• 11111111.00000000.00000000.00000000 = Subnet mask
• To divide this network into 12 networks, you need to
‘borrow’ 4 bits from the host portion of the mask to
the network portion, i.e.,
• 11111111.11110000.00000000.00000000 = Subnet mask
• Which is = 255.240.0.0
Subnetting Example cont’d
Now that the mask is 255.240.0.0, you have 16 networks:
• 00001010.0000 0000.00000000.00000000 = 10. 0.0.0 (first possible network)
• 00001010.0001 0000.00000000.00000000 = 10. 16.0.0 (second network)
• 00001010.0010 0000.00000000.00000000 = 10. 32.0.0 (third network)
• 00001010.0011 0000.00000000.00000000 = 10. 48.0.0 (fourth network)
• 00001010.0100 0000.00000000.00000000 = 10. 64.0.0 (fifth network)
• 00001010.0101 0000.00000000.00000000 = 10. 80.0.0 (sixth network)
• 00001010.0110 0000.00000000.00000000 = 10. 96.0.0 (seventh network)
• 00001010.0111 0000.00000000.00000000 = 10.112.0.0 (eighth network)
• 00001010.1000 0000.00000000.00000000 = 10.128.0.0 (ninth network)
• 00001010.1001 0000.00000000.00000000 = 10.144.0.0 (tenth network)
• 00001010.1010 0000.00000000.00000000 = 10.160.0.0 (eleventh network)
• 00001010.1011 0000.00000000.00000000 = 10.176.0.0 (twelfth network)
• 00001010.1100 0000.00000000.00000000 = 10.192.0.0 (thirteenth network)
• 00001010.1101 0000.00000000.00000000 = 10.208.0.0 (fourteenth network)
• 00001010.1110 0000.00000000.00000000 = 10.224.0.0 (fifteenth network)
• 00001010.1111 0000.00000000.00000000 = 10.240.0.0 (sixteenth network)
TASK 2A-1: Address Conversions
Routing
• Communications from one network to another
• Packets are sent to a default ‘Gateway’ (router)
• The router ‘routes’ the packet to the appropriate
interface, by looking at the destination IP address
and its routing table
• The destination network may or may not be
attached to that interface. If the destination is not
attached to that interface, the packet is sent to the
next router.
VLSM and CIDR
Variable Length Subnet Masking (VLSM)
Now, say you want to break up the third network further into two
smaller networks, simply ‘borrow’ one more bit just for
network 10.52.0.0 and create 10.52.0.0/16 and 10.53.0.0/16.
You have now subnetted your 10.48.0.0/12 network ‘variably’.
X-casting
TCP UDP
Connection-oriented Connectionless
Slower Faster
communications communications
Considered reliable Considered unreliable
• GUI/Menu bar
• Ctrl+K > Promiscuous mode
• Capture options
• Save options
TASK 2B-3: Using Wireshark
TCP Connections