Ports & Protocols Flashcards
(122 cards)
What is TCP?
Transport Control Protocol.
Which protocol guarantees info delivery?
Transfer Control Protocol (TCP). UDP is “best effort”.
What is UDP?
User Datagram Protocol (UDP)
What is a benefit of UDP?
Faster than TCP (Transfer Control Protocol)
What is Transfer Control Protocol really good for?
File transfer, email, and web page requests.
What is UDP really good for?
Audio and streaming. Since there is no guarantee the connection was made you can loose data, but you gain speed. That’s acceptable with audio and stream (normally)
What is meant by TCP being connection-orientated?
Transfer Control Protocol ensures that a connection is established between the sender and the receiver. It is reliable in that you know the message will be received.
Why is UDP considered Connection-less orientated Protocol?
User Datagram Protocol will only promise to send the request to the target. It doesn’t ensure the target is ready to receive, or that it has been received. Fire and pray.
How does every TCP (transfer control protocol) session start?
3-way handshake
What is a 3-way handshake composed of, and what protocol uses it?
TCP uses it. It is 3 packets that go back and forth from the sender to the destination to establish connection. The packets have no payload.
Describe the 3-way handshake process.
TCP sets up the connection by sending a SYN packet to the destination machine, the destination then sends back a SYN/ACK packet, and TCP then sends its ACK packet back.
What else is being set up in the 3-way handshake besides connection?
Flow control. They are telling each other how fast they can send and receive data, and agreeing on an optimal choice.
In TCP, what must occur before sending any data?
A connection via the 3-way handshake (also identify the flow control)
Every time a data packet is sent in TCP what should occur?
The destination should send an acknowledgement. If not it will need to send again.
Explain an “error” message in terms of TCP
During the 3-way handshake the destination did not acknowledge. The initiator send numerous attempts until its default limit was reached. Then provided the user with an error message.
TCP sends packets, what does UDP send?
User Datagram Protocol sends datagrams.
TCP and UDP both use ports. What is another name for ports?
service identifiers
What are ports, or service identifiers?
Ways of breaking up channels so you can multiple different applications over them
Ports, or service identifiers are specifically set up for what?
Each port, or group of ports is for a specific exchange. The computer is listening for messages that apply to the specific port, through that port. For example, Port 80 is reserved for HTTP traffic.
Who decides what ports are reserved for specific traffic?
(IANA) Internet Assigned Numbers Authority
How many ports are there in a computer?
0 - 65535 (so 65536)
What ports are reserved for “well known” ports (ie. DNS or HTTPS)
0 - 1023
What set of ports are registered, but at the moment unassigned by IANA
1024 - 49151
What set of ports are unassigned and open for anyone to use? Also known as Dynamic.
49152 - 65535