2.1 Compare and contrast TCP and UDP ports, protocols, and their purposes. Flashcards
___ is one of the most popular protocols in use today.
TCP/IP
TCP stands for?
Transmission Control Protocol
IP stands for?
Internet Protocol
What are three common network types designed for TCP/IP?
Ethernet network
cable network
DSL network
UDP stands for?
User Datagram Protocol
We’re usually on an Ethernet network that is sending data using (1)___, which is using (2)___, which has application data inside of that.
(1) IP
(2) TCP
An Ethernet frame has a ___ in the middle of the frame.
Ethernet payload
An Ethernet frame has a ___ at the beginning of the frame.
header
An Ethernet frame has a ___ at the end of the frame.
trailer
An Ethernet payload is made up of a (1)___ which is followed by an (2)___.
(1) IP header
(2) IP payload
An IP payload can be broken down into an (1)___, which has its own (2)___.
(1) TCP header
(2) TCP payload
What’s inside of that TCP payload is ___.
application data
For example, HTTP data that’s being sent to a web server.
What is the nesting structure of a TCP Ethernet frame?
We have ethernet, which has IP. And inside of IP is either TCP or UDP.
……………………….Ethernet Frame:……………………………..
[ header || Ethernet payload || trailer ]
………………………..Ethernet Payload:…………………………..
[ IP header || IP payload ]
………………………….IP Payload:…………………………………….
[ TCP header || TCP payload ]
Ethernet is a network type that can transmit data using (1)___ packaged into smaller units called (2)___.
(1) TCP/IP
(2) frames
An ___ of protocols is putting one protocol within another within another.
encapsulation
What layer of the OSI model do TCP and UDP operate?
Layer 4; transport layer
___ involves taking multiple signals and combining them into one signal for transmission over a single medium
multiplexing
___ allows us to perform many different functions simultaneously over the same network connection
multiplexing
We refer to TCP as a ___ protocol.
connection-oriented protocol
Protocols that are ___ have a formal process when you start the communication and a formal process when you end the communication.
connection-oriented
If any errors occur during a communication, there’s a process for retransmitting that data to make sure that everything gets through the network without any problems.
TCP (Transmission Control Protocol)
UDP is known as a type of ___ protocol.
connectionless protocol
A connectionless, non-guaranteed method of communication with no sequencing or flow control.
UDP
There’s no formal communication setup and no acknowledgement of data received in ___ protocols.
connectionless
UDP and TCP both use ___ to know where to send data.
IP
We can send information into a server through IP and we know exactly which service on that server needs to receive that data thanks to ___.
port numbers
At the link/physical layer, Ethernet allows nodes to send one another frames of data using MAC addresses. These frames would typically be transporting IP packets. At the network layer, __ provides addressing and routing functionality for a network of networks
IP
One of the critical functions of the transport layer is to identify each type of network application. It does this by assigning each application a ___.
port number
What is the range of port numbers?
0 - 65535
TCP uses NACK, it stands for what? What does it do?
Negative Acknowledgement. It forces retransmission of data if it arrives corrupted.
A ___ is one endpoint of a two-way communication link between two programs running on the network
socket
client/server IP address, a protocol, and a client/server port number all combine to make up what?
IPv4 socket
permanent ports are known as
non-ephemeral port numbers
Most ports in the range 0-1023 are ___.
non-ephemeral
Port numbers that are used only for a single session typically chosen at random by the client are known as
ephemeral port numbers
___ are just a way to signify what room that particular data goes to, and there are no hard and fast rules over what ___ an application happens to use.
port numbers
The one thing that is important about the port number is that the client that you’re using needs to be able to know the port number that’s open on the server.
T or F?
True
TCP port numbers are not the same as UDP port numbers
True; There could be an application running on a server using TCP 80. There could be another application on that same server that uses UDP 80, and neither of those applications will be communicating with each other.
Service port numbers need to be ___.
well known
FTP (file transfer protocol) uses what port?
port 21 (control) port 20 (active mode data)
___ servers use usernames/passwords to authenticate. Some use “anonymous login” where you only need a password.
FTP
TCP does have security built in, so you can configure a username and a password that gains access to another system.
True or False?
True