TCP/IP Applications Flashcards
session
any singular communication between 1 computer & another
TCP
transmission control protocol
enables-connection oriented communication
TCP 3-way handshake
client sends a single SYN (synchronize) packet to server
server gets packet > returns single SYN, ACK (synchronize, acknowledge) packet
client then sends server a single ACK packet > immediately requests that server begin sending requested data
TCP sequence following 3-way handshake
server finishes sending requested data > sends FIN (finished) packet
client responds with ACK > sends its own FIN
server responds with ACK
session closed
UDP
user datagram protocol
short distance communication - integrity not important
DHCP (ports)
domain host control protocol
clients - UDP 67
servers - UDP 68
NTP / SNTP (ports)
network time protocol / simple network time protocol
synchronize clocks of devices on the network
enter IP address of NTP/SNTP server
UDP 123
TFTP
Trivial File Transfer Protocol
enables transfer of files using UDP from 1 machine to another
UDP port 69
No data protection > computers on same LAN
ICMP
Internet Control Message Protocol
works at layer 3 to deliver connectionless packets
disconnect messages
ping
echo request / reply
single ICMP packet sent by ping command
response to echo request (no firewall)
destination host unreachable
computer has no route to the address listed
request timed out
no echo reply is generated before the 1-second default time limit
ICMP queries may be blocked by firewall
unreachable default gateway
ICMP issues on exam
ping default gateway > destination host unreachable
Ping of Death
malformed ping packets
patched long ago > term is on exam
IGMP
Internet Group Management Protocol
enables routers to communicate with hosts to determine a “group” membership
multicast range
Small subnet of Class D (224/4)
224.0.0.0/4
IGMP group
multicast does not assign IP addresses to individual hosts
multicast group is assigned to a 224.0.0.0/4 address
devices in this group tell upstream router or switch that they wish to receive multicast messages
port numbers
16-bit values between 0 & 65535
well-known port numbers
numbers between 0 & 1023
reserved for specific TCP/IP applications
ephemeral port numbers
1024 - 5000
dynamic (private) port numbers
49152 - 65535
IANA recommened ephemeral port numbers
49152-65535
registered ports
1024 - 49151
socket (endpoint)
session information (IP address & port number) stored in the RAM for TCP/IP session (single computer)
socket pairs (endpoints)
connection data stored on 2 computers about the same connection
connection (session)
whole connection
command to list endpoints currently stored on a device
“netstat -n”
open (listening) port
socket that is prepared to respond to any IP packets destined for that socket’s port number
command to list listening ports
“netstat -an”
local address 0.0.0.0
open port works on all NICs
displayed this way even if computer only has 1 NIC
foreign address 0.0.0.0
no other computers are currently connected