0% found this document useful (0 votes)
46 views

Network Programming: Amanullah Khan

The document provides an introduction to network programming, explaining that it involves writing programs that communicate across a computer network. It discusses prerequisites for network programming like basic programming skills and an understanding of networks and data communication. Various network types are defined, like LAN, WAN, and MAN, and client-server programming is introduced as a fundamental concept in network programming.

Uploaded by

Subhan50
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views

Network Programming: Amanullah Khan

The document provides an introduction to network programming, explaining that it involves writing programs that communicate across a computer network. It discusses prerequisites for network programming like basic programming skills and an understanding of networks and data communication. Various network types are defined, like LAN, WAN, and MAN, and client-server programming is introduced as a fundamental concept in network programming.

Uploaded by

Subhan50
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

Network Programming

Amanullah Khan
Prerequisite

We must have knowledge to program!


How to write loops?
When and how to use conditional structures?
How to write functions?
How to use Array and collections?
We must have basic knowledge about Network and Data
Communication
Prove it!!
Introduction to course

According to Wikipedia:
network programming, essentially identical to socket programming or client
server programming, involves writing computer programs that communicate
with other programs across a computer network.
Program: A set of coded instructions that a computer can understand
to solve a problem or produce a desired result
So we have knowledge to create programs! (prerequisite)
In this course we will learn how to communicate with other programs
across a computer network thats our course objective.
What is a network?

group of computers or devices connected together by communication links.


A computer network is composed of multiple computers
connected together using a telecommunication system
communication system for connecting end-systems

End-systems a.k.a. hosts


PCs, workstations
dedicated computers
network components

Interconnection may be any medium capable of communicating information:


Copper wire
Lasers (optical fiber)
Radio /Satellite link
Cable (coax)

Types of Network
LAN, WAN & MAN
Why network?

Sharing resources
Resources become available regardless of the users physical location (server
based, peer2peer)
Example: dropbox, group, rapidshare etc.

Load Sharing/utilization
Jobs processed on least crowed machine
Resource can be shared
Example: Messagin Queues, load blancer
Question: how millions of user can stay connected with Facebook at the same
time

High reliability
Alternative source of supply (multiple copies/links)
Example: Backup servers, Disaster recovery plans

Computer as a communication tools


Example: Chat Applications, Skype etc.
LAN- Local Area Network

A local area network (LAN) is a computer network that interconnects


computers within a limited area such as a residence, school,
laboratory, university campus or office building and has its network
equipment and interconnects locally managed.
(Wikipedia)
Example: Campus Network, Home Network, Office Network
Technology: Cables, Switches etc.
WAN- Wide Area Network

A wide area network (WAN) is a telecommunications network or


computer network that extends over a large geographical distance
and consists of two or more interconnected local area networks
Example:
Internet
Technology:
Telecommunication, Router, Fiber Optics etc.
MAN Metropolitan Area Network

This type of network is not as big as WAN but bigger than LAN.
Metropolitan area network is used within college or within city. So it
has high range than LAN. This type of network is also used for
communication in military.
Example:
Networking between banks in a city.
Used in air reservation.
Technology:
Cables, Telecommunication , Router etc.
local ISP
Why Internet?

What is internet?
Network of networks regional ISP
What is the Internet?
A global internet based on IP protocol
Internet applications:
Email
File transfer
Newsgroup
File sharing
Resource distribution
World wide web company
Video conference network
Gaming
Programs & Processes

A program is an executable file.

A process or task is an instance of a program that is being executed.

A single program can generate multiple processes.


Client - Server

A server is a process - not a machine !

A server waits for a request from a client.

A client is a process that sends a request to an existing server and


(usually) waits for a reply.

CSCE515 Computer Network Programming 2008 Fall


Client - Server Examples

Server returns the time-of-day.

Server returns a document.

Server prints a file for client.

Server does a disk read or write.

Server records a transaction.

CSCE515 Computer Network Programming 2008 Fall


Distributed System

A distributed system is one in which components located at


networked computers communicate and coordinate their actions
only by message passing
Program/software that runs on the distributed system called
distributed program/distributed software.
OSI Model

You all already covered in your


previous courses
OSI = Open System
Interconnection
a model for a standardized
network
used as a reference model to
describe different network
protocols and their
functionality.
OSI Model [Cont.]
Each Layer has specific purpose and is connected to the layers
immediately above and below it
The application layer defines a programming interface to the network for
user applications.
File transfer, browsing, email etc
The presentation layer is responsible for encoding data from the application
layer ready for transmission over the network, and vice versa.
The session layer creates a virtual connection between applications.
The transport layer allows reliable communication of data.
Port number
The network layer makes it possible to access nodes in a LAN using logical
addressing.
IP
The data link layer accesses the physical network with physical addresses.
MAC, ARP
Finally, the physical layer includes the connectors, cables, and so on.
Why do we need connected applications?

Its your quiz!


Write answer in a separate page

You might also like