Networking Fundamentals Flashcards
How do you connect computers to a switch?
Connect via ethernet cable and plug in via the ports on the back. The ethernet cables push electrical signals between computers connected to the switch
What came before the switch?
The hub
What is a hub?
It looks the same as a switch appearance wise. However when the hub receives a message from an IP address (computer) it send it to every computer on the system to check if it belongs to them.
What do packet tracers do? (CISCO packet tracer)
Let’s you analyse and visualise the electrical signals as they go across the wire
What is a ping message?
Use it in networking to make sure other computers are awake and working. It uses other computers IP addresses.
How does a switch work compared to a hub?
It has the same goal as the hub. But The switch only passes the message (electrical signals) on to the correct IP address, it doesn’t broadcast it out.
How does the switch know which devices are sat on its network?
Via the MAC address, also known as a layer 2 address. Every single device has a MAC address (can’t be changed). When you connect your device to the switch, it learns the MAC address.
Why doesn’t the switch use the IP address?
It can’t event see this number. It’s a layer 2 device so can’t even read IP addresses.
Even if you send something over layer 3 (i.e ping someone else’s IP address) the switch will only ever look at the MAC address of that user. The switch stores all of the source MAC addresses in the network.
How does a wireless access point work?
It’s an extension of a switch and connects into the switch via a ethernet cable. Device then connect to the access point via waves.
Access point acts in a very similar way to a hub - it broadcasts out the message to all devices. A ethernet cable is preferred .
Whilst switches let you talk within your network, what does a router do?
Lets you communicate across an entirely different network
what is the main job of a router?
To connect two different networks.
Why do you need a router instead of connecting the switches of different networks?
Because the networks have a completely different set of IP addresses
What is a network generally referring to?
Groups of IP addresses (therefore computers) i.e 10.1.5 - 10.1.9 and 12.277 - 12.298
How does the sender know the MAC address of the receiver? The switch can’t read IP addresses, so how can it forward it on?
Through ARP. Allows you to see which MAC address belongs to which IP address (layer 2).
When you send a message initially, it broadcasts out to all of the ports and asks which device owns the IP address. It then provides the MAC address to the sender. The sender then know’s the MAC address to send the message.
What are the ports on a swith?
They are the physical element - the ethernet cables are plugged into their own individual port.
Example - you own a website that allows you to buy clothes. How did this sit within a network?
The website sits on a webserver and like any other device it is is connected to a switch (which in turn is connected to a router)
What happens when you try to connect or send a message to a computer (or server) outside of the network?
The sender’s system is configured to know which IP addresses sit on their internal network. If the sender is trying to reach an IP address outside of the network, it needs to go through the gateway (also known as the router).
However in the same way that the sender finds internal MAC addresses, the sender must find the MAC address of the router. The sender sends out an ARP request, which is picked up by the router. The MAC address is then send back to the sender and the message is sent to the router.
What happens when the router receives a message from the switch/sender on a network?
It still doesn’t have the receiver’s MAC address, only their IP address. The Router know’s where the set of IP addresses live, so it will broadcast an ARP message again. The ARP message will go to the switch on the other side, who will broadcast it out. The receiver will send their MAC address back through the switch and router. The sender, switch and router now have all of the details they need in order to send the message.
What happens when a user want’s to visit a website to buy something (not just pinging/sending messages)
They must have a DNS server configured, which turns the URLs into know IP addresses.
But as the switch can only send messages/requests through MAC addresses, you must get the MAC address of your DNS server by broadcasting out to the known IP address (based on config). Only once you have the MAC address can you communicate with the DNS server and learn the IP address of the URL.
Do you have to get the MAC address from your router and other devices (web server, other laptops) each time?
No you don’t need to broadcast out. It remembers and puts it in it’s cache!
How does a router know what’s connected to it?
It’s stored the IP ranges and ports that they are connect to in it’s memory/table. It will look at this each time.
What is a network?
A group of computers that are linked to share resources, files or allow electronic communications. They can be connected together by cables or Wifi. They are computers that connect themselves in order to communicate.
What is one of the largest networks we use?
The internet - a network of nertworks.
What does a server do in a network?
Some networks have a server, to act as a central hub for emails, internet access and file storage. It’s a powerful computer. When a computer is connected to a server it’s called a client.