Network programming Lecture 1 Prepared by: Dr. Osama Mokhtar.

Slides:



Advertisements
Similar presentations
TCP/IP MODEL Maninder Kaur
Advertisements

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.
An Introduction to Internetworking. Why distributed systems - Share resources (devices & CPU) - Communicate people (by transmitting data)
Chapter 15 Networks.
15-1 Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
Lecture slides prepared for “Business Data Communications”, 7/e, by William Stallings and Tom Case, Chapter 8 “TCP/IP”.
CECS 5460 – Assignment 3 Stacey VanderHeiden Güney.
CHAPTER 2 PCs on the Internet Suraya Alias. The TCP/IP Suite of Protocols Internet applications – client/server applications The client requested data.
Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
Chapter Two Application Layer Prepared by: Dr. Bahjat Qazzaz CS Dept. Sept
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
How the Internet Works. The Internet and the Web The Web is actually just one of many computer applications that run on the Internet Among others are.
1.1 What is the Internet What is the Internet? The Internet is a shared media (coaxial cable, copper wire, fiber optics, and radio spectrum) communication.
Huda AL_Omairl - Network 71 Protocols and Network Software.
15-1 Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources.
1 Networking Chapter Distributed Capabilities Communications architectures –Software that supports a group of networked computers Network operating.
NETWORK HARDWARE AND SOFTWARE MR ROSS UNIT 3 IT APPLICATIONS.
Data Communications and Networks
TCP/IP (Transmission Control Protocol / Internet Protocol)
Networking Basics CCNA 1 Chapter 11.
INTERNET AND PROTOCOLS For more notes and topics visit: eITnotes.com.
Protocols Monil Adhikari. Agenda Introduction Port Numbers Non Secure Protocols FTP HTTP Telnet POP3, SMTP Secure Protocols HTTPS.
Internet Flow By: Terry Hernandez. Getting from the customers computer onto the internet Internet Browser
Mr. Sathish Kumar. M Department of Electronics and Communication Engineering I’ve learned that people will forget what you said, people will forget what.
1 Network Communications A Brief Introduction. 2 Network Communications.
Networking Mehdi Einali Advanced Programming in Java 1.
UDP: User Datagram Protocol. What Can IP Do? Deliver datagrams to hosts – The IP address in a datagram header identify a host – treats a computer as an.
15-1 Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
Ethernet, WiFi & Protocols
Application Layer Functionality and Protocols Abdul Hadi Alaidi
CompTIA Security+ Study Guide (SY0-401)
Introduction to Networks
Networking Based Applications
NETWORK Unit 1 Module: 2 Objective: 7.
Chapter 4 Computer Networks – Part 2
Slides taken from: Computer Networking by Kurose and Ross
Networking COMP
MCA – 405 Elective –I (A) Java Programming & Technology
OSI Protocol Stack Given the post man exemple.
Networking for Home and Small Businesses – Chapter 6
Lecture 6: TCP/IP Networking By: Adal Alashban
Introduction to Networks
NET323 D: Network Protocols
Networking for Home and Small Businesses – Chapter 6
CompTIA Security+ Study Guide (SY0-401)
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
Advanced Programming in Java
I. Basic Network Concepts
POWERPOINT PRESENTATION ON NETWORKING Presented by Ms
NET323 D: Network Protocols
Process-to-Process Delivery:
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.
System Models and Networking Chapter 2,3
EUT 122 Skills and Technology in Communication
Internet Protocols IP: Internet Protocol
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,
Network Models CCNA Instructor Training Course October 12-17, 2009
Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
An Introduction to Internetworking
Networking for Home and Small Businesses – Chapter 6
Process-to-Process Delivery: UDP, TCP
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:

Network programming Lecture 1 Prepared by: Dr. Osama Mokhtar

Introduction to Network programming

01.3 Today agenda 02 Client/Server Communications 01 Socket programming 02 Datagram Sockets 02 Socket programming Networking Basics

Network Programming 1.1 server 1.2 Protocol 1.3 Port

Dr. Osama Mokhtar Network programming Network Programming  involves writing programs that communicate with other programs across a computer network.  Distributed applications: are the applications that have components running on different machines  Server and clients: A server is an application that provides a "service" to various clients who request the service.

Dr. Osama Mokhtar Network programming server ♠There are many client/server scenarios in real life: ♣Bank tellers (server) provide a service for the account owners (client) ♣Waitresses (server) provide a service for customers (client) ♣Travel agents (server) provide a service for people wishing to go on vacation (client)

Dr. Osama Mokhtar Network programming server ♠There are many different strategies for allowing communication between applications. ♣Internet clients to connect to servlets or back-end business systems (or databases). ♣applications to connect to one another using sockets. ♣applications to connect to one another using RMI (remote method invocation). ♣some others

Dr. Osama Mokhtar Network programming Protocol ♣is a standard pattern of exchanging information ♣The simplest example of a protocol is a phone conversation ♣Computer protocols are similar in that a certain amount of "handshaking" goes on to establish a valid connection between two machines

1. JIM dials a phone number 2. MARY says "Hello..." 3. JIM says "Hello..." the conversation goes on for a while JIM says "Goodbye" 6. MARY says "Goodbye" Phone conversation

Dr. Osama Mokhtar Network programming Protocol ♠Computers running on the internet typically use one of the follow ing high-level Application Layer protocols to allow applications to communicate: ♣Hyper Text Transfer Protocol (HTTP) ♣File Transfer Protocol (FTP) ♣TelnetI. ♠This is analogous to having multiple strategies for communicating with someone (in person, by phone, through electronic means, by post office mail etc...).

Dr. Osama Mokhtar Network programming Protocol ♠In a lower Transport Layer of communication, there is a separate protocol which is used to determine how the data is to be transported from one machine to another: ♣Transport Control Protocol (TCP) ♣User Datagram Protocol (UDP). ♠This is analogous to having multiple ways of actually delivering a package to someone ( , Fax, UPS, Fed-Ex etc...).

Dr. Osama Mokhtar Network programming Protocol ♠So, internet communication is built of several layers:

Dr. Osama Mokhtar Network programming Protocol Insert the title of your subtitle Here So, internet communication is built of several layers: When you write JAVA applications that communicate over a network, you are programming in the Application Layer. JAVA allows two types of communication via two main types of Transport Layer protocols

Is a connection-based protocol that provides a reliable flow of data between two computers. provides a point-to-point channel for applications that require reliable communications. slow overhead time of setting up an end-to-end connection. TCP

Guarantees that data sent from one end of the connection actually gets to the other end and in the same order similar to a phone call. Your words come out in the order that you say them. TCP

Is a protocol that sends independent packets of data, called datagrams, from one computer to another. No guarantees about arrival. UDP is not connection-based like TCP. Faster since no overhead of setting up end-to-end connection Many firewalls and routers have been configured NOT TO allow UDP packets. UDP

provides communication that is not guaranteed between the two ends sending packets is like sending a letter through the postal service The order of delivery is not important and not guaranteed Each message is independent of any other  UDP

1.4 port ♣Computer ports provide the input and output interfaces the device needs to communicate with peripherals and computer networks. ♣A port can be either physical or virtual

Dr. Osama Mokhtar Network programming port ♠ Physical Ports ♣Physical network ports allow connecting of cables to computers, routers, modems, and other peripheral devices. Several different types of physical ports available on computer network hardware include: ☺Ethernet ports: Square-shaped connection points for Ethernet cables. ☺USB ports: Rectangular-shaped connection points for USB cables. ☺Serial ports: Round-shaped connection points for serial cables.

Dr. Osama Mokhtar Network programming port ♠ Physical Ports ♣Whereas wired computer networks rely on physical ports and cables, wireless networks do not need them. ♣For example, Wi-Fi networks, utilize channel numbers representin g radio signaling bands.

Dr. Osama Mokhtar Network programming port ♠ Virtual ports ♣Virtual ports are an essential component of Internet Protocol (IP) networking. ♣These ports allow software applications to share hardware resources without interfering with each other. ♣Computers and routers automatically manage network traffic traveling via their virtual ports.

Dr. Osama Mokhtar Network programming port ♠ Virtual ports ♣A computer's address is a 32-bit IP address. ♣The port number is a 16-bit number ranging from 0 to 65,535, with ports restricted by well-known applications like HTTP and FTP.

Thank you