Section 2: Networking Flashcards
(78 cards)
What is the metaphor used to explain networks and protocols?
If you need to move a box from one place to the other you would use a moving truck. You put boxes in the moving truck, move that box to another location, and unload the moving truck.
The road that we are driving on is the network and that is what we are using to transport this particular package
The moving truck is the Internet Protocol (IP) and we have designed these networks so that this type of truck can move most efficiently between one point and another
In the moving truck there is a box and inside the box is your data. If you were to open the box there would be certain types of information in there (specific to a certain application or particular function on your network).
Think of the information in the box belonging to a particular room in the house (bedroom, kitchen, dining room), so when the box is delivered that box needs to be moved to the correct room. This encapsulation process allows us to move all kinds of data across the network
Explain sending information from a client to a server
On one side you have the client (a workstation) and on the other side is a server (web server, mail server etc) and the client is going to send information to this server. If this is across an Ethernet network then everything inside of the Ethernet packet would be considered an Ethernet payload. There is also an Ethernet Header at the start of the frame and an Ethernet Trailer at the end of the frame
What is the most popular protocol we use on our networks?
The most popular protocol we use on our networks is the Internet Protocol (IP)
What is in an Ethernet Payload
Ethernet Payload will have an IP Header > Then there will be an IP Payload within that particular part of the frame.
The IP payload has further information inside it, which could be TCP data with a TCP header and a TCP payload.
The TCP payload can also be separated out into different types of data, such as HTTP data
Ethernet Frame (IP>TCP>HTTP data)
What is most commonly transferred in IP packets?
TCP and UDP protocols (two different ways to move data from one part of a network to another)
What does TCP stand for?
Tranmission Control Protocol
What does UDP stand for?
User Datagram Protocol
Which layer of the OSI model do TCP and UDP operate at?
The transport layer - Layer 4
Describe the capabilities of TCP protocols and their uses
They provide multiplexing, so you can have many different applications communicating to a separate server all simultaneously
Connection-based (stateful) and uses ports and maintains sessions
Used for web, email, FTP, SSH
Describe the capabilities of UDP protocols and their uses
They provide multiplexing, so you can have many different applications communicating to a separate server all simultaneously
Stateless and uses ports but no connection state
Used for DNS, VoIP, Streaming, Gaming
What is Multiplexing?
Multiplexing in networking refers to the ability to send and receive multiple streams of data over a single network connection or channel. It’s how a single device (like your computer) can communicate with multiple services at once—web, email, streaming, etc.—using a shared physical connection (like your Wi-Fi).
Together, IP + Port + Protocol enables multiplexing — multiple services sharing a single IP address.
Explain how TCP works
There is a formal process to set up the flow from one device to the other and a formal process to tear down that flow when the conversation is over.
It is referred to as “Reliable” delivery
TCP can reorder messages that may have been received out of order. It can also manage a retransmission process so that if any data is not received by the destination that information can be resent from the source.
It has a flow control mechanism, so if a device feels like it is receiving information too quickly, it can tell the other side to slow down the process so information can be received at a more reasonable rate
What does “Reliable” delivery mean in terms of TCP?
It means that TCP has a built-in system to ensure that data that has been sent has been verified as being received on the other side
Explain how UDP works
UDP is a connectionless flow with no formal open or close to the connection. UDP simply sends data from one place to another.
There is no acknowledgement sent from the destination device
UDP has no flow control and no way to determine whether a device should slow down or send information faster
What does “Unreliable” delivery mean in terms of UDP?
This does not mean that UDP does not work as well as other protocols. It means that we get no receipt or have any knowledge that the information we sent was received by the device on the other side
Why would you ever use UDP if it is “Unreliable”?
UDP plays an important role in being able to send information very quickly over the network.
UDP is most associated with real-time communication, where you can’t stop and retransmit information and then catch up with yourself. For example, with phone conversations.
With UDP we send the data and if it make it to the other side we were successful, and if the information was dropped along the way, we simply keep the conversation going
Give examples of UDP’s connectionless form of communication (connectionless protocols)
DHCP (Dynamic Host Configuration Protocol) - Used to automatically assign IP addresses to our devices
TFTP (Trivial File Transfer Protocol) - Uses UDP as its transport mechanism
Give examples of TCP connection-oriented protocols
HTTPS (Hypertext Transfer Protocol Secure) - Used to send information securely to our web browsers
SSH (Secure Shell) - Provides us with an encrypted form of terminal communication between our systems
What happens if packets are dropped or are missing
If our HTTPS data between a web server and a client loses a packet between point A and point B, TCP will recognise that a packet was missing and will ask to retransmit that information and the retransmitted data is sent over the network. This happens automatically with TCP
What is the additional piece of information added to all transmissions for UDP and TCP?
In the case of UDP and TCP there is an additional piece of information that’s added to all of the conversations and that information is a port number
What does a port number determine
It determines which application on the server is going to receive the transmitted data
What additional information is needed to complete the traffic flow between two devices?
Server’s IP address, protocol (TCP/UDP), server application port number (80, 443, 123 etc)
Client’s IP address, protocol (TCP/UDP), client port number
What are Non-ephemeral ports?
Non-ephemeral ports are permanent ports (non-temporary ports) that tend to be the same every time we access a device
What port numbers are most commonly associated with communicating with web servers?
Port 80 (HTTP)
Port 443 (HTTPS)
Every web server communicated with will use those same port numbers so we know exactly where that service is located on an IP address