TCP\IP Basics Flashcards
Where does Internet Protocol work?
TCIP Model
- at the internet layer
- takes data chunks from the transport layer
- adds addressing
- creates final IP Packet
Protocols of the internet layer?
- IPv4
- IPv6
- ICMP
parts of an IP Packet?
- version - 4 or 6
- header length - total size of ip portion of packet
- DSCP - differentiated services code point - contains data used by bandwidth-sensative applications like voice over ip
- TTL - prevents loops by using a counter
- protocol - TCP or UDP
TCP connection rules
- uses 3 way handshake
- SYN, SYN-ACK, ACK
- gives all segments a sequence number to verify all segments received
- if segment missing, the receiving system must request
parts of a tcp header
- source port
- destination port
- sequence number
- ack
- flags - state of connection
- checksum - checks header for errors
protocol for DNS and DHCP
UDP
how does the packet find the reciving computers MAC address?
sends out an ARP (address resolution protocol) request to MAC address FF-FF-FF-FF-FF-FF
view arp cache in windows CLI
arp -a
Three things the IP numbering system must do:
1) create network IDs
2) Interconnect LANs using routers / give routers a way to use the network ID to send packets
3) use subnet mask to recognize if the packet is for the LAN or WAN
WAN
Wide Area Network
- a group of two or more interconnected LANs
Network ID
unique identifier for a LAN
Host ID
part of the IP that isn’t the Network ID
cannot end in 0
Routing table
instructions built into a router that instructs it what to do with incoming packets and where to send them
subnet mask
- a bunch of 1’s followed by some number of zero’s
- always totals 32 bits
- 1’s always line up with network id in ip address
- 0’s always line up with host id in ip address
what happens when a computer wants to send to an IP address
- it will send to default gateway
- still does arp request to get MAC address for gateway
what is a whack
a slash followed by the number of ones in the subnet mask
- /24 = 24 ones - 255.255.255.0
- /16 = 16 ones - 255.255.0.0
- /8 = 8 ones - 255.0.0.0
a computer needs what to work in a network environment
- ip address that’s part of it’s network ID
- subnet mask
- default gateway
what organization tracks and disperses ip addresses globally
IANA
- Internet Assigned Numbers Authority
- hands out IPs in contiguous chunks called network blocks