4.9 Communication and networking Flashcards
What is the Internet?
The worldwide collection of networks that use the Internet Protocol Suite (TCP/IP)
What is a router?
A device that receives packets on a network and forwards them to correct destinations based on an IP address
What is a gateway?
- A device that receives packets on a network and forwards them to correct destinations based on an IP address
- A gateway is able to deal with packets travelling between networks using different protocols, by stripping off all of the header data and adding a new header in the format needed for the destination network
What is a domain name server?
A server that contains databases of IP addresses and their corresponding FQDNs.
What is an IP address?
An IP address uniquely identifies a device on a network, and defines where it is located geographically.
What is the link between a Domain Name and an IP address?
A domain name is a string that corresponds to an IP address.
What is a packet and what are the main components of a packet?
- A packet is what data being transported across a network is split into.
- A packet is made up of the header and the payload.
What is an NIC?
- A hardware component that connects to the motherboard and is hardwired with a unique MAC address
- It allows a computer to connect to a network
What are the steps in packet switching?
- Data is split into packets.
- Header is added to packet
- Packets are sent along the network, not necessarily along the same route
- Once packets arrived, they are re-ordered using their sequence number
- Acknowledgements sent from recipient to sender for each packet
- Transmission of a packet happens again if no acknowledgement is received
What does TCP/IP stand for?
Transmission Control Protocol / Internet Protocol
What are the four layers of the TCP/IP protocol stack?
- Application Layer
- Transport Layer
- Network Layer
- Link layer
What does the application layer do?
- It uses an appropriate protocol relating to whatever application is being used to transmit data
- It also interacts with the user via appropriate application software or the users system
What is the transport layer responsible for?
- establishing the “end-to-end” connection
- splitting the data into packets once the connection is made
- sends and receives acknowledgments
What does transport layer add to each packet?
- The sequence number
- The total number of packets
- The port number the packet should use
What protocol does network layer use?
IP (Internet Protocol)
What protocol does transport layer use?
TCP (Transmission Control Protocol)
What does network layer add to each packet?
- Source IP address
- Destination IP address
What is a MAC address?
A unique 12-digit hexadecimal address hardcoded on each NIC for use as an address in network communications to uniquely identify any device.
What does the link layer do?
- Adds the MAC addresses of the source and destination device
- The MAC addresses are changed at each hop on the route
What is a socket?
A socket is the IP address (provided by the IP protocol) combined with the port (provided by the TCP protocol)
What is a port?
The port determines what application on the device needs the packet
How does SSH work?
SSH uses for port 22. It uses public key encryption to authenticate the user and prevent unauthorised access.
- 👋 The client initiates the TCP connection by contacting the server
- 🔑 The server sends a public key to the client
- 🤝 The server and client agree communication rules and open a secure channel
- 🏝 The user can now login to the remote server host operating system and can issue application layer commands such as GET for HTTP, and SMTP and POP3 commands for sending and retrieving emails
How does SMTP work?
SMTP sends the email from the client device to the linked mail server or forwards the email to the recipient’s mail server.
How does POP3 work?
- Retrieves email from a mail server
- Removes it from the server
- Transfers it to your device
How does HTTPS work?
HTTPS uses encryption to secure the data being transferred, and authenticates the web server through certificates.
How does HTTP work?
The web client sends a request message to a web server and the web server sends back a response message containing the data needed to display the webpage (or other web resource).
How does FTP work?
- FTP commands can be issued from a command line interface, but more commonly a user interacts with an FTP client, which sits on top of the actual FTP protocol.
- Once logged in, the user can access directories on the FTP server and can download and upload files.
- FTP sites which are publicly available are known as anonymous FTP.
What does SSH stand for and what is its purpose?
- Secure Shell
- Used to provide an encrypted connection for remote access to another computer
What does SMTP stand for and what is its purpose?
- Simple Mail Transfer Protocol
- Used to send emails from client device to the linked mail server or to forward the email to the recipient’s mail server
What does POP3 stand for and what is its purpose?
- Post Office Protocol (v3)
- Used to retrieve emails from an email server.
What does HTTPS stand for and what is its purpose?
- Hypertext Transfer Protocol Secure
- HTTPS is used for accessing a webpage from a web server securely. HTTPS encrypts data between the client and server.
What does HTTP stand for and what is its purpose?
- Hypertext Transfer Protocol
- HTTP is used for accessing a webpage from a web server
What does FTP stand for and what is its purpose?
- File Transfer Protocol
- Used to move files between two devices. (commonly used to transfer data and programs as opposed viewable content)
What is a URL?
- A Uniform Resource Locator (URL) is the address of a webpage or other internet resource
- It indicates the location of a resource as well as the protocol used to access it.
‘www.w3schools.com’ is an example of a…
Fully qualified domain name
‘www’ is an example of a…
Host name or subdomain
‘w3schools.com’ is an example of a…
Domain name
‘/cs/cs_operators.asp’ is an example of a…
Path
What is the purpose of a domain name?
- A domain name identifies an organisation or individual on the internet.
- They use alphanumeric characters which make them easier for humans to remember than IP addresses
What is the purpose of a domain name server?
To translate a fully qualified domain name into its corresponding IP address
What is the domain name system?
- The domain name system is a distributed database of mappings from FQDNs to their corresponding IP addresses
- DNS servers are organised into a hierarchy
What happens is a domain name server cannot resolve a lookup?
The query will be passed to another DNS server
Who manages top level domains?
- An (internet) registry
- Each TLD may have restrictions as to who can use it
What is the main responsibility of an internet registry?
To maintain a definitive register of who owns a specific domain.
Give two examples of top level domains
.uk .org
What is meant by baud rate?
The maximum number of signal changes in a medium per second
What is meant by bit rate?
The number of bits transmitted over a medium per second
Bit rate equation
bit rate of channel = (baud rate) x (number of bits per signal change)
What is Serial Data Transmission?
Bits are sent one after the other over a single wire from source to destination
What is Parallel Data transmission?
- Multiple bits are sent simultaneously over multiple wires from source to destination
- Each bit is sent down a different wire
2 problems with Parallel Data transmission
- Unreliable because of skew
- Parallel wires also suffer from crosstalk
What is skew?
As each wire has slightly different properties, there is a possibility bits could travel different speeds over each of the wires and arrive at different times, meaning the signals might overlap
What is cross-talk?
Interference between different lines, which causes data corruption
3 advantages of serial over parallel transmission
- Serial transmission doesn’t suffer from skew or cross-talk
- Serial is reliable over much longer distances
- Serial transmissions tends to be cheaper, as there is much less complexity and the physical size of cables is smaller
What is bandwidth? What unit is it measured in?
- A measure of the maximum capacity of a communication channel
- It is directly proportional to bit rate
- Measured in bits per second
What is latency?
A time delay before some component in a computer system responds to an instruction
What is synchronous transmission?
- Data is transferred at regular intervals, synchronised by a clock signal
- Receiver and transmitter clocks are synchronised
What is asynchronous transmission?
- Receiver and transmitter clocks only need to be synchronised for the duration of data transmission
- Blocks of data are sent as soon as they are ready