|
Distributed Computing This website demonstrates using wikis as teaching and learning tool. The course instructor is also happy to share the teaching materials here with those who find it readable. |
Lecture /
Networking BasicsA Distributed Computing Lecture by Steven Choy Lecture Overview: Protocols and networking stacks - Internet Protocol - IP addressing and networks - TCP (Transmission Control Protocol) - UDP (User Datagram Protocol) - IP family of services - Domain Name System - Firewalls and proxy servers - Internet Protocol version 6 - Overview of basic concepts for network programming Protocols and networking stacks
I used this sentence to remember these seven layers: Viewing more about OSI model...
Illustration: The OSI Model Internet Protocol
If you are using Windows, type ipconfig or ipconfig /all in the Command Prompt. It will then list the host name, IP address, subnet mask, gateway, and even the MAC address of your network card.
If you used a router/proxy, your IP address as seen by the server is different. Try the following websites.
Why?
Public versus private IP addresses: Besides the reserved IP addresses (0.0.0.0/8 and 127.0.0.0/8) mentioned above, there are other addresses not used on the public Internet. These private subnets consist of private IP addresses and are usually behind a firewall or router that performs NAT (network address translation). NAT is needed because private IP addresses are nonroutable on the public Internet, so they must be translated into public IP addresses before they touch the Internet. Private IPs are never routed because no one really owns them. And since anyone can use them, there's no right place to point a private IP address to on the public Internet. Private IP addresses are used in most LAN and WAN environments, unless you're lucky enough to own a Class A or at least a Class B block of addresses, in which case you might have enough IPs to assign internal and external IP addresses. (Extract from IP subnetting made easy)
Windows has a program that lets you trace a packet movement between routers. Type tracert <somehost> in the command prompt. Replace <somehost> with some hosts you want to test.
IP addressing
1. What is the class of the network for each of the following IP addresses?
(a) 12.12.12.12
(b) 125.44.25.223
(c) 220.32.34.125
2. Why there is no network that owns an IP address such as 127.x.x.x?
3. What is the subnet mask for a non-subnetted class C network?
4. Can you send data to 234.5.6.7? If so, what will happen?
IP networks
Using the subnet technique, network administrators can divide a network into multiple subnetworks and connect subnetworks with routers.
TCP (Transmission Control Protocol)
UDP (User Datagram Protocol)
Class Discussion: When should we use UDP rather than TCP?
IP family of servicesFTP (File Transfer Protocol): port 21, 20
Telnet: port 23
Gopher: port 70
Finger: port 79
WAIS (Wide Area Information Server)
NNTP (Network News Transport Protocol): port 119
SMTP (Simple Mail Transfer Protocol): port 25
SNMP (Simple Network management Protocol): port 161, 162
HTTP (Hypertext Transfer Protocol): port 80
Domain Name System
Firewalls and proxy servers
Internet Protocol version 6
Improvement by IPv6
For probing further
Overview of basic concepts for network programming
Extra Materials for probing furtherThe OSI, or Open System Interconnection, model defines a networking framework for implementing protocols in seven layers. Control is passed from one layer to the next, starting at the application layer in one station, proceeding to the bottom layer, over the channel to the next station and back up the hierarchy.
This article has good explanation on layer services and data encapsulation and good illustration and example about data encapsulation in TCP/IP.
This website has some drawings for you to better understand the structure of the headers for IP, TCP, UDP and ICMP.
IP network engineers need a solid understanding of how IP subnetting works--yet the subject is often taught so poorly, students wind up completely baffled. George Ou has developed a simple, graphical approach that explains IP subnetting in a way that finally makes sense.
Thanks for ReadingIf you would rather like to have this lecture note in printed format, please click the print action link in the top right corner. If you find any problem in this lecture note, please feel free to reach Steven by steven@findaway.hk |