Docsity

IP Addressing and Network Basics in Distributed Computing - Prof. Jeho Park, Study notes of Computer Science

Partial preview of the text

Download IP Addressing and Network Basics in Distributed Computing - Prof. Jeho Park and more Study notes Computer Science in PDF only on Docsity!

Chapter 1

Distributed Computing:

An Introduction (3)

Net-centric Computing

Instructor: Dr. Jeho Park

IPv4 Address Scheme Class A Class B Class C Multicast Reserved Byte 0 Byte 1 Byte 2 Byte 3

  • (^) In IP version 4, each address is 32 bit long.
  • (^) The address space accommodates 2 32 (4.3 billion) addresses in total.
  • (^) Addresses are divided into 5 classes (A through E) 255 hosts/network 65,555 hosts 16,777,215 hosts Classful Reserved Multicast group Host Host Network Host Network 0 Network 0 0 0 1 1 1 1 1 1 1 1 1 1

IP Subnetting Subnetting is used to break the network into smaller more efficient subnets to prevent excessive rates of Ethernet packet collision and excessive routing table growth in a large network.

Subnet Mask 255.255.255.

Subnet ID Host ID

2-level Network ID 3-level

Host ID

IP Subnetting

Network ID

The Domain Name System

  • For network applications, a domain name must be mapped to its corresponding Internet address.
  • Processes known as DNS servers provide the mapping service, based on a distributed database of the mapping scheme.
  • The mapping service is offered by thousands of DNS servers on the Internet, each responsible for a portion of the name space, called a zone. The servers that have access to the DNS information (zone file) for a zone is said to have authority for that zone.

Addressing a Process on a Host . . . process port . . . host A host B The Internet Each host has 65536 ports.

Choosing a Port

For our programming exercises: when a port is needed,

choose a random number above the well known ports:

Network Basics

  • Protocols
  • Network Architecture
    • OSI Seven-layer Network Architecture
    • Internet Four-layer Network Architecture
      • Application layer, Transport layer, Internet Layer, Physical layer
  • TCP/IP Suite
  • IPv4 Address Scheme
  • Domain Name System (Service)

Operating systems review

  • (^) A thread is the entity within a process that can

be scheduled for execution.

  • (^) All threads of a process share its virtual address

space and system resources.

  • (^) Each process is started with a single thread, but

can create additional threads from any of its

threads.

Process and Thread

Threads are distinguished from processes in that:

  • processes are typically independent, while threads subsets of a process
  • processes carry considerable state information, where multiple threads within a process share state as well as memory and other resources
  • processes have separate address spaces, where threads share their address space
  • processes interact only through system-provided inter- process communication mechanisms.
  • context switching between threads in the same process is typically faster than context switching between processes. source Wikipedia

Three Types of Java Program

  • (^) Applications, applets, and servlets
    • (^) A Java application program has a main method, and is run as an independent(standalone) process -- may run as monolithic or as distributed program
    • (^) An applet does not have a main method, and is run using a browser’s JVM or the appletviewer.
    • (^) A servlet does not have a main method, and is run in the context of a web server at the request of a browser
  • (^) A Java program is compiled into bytecode, a universal object code. When run, the bytecode is interpreted by the Java Virtual Machine (JVM).