Network + Network Security Flashcards
what is the purpose of a router?
it is a device that connects different computer networks and direct data packets to their destination.(it uses the IP address in the packet header to determine where to send the packet)
what is the purpose of a switch?
A switch is a device that connects other nodes (devices) to form a LAN and forwards data frames based on their MAC addresses.
what are the differnet network topologies and what are their advantages and disadvantages?
bus topology:
+ low cost + easy to connect + less cable length
- entire system fail if there is a break in the main connector or if T connector breaks
ring topology:
+ organised + all have equal access to resources
- slower than star topology since need pass through all the hosts between source and destination + if one down all down
fully mesh topology:
+ network traffic can be redirected to other nodes if one goes down
- expensive and requires most cable length
star topology:
+ if cable failure, only 1 node is affected
- if central device has any failure, entire system will fail
what is the difference between the World Wide Web (www) and the Internet?
the internet is a global network of networks while the web is a collection of information which is accessed via the internet
internet is the infrastructure while the Web is the service on top of the infrastructure
how does a network device receive its IP address when it joins a network?
static IP address assignment:
- network administrator (the poor engineer) manually configure each device with an IP address, a subnet mask, a default gateway and a DNS server
dynamic IP address assignment:
- network device automatically obtains an IP address from a DHCP (dynamic host configuration protocol) server which is usually configured on the router.
how does a DNS work? (domain name server)
- the dns resolver will first check its local cache to see if the IP address associated with the domain name is stored, if it is, then immediately return it
- if not, the query is routed to a recursive DNS resolver which is normally managed by the ISP.
- the recursive dns resolver forwards the request to a DNS root name server
- the root DNS servers return the IP address of the TLD (top-level domain) name server associated with the domain
- the TLD server directs to the authoritative DNS server
- the authoritative DNS servers return the IP address of the requested domain name to the local DNS
- the local DNS stores in the cache for future use for a specified time.
what are the layers in the TCP/IP suite?
application layer
transport layer
internet layer
network access layer
why are the protocols arranged in layers in the TCP/IP suite?
to simplify the design aand implementation of the network system by dividing it into smaller and manageable modules
makes troubleshooting easiser since engineers can focus on a particular layer
each layer can be changed and modified with affecting the other layers
why do we even need protocols?
protocols ensure reliability, security and efficiency of data transmission
protocols provide a consistent and standardised way of communication, reducing errors and conflicts and enhances performance and functionality.
what information is added into the head in each layer?
application layer:
- raw data
transport layer:
- source and destination ports
- sequence number (for reordering)
- acknowledgement number (in TCP)
- checksum (to check if the data is modified)
internet layer:
- source destination IP address
- TTL (time to live -> ensure that the packet isnt floating around forever if not sent)
- header checksum
network access layer:
- source destination MAC address
what is the difference between TCP and UDP?
TCP is a connection-oriented protocol while UDP is a connectionless protocol. TCP estasblishes a connection with receiver before sending/receiver but UDP doesnt
TCP is more reliable than UDP as it ensures that every packet sent is received and acknowledged by receiver
UDP is faster than UDP (since it doesnt care if receiver actually receives the data)
twitch uses UDP while netflix uses TCP woahhh
what is data packetisation?
(data segmentation + data packetisation)
it involves the breaking down of large data into smaller segments (transport layer). headers and trailers are added to the data segments which contains information like source and destination addresses and create packets that can be transmitted over the network. (internet layer)
explain the term packet-switching
- it refers to the breaking down of large messages into smaller messages and sends them individually
- each packet travels from router to router until it reaches its destination
- since packets can arrive out of order, they will be reordered sequentially to recreate the original message
explain what is a packet-switching network
- its a network that transfers data by dividing to smaller packets
- packet contains header with information like source + destination address and contains a portion of the data
- packets are sent individually and may take different paths
- packets are reassembled to form the original data
what are some types of malware?
- virus
- worm
- trojan