Wednesday 6 May 2015

Home, work?!

How many Kilobytes in a Megabyte?
How many Megabytes in a Gigabyte?
1024 for both.






How Many Megs in 4 Terabytes?
1024 * 1024 * 4 = 4194304






How many Bits in a Petabyte?
8 bits in a byte
1024 bytes in kB
1024 kB in MB
1024 mB in GB
1024 GB in TB
1024 TB in PB
 
8 * 1024^5 = 9007199254740992
How many Bits in a Yotta? (jokes).
A Yottabyte is 1000^8 lol.

Tell me what Base 10, Base 2 and Base 16 are.
BASICALLY
B10 = Denary
B2 = Binary
B16 = Hex


Simple innit.














Tell me where Hexadecimal is used and why?


Colours in CSS due to its simplicity and large range.












Extension: Write a very simple Python program that works out bits/bytes OR that
converts Binary to Denary OR that converts Hex.


No :D

Tuesday 5 May 2015

DNS

Notes:
DNS translates a URL into an IP address.
Browser and OS will determine if it knows the IP address from memory or cache.
If not, OS queries resolving name server for IP address
RNS communicates with root name servers for IP address
Which will link to the Top Level Domain name servers
RNS stores info from Root Name Servers in cache
Resolving queries TLD server, links to Autoritiative Name Server
ANS' controlled by registrar
Resolving Queries ANS, which provides IP.
Resolving replies to OS
which replies to Browser
Browser then loads web page




The purpose of DNS is to translate a web address into an IP address. When the user inputs the address into the browser, first the OS and browser check the Resolving Name Server to see if the IP is stored in memory. If not, the Root Name Server, Top Level Domain name server, and Authoritative Name Server will be queried, until the ANS responds with an IP. The Resolving Name Server updates it's cache with this information and then returns it to the OS. The browser will then access the page stored at that IP.

Advantages:


  • No need to memories numbers/makes the web more user friendly
  • Easier for search engines
Disadvantages:
  • Breakdown of DNS would destroy the WWW
  • Defeats the purpose of the internet being a decentralised system