Networks Flashcards
Exchanging data
What is protocol
A set of rules for communication between devices
They allow different devices to make sense of the data they receive and transmit.
What is meant by layering
The principle of dividing a complex problem into separate, independent sub-problems
How can packets travel across the internet
Each packet has layers of further data added to it
What are some of the features of layering
- Allows for the creation and maintenance of parts of a system without having to take into account the whole system
- Networks use layering with protocols
- Protocols on each layer communicate only with the layers above and below.
What does the transmission control protocol/ Internet protocol (TCP/IP) stack consist of
- Application layer
- Transport layer
- Internet layer
- Link layer
What is the purpose of the application layer (TCP/IP stack)
It specifies what protocol needs to be used to relate the application that’s being sent.
- For example, if the application is a browser then it would select a protocol
Examples - HTTP, HTTPS, IMAP
What is the purpose of the transport layer (TCP/IP stack)
Establish an end-to-end connection
between the source and recipient computer.
Splits data up into packets and labels them with:
- packet number, the total number of packets the original data was split
up into and the port number being used for communication.
- If any packets get lost, the transport layer requests retransmission of these
lost packets.
Examples - TCP
What is the purpose of the network layer (TCP/IP stack)
Concerned with providing links across different network types.
- Adds the source and destination IP addresses (socket address)
(router operates at this level)
What is the purpose of the Link layer (TCP/IP stack)
Passes data to the physical network.
- connection between the network devices (adds the MAC address identifying the NIC of the source and destination computers )
Example - Wi-Fi, ethernet
How is a packet sent across a network
Encapsulating the data
- The packet is sent down the stack, starting with the application protocol, and each protocol adds its own additional necessary data.
Decapsulating the data
- Once the data has arrived at its destination it is passed back up the stack and each protocol removes relevant data
What is a URL
Uniform resource locator
- The main part of the website address e.g. hodder.co.uk
We use them because they are easier to remember than an IP address
What is the purpose of a domain name server (DNS)
Converts URLs to IP addresses
- The system uses a series of servers that act like address books, matching URLs to their IP addresses.
How does the DNS work
(long answer)
- First, your computer checks the local cache to see if the IP address has previously been found
- If it doesn’t have a copy of the IP address, it checks one of the root servers. (root servers are the highest level of servers in the DNS that hold the locations of all the top-level domain servers)
- If the root server doesn’t have a copy it points to a server matching the top-level domain (TLD) such as .com, .uk or .org
- These may point to the second-level domains (e.g. .co.uk)
- finally comes the authoritative name server that holds the IP addresses of the server being sought. This is sent back to the browser so it can visit the site
Once the address is found, as it gets passed back to each server the address is cached so it can be found more quickly next time
What is a LAN
Local area network
- Networks over a small geographical area
- Their infrastructure is owned by the organisation that uses it, and the organisation is also responsible for its upkeep
What is a WAN
Wide area network
- Network over a large geographical area
- Consists of interconnected LANs
- The internet can be considered a WAN
What is circuit switching
A pathway for the data is set up in advance of communication and then the data is sent across it. The pathways are closed after transmission. (provides an exclusive dedicated channel)
Usually used for live broadcasts eg. a phone call
What are the three stages of circuit switching
- connection established
- data transferred
- connection released