What is the function of an IP address?
host or network interface identification and location addressing
What is the function of a port number?
is to identify a specific process to which an internet or other network message is to be forwarded when it arrives at server
What is the scope of an IP address?
range of IP addresses that DHCP is configured to distribute
What is the size of an IP address?
32-bit
what is the size of a port number?
16 bits
3 key differences in service offered to a user between TCP and UDP protocols?
what does the ‘cat’ linux function do?
concatenate the file to the screen
what does the ‘nc’ linux function do?
allows us to serve the file to the host/portnumber given
3 HTTP methods?
GET, POST, HEAD
what does the GET method do?
requests a specific page or object
what does the HEAD method do?
requests only the header, not the object itself, can check timestamp against local cache
what does the POST method do?
sends form data to server
Describe the promises mechanism?
an object that is used as a placeholder for the eventual result of a deferred computation
What problems with callbacks does promises resolve?
escape callback hell, as promise chaining allows us to get rid of the nasty nesting callback pattern and flatten our JavaScript code into more readable format
name one client side framework?
Node.js
Describe key features of Node.js
How does Node.js make life easier?
We can use built in libraries. Both the client and server can initiate communication, allowing them to exchange data freely
What are the key properties of a hash algorithm?
What does MAC stand for?
message authentication code
How does MAC work?
Sender encrypts message with hash code to become MAC, and sends message and MAC over to the reciever. The reciever then encrypts the same message with the keyy and compares both MACs to ensure the data has not been tampered with
What is a proxy server?
is a server that acts as an intermediary for requests from clients seeking resources from other servers.
Where is a proxy placed?
Between the server and client
Explain operation of proxy server?
How is performance improved by using a proxy?
better network performance as caches, see if it has the page saved, and if so serves it much faster as it just has to retrieve from its own cache. Saves bandwidth too.