











































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












































(^) The physical wire itself (^) Ethernet, 802.11b (^) Routing protocols (^) ...
My Home Network gatech.edu google.com
(^) Example from human world: “roger” and “over” for radio geeks
(^) A callback expects to get a certain set of parameters in a certain order (^) You need to know this in order to use the callback
(^) A networked program expects you to communicate with it in certain ways (using certain messages, in a known format) (^) You need to know this in order to use the program
(^) Examples: (^) Web browser connects to web servers to access/view HTML documents (^) Mail client (Outlook, etc.) connects to mail servers for mail storage, transmission (^) IM clients connect to IM servers to access info about who is on, etc.
(^) The machine “hosts” a server
(^) Errors generally result from a bug, and just crash entire program
(^) Network is down, server has crashed, server slow to respond, etc. (^) During a chat I could shut my laptop and walk away (^) Someone could trip over the power cord for an access point (^) Networks can’t even guarantee that messages will get from A to B
(^) Your program should survive the crash of another program on the network, receiving malformed data, etc (^) “Defensive programming”
(^) Usually written in “dotted quad” notation (^) Examples: 192.168.13.40, 13.2.117.
(^) Example: 64.223.161.104 is the machine www.google.com
(^) localhost (^) Refers to the local machine always
(^) The rest of the Internet won’t know how to reach you (^) You have to use values that are compatible with whatever network you’re on
(^) Dynamic Host Configuration Protocol (^) Assigns you a valid IP address when you boot your machine, wake your laptop, etc. (^) E.g., LAWN at Georgia Tech (^) IP address may change from time to time: in other words, don’t count on this being your address forever
(^) Example: my old machine at PARC was 13.1.0.128, but only reachable from within PARC
(^) Some IP addresses are private (also called non-routable ) (^) Three blocks of addresses that cannot be connected to from the larger Internet (^) 10.0.0.0 - 10.255.255. (^) 172.16.0.0 - 172.31.255. (^) 192.168.0.1 - 192.168.255.
(^) Public addresses uniquely define a given machine (^) There’s a limited number of these, and they’re running out (^) Private addresses can be reused (although not on the same network) (^) Probably hundreds of thousands of machines with 192.168.0.1 on private networks (corporation internal, homes, etc.) (^) Certain network configs let you share a single public IP address across multiple private machines (^) Network Address Translation (^) Built into most home routers (^) E.g., BellSouth gives me the address 68.211.58. (^) My router gives my home machines 192.168 addresses (^) Connections out are translated so that it looks like they come from 68.211.58. (^) Internal machines are “invisible” since they have non-routed addresses
(^) A big distributed database of all the machines on the Internet (^) Each organization manages its own little portion of it (^) Maps from host names to IP addresses
(^) When you type www.google.com, the browser resolves that name to an IP address by talking to a DNS server (^) If name resolution can’t be done (DNS is down; you’re not connected to the network), then browsing will fail
(^) In general, you won’t have a name resolvable by DNS, even if your machine has a “local” name (^) In the CoC, CNS sets up DNS names for the machines they administer, mapping them to fixed IP addresses (^) If you were to take these machines to different networks (where they get different IP addresses), those names would no longer work (^) Resolve to the incorrect address (^) Personally owned machines, even if they get an IP address from DHCP, generally get sucky names, if they get a name at all (^) Example: lawn-199-77-214-212 on my laptop