CHAPTER 1 : Network Theory & Java Overview

Slides:



Advertisements
Presentasi serupa
PEMOGRAMAN BERBASIS JARINGAN
Advertisements

Jaringan komputer Pertemuan 4.
JAVA Network Programming. Apa itu JAVA? ● Bahasa pemrograman berorientasi objek yang dikembangkan oleh Sun Microsystems sejak tahun ● Dikembangkan.
Pemrograman Jaringan Socket Programming Aurelio Rahmadian.
Pemrograman Client Server
- PERTEMUAN 1 - PENGANTAR DAN INSTALASI JAVA BAHASA PEMROGRAMAN.
Pemrograman Internet Mobile 7 PHP: Hypertext Preprocessors.
Pengenalan Jaringan Komputer
Virtual Private Network
Lecture 5 Nonblocking I/O and Multiplexing Erick Pranata © Sekolah Tinggi Teknik Surabaya 1.
1 Pertemuan 1 Introduction Matakuliah: sistem Operasi Tahun: 2010.
Network Programming Oleh: Idris Winarno.
Edi Rosadi, SKom Perancangan Intranet dan Internet.
Pertemuan 2 Socket Introduction
4/19/20151 Chapter 3 Oktober /19/20152 Objectives Mendefinisikan lapisan Aplikasi sebagai sumber dan tujuan dari data untuk komunikasi melalui.
3 long-distance dial-up connection 4 Figure 7-9 A WAN using frame relay.
1 Pertemuan 17 Input / Output Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
Testing Implementasi Sistem Oleh :Rifiana Arief, SKom, MMSI
TRANSPORT LAYER PROTOCOLS ( TCP DAN UDP )
UDP Socket Programming
1 Pertemuan 1 Pendahuluan Matakuliah: H0483 – Network Programming Tahun: 2005 Versi: 1.0.
TCP Socket Programmning
Menulis Kolom  Kolom adalah opini atau artikel. Tidak seperti editorial, kolom memiliki byline.  Kolom Biasanya ditulis reguler. Biasanya mingguan atau.
Oleh Agus Prihanto, ST, M.Kom
Simple Object Access Protocol
PEOPLE AND NETWORK MELWIN SYAFRIZAL DAULAY, S.KOM. M.ENG.
Bayu Priyambadha, S.Kom.  Classes, which are the "blueprints" for an object and are the actual code that defines the properties and methods.  Objects,
-Do you have a close friend? Does she/he have a problem? -What do you say when she/he tells her/his problem? - Did you ever come to your friend house?
IP Addressing Laboratorium Teknik Informatika Universitas Gunadarma Stefanus Vlado Adi Kristanto Version 1.4.
Jartel, Sukiswo Sukiswo
ILIMA FITRI AZMI TEACHING MATERIAL DEVELOPMENT
CARA KERJA WEB Rofilde Hasudungan.
Pert. 16. Menyimak lingkungan IS/IT saat ini
Notasi Object Oriented System
UDP Socket Programming
Jaringan Komputer: Protokol dan Model Lapisan OSI
TCP & UDP.
Advanced Socket Programming
VECTOR VECTOR IN PLANE.
Pertemuan 2 Socket Introduction
William Stallings Data and Computer Communications 7th Edition
Kk ilo Associative entity.
NETWORK (PART I) for Class X
Pengantar Teknologi Informasi
Model Referensi OSI 14-Sep-18 Jaringan Komputer.
An assessment of Pedestrian Ways in Unsyiah
1 © 2004, Cisco Systems, Inc. All rights reserved. Module 2 Single-Area OSPF.
How to Set Up AT&T on MS Outlook ATT is a multinational company headquartered in Texas. ATT services are used by many people widely across.
How You Can Make Your Fleet Insurance London Claims Letter.
How Can I Be A Driver of The Month as I Am Working for Uber?
Things You Need to Know Before Running on the Beach.
Don’t Forget to Avail the Timely Offers with Uber
TCP Socket Programmning
UDP Socket Programming
Jaringan Komputer.
HughesNet was founded in 1971 and it is headquartered in Germantown, Maryland. It is a provider of satellite-based communications services. Hughesnet.
Do you want to check your Zoho mail incoming or outgoing logs and unable to check, go through with this article and access Zoho mail incoming or outgoing.
 Zoho Mail offers easy options to migrate data from G Suite or Gmail accounts. All s, contacts, and calendar or other important data can be imported.
Fix problems opening Norton  Fix problems opening Norton This problem can happen after you update Norton. To fix the matter, restart the computer. Fix.
Hardware Merupakan komponen-komponen fisik peralatan yang membentuk suatu sistem komputer, serta peralatan- peralatan lain yang mendukung komputer dalam.
How do I Add or Remove a delegate to my Gmail account? Google launched delegation service 9 years ago for Gmail that allows you to give permission to access.
In this article, you can learn about how to synchronize AOL Mail with third-party applications like Gmail, Outlook, and Window Live Mail, Thunderbird.
INTERROGATIVE ADJECTIVE. DEFINITION FUNCTION EXAMPLE QUESTION.
Website: Website Technologies.
Importance of Web Development Frameworks Frameworks, no doubt have become a crucial aspect of web development. In fact, many find the entire development.
Rank Your Ideas The next step is to rank and compare your three high- potential ideas. Rank each one on the three qualities of feasibility, persuasion,
Draw a picture that shows where the knife, fork, spoon, and napkin are placed in a table setting.
TCP Socket Programming
2. Discussion TASK 1. WORK IN PAIRS Ask your partner. Then, in turn your friend asks you A. what kinds of product are there? B. why do people want to.
Transcript presentasi:

CHAPTER 1 : Network Theory & Java Overview By : Mr. Asyran Zarizi Bin Abdullah

Objective The end of this course you be able to : 1) Understand about network environment 2) Knowing the TCP/IP & OSI layer 3) Understand about security issues in network.

At the end of this course…..

I UNDERSTAND SIR !

BLURR………!!

What is a NETWORK ?

Before that we must know how communication in previous time

Burung merpati

Api asap

“Networking is a concept of connecting two or more computing devices together so that we can share resources like printer, scanner, memory”

How network communicate? Connect, share and transferring data from 1point to another point. LAN – MAN - WAN Wired and Wireless P2P and Client server

Network Communication Using 2 network model. OSI Model TCP/IP Model

OSI Model

OSI MODEL

TCP/IP Model

TCP/IP Model Application layer is responsible for performing encoding, encryption etc. Transport layer provide service of courier. In real life whenever we want to send a packet to another place, we go to courier shop and give them packet with address. Transport layer is the courier for communication. Internet layer determine the path how to route the packet to target destination. In above example once packet is given to courier company, then on wards courier send that packet through some transport ( car, bus or truck). Now driver has to decide which way to go in order to reach destination. So internet layer perform that work.

Protocol and Port Number Represent as a logical/virtual door for incoming and outgoing packet Basically an application or service will bind with 1 port for its usage. There are 65,535 port available in any computers 1 – 1023 are reserved for System Operations 1024 – 65,535 are available for others

Protocol and Port Number Port number: It is unique identification value represents residing position of a server in the computer. It is four digit +ve number. Default port number for major protocol that is useful to know Port 80 Port 21/22 Port 433 Port 23 Port 25

Protocol and Port Name Port Name: It is a valid user defined name to know about client system, the default port name for any local computer is localhost. Default port for major protocol that is useful to know Port 80 = Http Port 21/22 = FTP Port 433 = Https Port 23 = Telnet Port 25 = SMTP

Firewall Firewall can be either software or hardware to filter incoming and outgoing transmission for access. Firewall is a network access control device that is designed to deny all traffic except that which is explicitly allowed.

Internet Border Firewall Internet (Untrusted) Attack Packet Log File Attacker Internet Border Firewall Hardened Server Hardened Client PC Passed Packet (Ingress) Dropped Packet (Ingress) Passed Packet (Egress) Internal Corporate Network (Trusted)

Proxy Proxy Server is a middle man between a client computer and the network (usually internet) which has the function to disguise transmission from client

What is a SOCKET ? Socket is a mechanisms of communication that use to exchange data with program in same machine or different machine

Socket Programming Socket is a IPC (Inter Process Communication) facility for network application. To make socket communicate with other socket, so it need unique address as a identifier. Socket Address contain IP Address and Port Number. Example : 192.168.20.12 : 8080 IPC is a mechanism of exchange data between 1 process to another process, in a same network or different geography area. IP Address Port Number

SOCKET = IP Add + Port No

Socket Operation Socket can do some operation below : Send data Receive data Close connection Listen on input data Connection to remote machine Connect from remote machine on specific port

Network Socket Program A network program can send and receive information/data. General technology that use by network program is Chat Application Multiplayer Games Peer‐to‐peer Application

Socket Element Protocol Local IP (Private IP) Local Port Remote IP Remote Port

IP Protocol Suite

Socket to Socket Communication

Socket Type 2 type of socket that usually use : Socket Local = AF_UNIX Socket Networking = AF_INET Socket Stream = SOCK_STREAM Socket Datagram = SOCK_DGRAM Example : Socket Network Socket Datagram Protocol

JAVA Overview

JAVA Overview JAVA is a programming language created by Sun Microsystem to fully utilized Object Oriented Programming in software development. Currently this language intellectual property (IP) is owned by Oracle It require Java Development Kit (JDK) to be installed before development could be started. As a developer, text editor could be used to form the source code or any IDE that support JAVA can be a very good choice Eclipse Jcreator NetBeans Java support Network programming by certain network library which simplified a lot of development compared to C++.

Overview In Networking application mainly two programs are running one is Client program and another is Server program. In Core java Client program can be design using Socket class and Server program can be design using ServerSocket class. Both Socket and ServerSocket classes are predefined in java.net package

Java Packages Java.net = TCP/IP networking Java.io = I/O Streams & Utilities Java.rmi = Remote Invocation Java.security = Security Policies Java.lang = Threading classes *java.net.ServerSocket = use for Server Connection *java.net.Socekt = use for Client Connection

JAVA API Socket programming use Java API component to develop socket programming application. Java API is a group of library that use for develop programed. J2SE was ready with java.net package that contain classes and interface that provide API (Application Programming Interface) Low level (Socket, ServerSocket, DatagramSocket) High Level (URL, URLConnection)

Connection-Oriented & Connectionless Socket A socket programming construct can make use of either the UDP (User Datagram Protocol) or TCP (Transmission Control Protocol). Sockets that use UDP for transport are known as datagram sockets, while sockets that use TCP are termed stream sockets.

UDP & TCP UDP = User Datagram Protocol , TCP = Transmission Control Protocol.

TCP Sockets Java.net.ServerSocket class Java.net.Socket class Use for server program Local port to listen for initial connection Can be bound to local IP for multi-homed machines Java.net.Socket class Use for client program Combines socket with socket option (timeout, linger, keep alive, no delay)

UDP Sockets Java.net.DatagramSocket class Java makes no distinction between client/server for UDP sockets. Can be bound to both a local port & local IP address

Issues in JAVA language Java Network Programming will exhibit this issues. Some of them are:- Unable to access with low level network device Network security issues Firewall preventing access for your application Proxy may interfere with the inert function of your application

Sample of Java Program

Sample of Java Program