IP address stuff Flashcards
how to find network identifier
perform AND operation on binary versions of subnet mask and device IP
what’s the format of IPv4
dotted quad numbers (four parts separated by dots)
routable IP address definition and use
public IP addresses, globally unique
DCHP stands for…
Dynamic Host Configuration Protocol
Why is DCHP used?
Assigns IP address to device
IP address is chosen from a pool of available ones
Once device leaves a session. IP address is returned to the pool for re-allocation
NAT stands for…
Network Access Translation
How is NAT used?
Comp sends packet through the internet via router
Router replaces private ip with its own routable public IP
Makes record of the packet
Forwards response to private ip of the computer by using the record it made when sending packet
Port Forwarding
Client sends packets to Public ip of the router
packets contain port number of the application being access
router forwards the packets to the server using NAT
How does a client make a request to a database?
Client server request made to the web browser
Web browser responds with web page (delivered as txt file)
File contains JavaScript which contains an API
Client sends HTTP request to the database
DB responds using JSON/XML
JSON processed by the client and response is displayed
JSON vs XML
JSON is more compact, easy to read, easier to create, faster to process
XML is more flexible
Thin client traits
majority of server processing done via servers
easy to add new clients
clients are inexpensive machines
greater centralised control of network as services managed via the server
but expensive powerful servers and hard to maintain
thick client traits
clients are powerful enough to process power and store stuff
eliminates need for a server
clients are more expensive
harder to maintain as no centralised updates
reduced data collisions