CS- 492 : Distributed system & Parallel Processing Lecture 2: 9/4/1435 Sun. 8- 11  networking.  internetworking essentials.  overview of network programming.

Slides:



Advertisements
Similar presentations
Introduction to Computer Administration. Computer Network - Basic Concepts Computer Networks Computer Networks Communication Model Communication Model.
Advertisements

(4.4) Internet Protocols Layered approach to Internet Software 1.
Computer networks SATISH MISHRA,PGT CS,KV TRIMULGHERRY.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Communicating over the Network Network Fundamentals – Chapter 2.
1 Java Networking – Part I CS , Spring 2008/9.
Becoming a Networking Expert Networking Hardware and Protocols.
Networking Theory (part 2). Internet Architecture The Internet is a worldwide collection of smaller networks that share a common suite of communication.
Introduction To Networking
Computer Networks Eyad Husni Elshami. Computer Network A computer network is a group of interconnected computers to share data resources ( printer, data.
Chapter 15 Networks Nell Dale John Lewis Chapter Goals Describe the core issues related to computer networks List various types of networks and.
Chapter 15 Networks.
1 Networking A computer network is a collection of computing devices that are connected in various ways in order to communicate and share resources. The.
15-1 Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
Chapter 15 Networks.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Application Layer Functionality and Protocols Network Fundamentals – Chapter.
©Brooks/Cole, 2003 Chapter 6 Computer Networks. ©Brooks/Cole, 2003 Understand the rationale for the existence of networks. Distinguish between the three.
Lecture slides prepared for “Business Data Communications”, 7/e, by William Stallings and Tom Case, Chapter 8 “TCP/IP”.
15-1 More Chapter 15 Goals Compare and contrast various technologies for home Internet connections Explain packet switching Describe the basic roles of.
Chapter 15 Networks. Chapter Goals Types of networks Topologies Open Systems Home Internet connections 15-2.
Overview, Circuit & Packet Switching, Addressing
Computer Network By Tahir Saad. Introduction to computer networking Content : The definitions of networking Use of network Network classification.
Chapter 17 Networking Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William Stallings.
Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
Chapter 4 Networking and the Internet Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Computer Networks. IP Addresses Before we communicate with a computer on the network we have to be able to identify it. Every computer on a network must.
 Computer Networking Computer Networking  Networking terminology Networking terminology  Client Server Model Client Server Model  Types of Networks.
TCP/IP Yang Wang Professor: M.ANVARI.
Computer Network Basic Concepts. Topics Computer Networks Communication Model Transmission Modes Communication Types Classification Of Computer Networks.
Networks – Network Architecture Network architecture is specification of design principles (including data formats and procedures) for creating a network.
Networks QUME 185 Introduction to Computer Applications.
Jozef Goetz, Application Layer PART VI Jozef Goetz, Position of application layer The application layer enables the user, whether human.
Chapter Three Network Protocols By JD McGuire ARP Address Resolution Protocol Address Resolution Protocol The core protocol in the TCP/IP suite that.
Chap 9 TCP/IP Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
I. Basic Network Concepts. I.1 Networks Network Node Address Packet Protocol.
1 Web Development & Design Foundations with XHTML Chapter 1 Key Concepts.
15-1 Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources.
Chapter 15 Networks. 2 Chapter Goals Describe the core issues related to computer networks List various types of networks and their characteristics Explain.
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
TCP/IP (Transmission Control Protocol / Internet Protocol)
CSI 3125, Preliminaries, page 1 Networking. CSI 3125, Preliminaries, page 2 Networking A network represents interconnection of computers that is capable.
Transmission Control Protocol (TCP) Internet Protocol (IP)
Introduction to computer networking Objective: To be acquainted with: The definitions of networking Network topology Network peripherals, hardware and.
Advanced Higher Computing Computer Networking Topic 1: Network Protocols and Standards.
The OSI Model. Understanding the OSI Model In early 1980s, manufacturers began to standardize networking so that networks from different manufacturers.
1 Network Communications A Brief Introduction. 2 Network Communications.
IST 201 Chapter 11 Lecture 2. Ports Used by TCP & UDP Keep track of different types of transmissions crossing the network simultaneously. Combination.
15-1 Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
Chapter Objectives In this chapter, you will learn:
Computer Networks.
NETWORK Unit 1 Module: 2 Objective: 7.
Lecture 6: TCP/IP Networking By: Adal Alashban
Web Development & Design Chapter 1, Sections 4, 5 & 6
15-1 Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
Topic 5: Communication and the Internet
Packet Switching To improve the efficiency of transferring information over a shared communication line, messages are divided into fixed-sized, numbered.
I. Basic Network Concepts
POWERPOINT PRESENTATION ON NETWORKING Presented by Ms
Introduction to Computer Administration
Chapter Goals Compare and contrast various technologies for home Internet connections Explain packet switching Describe the basic roles of various network.
Networking Theory (part 2)
NETWORK Unit 1 Module: 2 Objective: 7.
NETWORK Unit 1 Module: 2 Objective: 7.
Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
The Internet What is the Internet? The Internet is a global web of computers connected to each other by wires, (mostly phone lines). If you look at a.
Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
COMPUTER NETWORKING Presented by Pushpanjali Associate professor
Networking Theory (part 2)
Presentation transcript:

CS- 492 : Distributed system & Parallel Processing Lecture 2: 9/4/1435 Sun  networking.  internetworking essentials.  overview of network programming  overview of network programming Lecturer: Kawther Abas

What is a “Network”? A network is a way to get “stuff” between 2 or more “things” Examples: Mail, phone system, conversations, railroad system, highways and roads.

Fundamental Network Classifications Local Area Networks (LANs):  A local area network (LAN) Wide Area Networks (WANs):  Wide Area Network (WAN)  Metropolitan Area Network (MAN):

Network topology  A topology is a way of “laying out” the network. Topologies can be either physical or logical.  Physical topologies describe how the cables are run.  Logical topologies describe how the network messages travel

Type of Network topology  Bus (can be both logical and physical)  Star (physical only)  Ring (can be both logical and physical)  Mesh (can be both logical and physical)

Network Protocols  Network protocols are layered such that each one relies on the protocols that underlie it  Sometimes referred to as a protocol stack

Internetwork   An Internetwork is the connection of two or more distinct computer networks or network segments via a common routing technology.Internetwork   Any interconnection among or between public, private, commercial, industrial, or governmental networks may also be defined as an internetwork.

Internetwork   Intranet – –An intranet is a set of networks, using the Internet Protocol and IP-based tools such as web browsers and file transfer applications, that is under the control of a single administrative entity.intranetInternet Protocol   Extranet – –An extranet is a network or internetwork that is limited in scope to a single organization or entity but which also has limited connections to the networks of one or more other usually, but not necessarily, trusted organizations or entitiesextranet – –by definition, an extranet cannot consist of a single LAN; it must have at least one connection with an external network.   Internet – –The Internet consists of a worldwide interconnection of governmental, academic, public, and private networks based upon the networking technologies of the Internet Protocol Suite.Internet Protocol Suite – –It is the successor of the Advanced Research Projects Agency Network (ARPANET) developed by DARPA of the U.S. Department of Defense.Advanced Research Projects Agency NetworkDARPAU.S. Department of Defense – –The Internet is also the communications backbone underlying the World Wide Web (WWW).World Wide Web

Advantages of networking  Connectivity and Communication  Data Sharing  Hardware Sharing  Internet Access  Internet Access Sharing  Data Security and Management  Performance Enhancement and Balancing  Entertainment

The Disadvantages (Costs) of Networking  Network Hardware, Software and Setup Costs  Hardware and Software Management and Administration Costs  Undesirable Sharing  Illegal or Undesirable Behavior  Data Security Concerns

TCP/IP  TCP stands for Transmission Control Protocol TCP software breaks messages into packets, hands them off to the IP software for delivery, and then orders and reassembles the packets at their destination  IP stands for Internet Protocol IP software deals with the routing of packets through the maze of interconnected networks to their final destination

TCP/IP (cont.)  UDP stands for User Datagram Protocol –It is an alternative to TCP –The main difference is that TCP is highly reliable, at the cost of decreased performance, while UDP is less reliable, but generally faster

High-Level Protocols  Other protocols build on the foundation established by the TCP/IP protocol suite –Simple Mail Transfer Protocol (SMTP) –File Transfer Protocol (FTP) –Telnet –Hyper Text Transfer Protocol (http)

Firewalls  Firewall A machine and its software that serve as a special gateway to a network, protecting it from inappropriate access –Filters the network traffic that comes in, checking the validity of the messages as much as possible and perhaps denying some messages altogether –Enforces an organization’s access control policy

Network Addresses  Hostname A unique identification that specifies a particular computer on the Internet For example matisse.csc.villanova.educondor.develocorp.com

Network Addresses  Network software translates a hostname into its corresponding IP address For example

Network Addresses  An IP address can be split into –network address, which specifies a specific network –host number, which specifies a particular machine in that network An IP address is stored in four bytes

Domain Name System  A hostname consists of the computer name followed by the domain name  csc.villanova.edu is the domain name –A domain name is separated into two or more sections that specify the organization, and possibly a subset of an organization, of which the computer is a part –Two organizations can have a computer named the same thing because the domain name makes it clear which one is being referred to

19 Domain Name System  The very last section of the domain is called its top-level domain (TLD) name Top-level domains, including some relatively new ones

Domain Name System  The domain name system (DNS) is chiefly used to translate hostnames into numeric IP addresses –DNS is an example of a distributed database –If that server can resolve the hostname, it does so –If not, that server asks another domain name server

Client and Server computer role in networking  Server computer is a core component of the network, providing a link to the resources necessary to perform any task.  The link it provides could be to a resource existing on the server itself or a resource on a client computer.  Client computers normally request and receive information over the network client. Client computers also depends primarily on the central server for processing activities

A Client-Server Transaction Client process Server process 1. Client sends request 2. Server handles request 3. Server sends response 4. Client handles response Resource  Every network application is based on the client-server model: –A server process and one or more client processes –Server manages some resource. –Server provides service by manipulating resource for clients. Note: clients and servers are processes running on hosts (can be the same or different hosts).

A Programmer’s View of the Internet  1. Hosts are mapped to a set of 32-bit IP addresses. –  2. The set of IP addresses is mapped to a set of identifiers called Internet domain names. – is mapped to  3. A process on one Internet host can communicate with a process on another Internet host over a connection.

1. IP Addresses  32-bit IP addresses are stored in an IP address struct –IP addresses are always stored in memory in network byte order (big-endian byte order) –True in general for any integer transferred in a packet header from one machine to another.  E.g., the port number used to identify an Internet connection.

3. Internet Connections Connection socket pair ( :51213, :80) Server (port 80) Client Client socket address :51213 Server socket address :80 Client host address Server host address  Clients and servers communicate by sending streams of bytes over connections.  Connections are point-to-point, full-duplex (2-way communication), and reliable. Note: is an ephemeral port allocated by the kernel Note: 80 is a well-known port associated with Web servers

Clients  Examples of client programs –Web browsers, ftp, telnet, ssh  How does a client find the server? –The IP address in the server socket address identifies the host (more precisely, an adapter on the host) –The (well-known) port in the server socket address identifies the service, and thus implicitly identifies the server process that performs that service. –Examples of well know ports  Port 7: Echo server  Port 23: Telnet server  Port 25: Mail server  Port 80: Web server

Using Ports to Identify Services Web server (port 80) Client host Server host Echo server (port 7) Service request for :80 (i.e., the Web server) Web server (port 80) Echo server (port 7) Service request for :7 (i.e., the echo server) Kernel Client

Servers  Servers are long-running processes (daemons). –Created at boot-time (typically) by the init process (process 1) –Run continuously until the machine is turned off.  Each server waits for requests to arrive on a well- known port associated with a particular service. –Port 7: echo server –Port 23: telnet server –Port 25: mail server –Port 80: HTTP server  A machine that runs a server process is also often referred to as a “server.”

Server Examples  Web server (port 80) –Resource: files/compute cycles (CGI programs) –Service: retrieves files and runs CGI programs on behalf of the client  FTP server (20, 21) –Resource: files –Service: stores and retrieve files  Telnet server (23) –Resource: terminal –Service: proxies a terminal on the server machine  Mail server (25) –Resource: “spool” file –Service: stores mail messages in spool file See /etc/services for a comprehensive list of the services available on a Linux machine.

Sockets  What is a socket? –To the kernel, a socket is an endpoint of communication. –To an application, a socket is a file descriptor that lets the application read/write from/to the network.  Remember: All Unix I/O devices, including networks, are modeled as files.  Clients and servers communicate with each by reading from and writing to socket descriptors.  The main distinction between regular file I/O and socket I/O is how the application “opens” the socket descriptors.

Sockets Interface  Created in the early 80’s as part of the original Berkeley distribution of Unix that contained an early version of the Internet protocols.  Provides a user-level interface to the network.  Underlying basis for all Internet applications.  Based on client/server programming model.

Overview of the Sockets Interface Client Server socket bind listen accept rio_readlineb rio_writen close rio_readlineb connect rio_writen close Connection request EOF Await connection request from next client open_listenfd open_clientfd