TCP & UDP Ports Flashcards
A number used to uniquely identify a Network connection. It specifies the service or application. Ie: Port 80 is Web Server, Port 8444 is a client port. A port is an open doorway.
Port does not mean that it gives outsiders full access however the port can be exploited. There are security risks - if firewalls or routers are not in the network. FTP is open and not secure.
What is a TCP or UDP Port?
0 - 1023 most common already reserved (ie: Apple)
Well-known Ports
1024 to 49151 companies can register with IANA. A range of ports a company can register when creating an application or service that has a certain protocol needs to communicate via a TCP or UDP port
Registered Ports
(https://www.iana.org) look at different ports
IANA (Internet Assigned Numbers Authority)
49152 to 65535 (anyone can use these)
http://www.iana.org/assignments/port-numbers
Private Ports
Responsible for data getting in proper order.
Congestion control
Error-free
Flow control/sliding window (increase the flow or decrease the flow)
Favors safety/accuracy over speed
Used for reliable communication.
Connection-oriented 3-way handshake (syn, syn-ack, ack)
Connection Termination (Fin, Ack, Fin-Ack, Ack)
Sequence # and Acknowledgment # (UDP does not use these)
TCP data unit called segment
TCP (Transmission Control Protocol) Connection-oriented
No security in sending data It will get there when it gets there Favors speed over safety Used when loss can be tolerated Length & Checksum (checksum makes sure data gets there) Simplicity means that it's very fast Unreliable delivery doesn't mean bad Not ordered No congestion control Lightweight, faster than TCP Ie: UDP online gaming real- time, voip real-time traffic (can use tcp to setup connection) voice goes over UDP UDP data unit called datagram
UDP (User Datagram Protocol) Connection-less
CRC Data TCP/UDP Header: (Source Port: 8444; Destination Port: 80)
IP Header: (Source IP: 192.168.100.2; Destination IP: 8.8.8.8)
MAC Header: (Source MAC: AA-AA-AA-AA-AA-AA; Destination MAC: BB-BB-BB-BB-BB-BB)
Parts of a Frame
DATA - TCP/UDP Header - IP Header
Packet or a Datagram
DATA - TCP/UDP Header
Segment or Datagram