133-networks Flashcards
Stand alone machine
single computer
not connected to anything
network
2 or more computers
connected with
cables/wireless signal
for data transmission + resource sharing
Network benefits
- allows devices to communicate/collaborate with each other, share peripherals/resources, and remote maintenance
- manage users
-access an intranet - access files from any networked computer
- provide access to other networks e.g internet
Networks disadvantages
- security risks -> vulnerability to malware (spreads easily between connected computers)
- slower data transfer if high network traffic
- server failure -> network downtime, connected computers stop working
- initial expense: hardware and cabling
Server
computer designed to serve info and services to clients on network
Types of servers examples
Web server: serves web pages, processes scripting languages
Mail server: stores accounts, manages sending and receiving emails.
File server: centralised store, controls user access
Web servers
- program
- host websites and deal with client requests.
- located via an IP address
- when a website is visited, a request is sent to the web server.
Web client
program
runs on a user’s device
sends requests for web pages
Once web server processes request, client displays result of it
LAN
-group of computers connected
- over a small geographical area like a single site
- internal infrastructure/hardware
e.g cables/radio waves to connect - home, small business, school networks
WAN
- group of connected computers over large geographical area
- external infrastructure/hardware (cables, telephone lines, satellites, or radio waves to connect). often owned by 3rd parties
- internet, international banking systems, and ATM machines
Internet
The internet is a global network of networks.
It allows computers on opposite sides of the globe to communicate with each other.
It is a giant mesh WAN (wide area network) made up of a series of smaller networks.
Continents are connected to each other using large international backbone cables, many of which pass underwater.
It is made up of interconnected networks, routers, cables, satellites, and other hardware spanning the world.
The World Wide Web is just a service on the internet.
Two types of network topology
All network topologies have both a physical aspect and a logical aspect
Physical topology refers to the physical layout of devices and cables in a network.
Logical topology refers to the way data is transmitted between devices on the network
Physical bus topology
All the terminals (devices) are connected to a backbone cable, the ends of which are plugged into a terminator.
Physical bus topology pros
● Relatively inexpensive to set up
● Doesn’t require any additional
hardware
Physical bus topology cons
● If backbone cable fails, the entire network gets disconnected
● As traffic increases, performance decreases
● All computers can see the data transmission
Physical star topology
A star topology uses a central switch or hub to connect devices in a network, with each device having its own cable connecting to the central node.
Physical star topology pros
Provides consistent performance even with heavy network traffic
Only one terminal is affected if a cable fails
Fast data transmission for better performance than bus topology
Easy to add new devices and manage from a central point
No data collisions, resulting in fewer errors
If a device fails, the rest of the network is unaffected
Physical star topology cons
Network fails if central switch fails
Can be expensive due to switch and cabling costs
Physical mesh topology
- every node is connected to every other node, and each node acts as a relay to pass on messages to their final destination.
Physical mesh topology pros
- No central connection point or switch, improving speed and reliability
- Nodes are automatically incorporated and can handle high traffic volumes
- No single point of failure, if a node in the route fails, the packet is sent a different way
- Adding more nodes does not hinder the process as all nodes help to transmit data
Physical mesh topology cons
- Expensive to set up, requires a large quantity of cables, and devices with wireless capability must be purchased if using a wireless network
- Difficult to manage and maintain
protocol
- a set of rules for data transmission and communication between devices
on a network (for network protocol) or within a system - ensure technology-based standards are established and adhered to
- Devices with different protocols cannot communicate, while devices with the same protocol can exchange information
- allows user to communicate, by ensuring all devices follow the same rules/standards/ so they interpret data signals in the same way
standard
- Standards are agreed-upon guidelines for hardware, software, or systems.
- They ensure consistent performance and collaboration across different components and systems.
- Various organizations create standards, including government bodies and industry associations.
- Standards enable communication and data exchange across different platforms and systems.
- They allow manufacturers to create compatible products and services.
- Standards ensure communication between devices and applications using protocols.
Concept of layers
- A divsion of network functionality
- Divides the complex task of networking into smaller, simpler tasks that work in tandem with each other.
- Each layer, with defined hardware and/or software, has a specific responsibility and provides a service to the layer above it.
layers benefits
- Reducing complex problem into smaller sub problems. individual protocols are smaller and simpler to manage
-different layers can interface with different hardware
-devices can be manufactured to operate at a particular layer
-products from different vendors will work together
-self contained, can be removed or changed w/o affecting other layers
-each layer has its own purpose, does not need to consider what other layers do, can program individually- Reducing complex problem into smaller sub problems. individual protocols are smaller and simpler to manage
-different layers can interface with different hardware
-devices can be manufactured to operate at a particular layer
-products/systems from different vendors will work together - interoperability
-self contained, can be removed or changed w/o affecting other layers
-each layer has its own purpose, does not need to consider what other layers do, can program individually
TCP/IP stack
- TCP/IP stack is a set of protocols used for communicating across the internet.
- each protocol belongs to a different layer
-data is further encapsulated as it is passed to the next layer - It organizes how data packets are communicated, ensuring that packets have source and destination, packet sequence, data, and error check.
- The stack consists of four layers working together: Application layer > transport layer > network layer > link layer.
- TCP splits data into packets, numbers them, reassembles packet and orders them at the other end, resends lost messages, detects errors.
- IP locates the destination and routes packets over the network via routers.
Application layer
- The application layer is at the top of the TCP/IP stack
- It specifies the protocol needed to relate the application being sent
- It encodes/decodes messages into a form understood by sender and recipient
- Network applications such as web browsers and email programs operate at this layer
- Protocols used at this layer include HTTP, HTTPS, SMTP, IMAP, and FTP.
Transport layer
- The transport layer establishes an end-to-end connection using TCP or UDP
- It breaks down data into packets and labels each packet with packet number, total number of packets, and port number being used for communication
- It requests retransmissions of lost packets
- Transport layer protocols use port numbers to track sessions and add this information to the header
- It splits data into packets and numbers them for correct reassembly.
Network layer
- The network layer adds source and destination IP addresses to packets
- Routers use these addresses to forward the packets
- A socket address combines the IP address and port number, specifying the device and application to send packets to
- DNS is used at this layer
- The network layer in the TCP/IP model packages data for transmission and routes packets using IP
- All routers operate at this layer
Link layer
- The link layer is part of the four-layer TCP/IP protocol model and represents the physical connection between devices.
- The link layer adds MAC address information to packets for identifying the source and destination devices.
- It enables the transfer of packets between nodes and networks using operating system drivers and NIC.
- It adds the unique media access control (MAC) address of the devices to packets.
- MAC addresses change at each hop when transmitting data between routers over a wide area network (WAN).
- Communication between devices on the same LAN only requires the link layer using MAC addresses.
- Communication between devices on different networks (WAN) requires both the link layer frame and the network layer using IP addresses.
- Modern LANs also use IP addresses to treat the local network as if it were a wide network.
Step by step of a message through the layers of the TCP/IP stack
- The original message is split apart and wrapped up in segments.
- These segments are then wrapped up in packets which in turn are wrapped up in frames.
- Once the frames reach their final destination, they will travel up through the layers of the TCP/IP stack in reverse order, stripping off the headers and tails as they go.
- Finally the destination application receives the message
World Wide Web
- The World Wide Web is a collection of files with information stored on hypertext (web pages) and other associated files, hosted on web servers.
- Web servers host and store the files and handle client requests, such as HTTP GET requests for pages or resources.
- Web pages are stored as text using languages like HTML, CSS, and JavaScript.
- A web browser application is used to render the web page, using rules to display it correctly.
DNS (domain name system)
DNS refers to the entire system used to name and organize internet resources - including domain names and the DNS servers
DNS servers contain a database of website addresses and their corresponding ip addresses
DNS is hierarchical, with each smaller domain separated by a full stop - e.g ‘leeds.gov.uk’.
TLD stands for Top Level Domain, and 2LD stands for 2nd Level Domain.
Domain names are easier to remember than IP addresses and are used to link to servers.
The DNS server translates domain names into IP addresses when accessing a website.
- DNS contains many of domain name servers that translate human-readable URLs into IP addresses
- dns servers update eachother at regular points with changes
The process of a DNS lookup
- User types a domain name into the browser e.g. www.amazon.co.uk
- Browser checks its cache, if not found it performs a DNS search to locate the server
- DNS system returns the IP address for that domain
- Browser creates an HTTP request to get data from that IP address’ web server
- Browser sends the domain name to a DNS resolver server
- Resolver queries a DNS root name server which responds with the address of the TLD server for the domain (.com here)
- Resolver makes request to .com TLD server and it responds with the IP address of domain name server
- each part of the web address is handled by a different server
- Recursive resolver sends a query to the domain’s name server (ANS)
- IP address of google.com is then returned to resolver from name server
- DNS maps the domain name to IP address and returns it to the browser
- The requested web page or resource is returned to the client’s web browser
Data packets
- Data packets are segments of data sent over a network.
- Each packet contains a header, payload, and trailer.
- The header includes the sender and recipient IP addresses, the protocol being used, the order of the packets, and the Time To
- Live (TTL) or Hop Limit.
- The payload contains the raw data to be transmitted.
- The trailer contains a checksum or cyclic redundancy check used to detect errors during transmission.
Circuit switching
Circuit switching is a method of communication where a direct link is created between two devices, and the link is maintained for the duration of the entire conversation.
Data is transmitted in one long stream down the pathway from one node to another, resulting in data arriving in a logical order and quicker reconstruction of the data.
Circuit switching requires the two devices to transfer and receive data at the same rate.
Bandwidth is wasted during periods of time in which no data is being sent.
Using switches in circuit switching may produce electrical interference that can corrupt or destroy data.
Circuit switching ties up sections of the network which cannot be used by others until transmission has been completed.
Circuit switching enables two users to hold a call without delay in speech.
Circuit switching provides the basis for traditional telephone networks and is excellent for data that needs a constant link end to end, such as real-time video.
However, a lot of potential bandwidth can be wasted in circuit switching.
Packet switching
Packet switching breaks data into packets before sending them across a network
Each packet is marked with the source and destination and finds its own way to the destination
Multiple routes can be used, and packets can take different routes to their destination
Checksums and cyclic redundancy checks ensure data integrity
All bandwidth can be used at once, making it more efficient than circuit switching
Packets must arrive and be put in order before data can be received
Packet switching is more affordable and requires less complex infrastructure than circuit switching
Packets can be sent over very large networks to allow communication globally.
Circuit switching vs packet switching
Circuit switching establishes a dedicated physical path, while packet switching does not.
Circuit switching sends all packets on the same path, while packet switching allows packets to take different routes.
Circuit switching reserves bandwidth in advance, while packet switching does not.
Circuit switching does not support store and forward transmission, while packet switching does.
Circuit switching may cause bandwidth wastage, while packet switching eliminates this risk.
UDP
UDP is a communication protocol for sending short messages over a LAN/WAN.
It uses a simple connectionless transmission model and is an alternative to TCP.
UDP does not include error checking, making it less reliable than TCP.
It is often used for online gaming where speed is more important than accuracy.
UDP maintains an open two-way connection.
TCP
TCP is a communication protocol that uses a reliable transmission model.
It ensures accurate and sequential transmission of data
- it error-checking
TCP establishes a connection between two devices and maintains it for the duration of communication.
It is used for data transmission over the internet, including web browsing, file transfers, and email.
TCP is significantly more reliable than UDP.