Computer Network

Sritrusta Sukaridhoto

Why Computer Network ??? 

Stand alone Computer «.

FOR WHAT ???

Computer Network ± Sritrusta Sukaridhoto

Something interesting from Computer Network ??? Easiness  No distance  Mobility  Efficient  Computer Network ± Sritrusta Sukaridhoto .

Network Administrator. then people want to kill YOU !!! Computer Network ± Sritrusta Sukaridhoto .«  Advantages Good salary Control other peoples Faster than others Relax  Disadvantages ERROR.

Study«  Basic network theory OSI Layer Network devices Routing Network security Programming Computer Network ± Sritrusta Sukaridhoto .

Switch. Cabling.Study«  Network Skill Operating system Server ± Client Router. etc (network devices) Hacking not Cracking Certificate  Experience Time can answer ??? Computer Network ± Sritrusta Sukaridhoto .

Open System Interconnection (OSI)  A model defines the stages or tasks of a protocol as it prepares to send data Open meaning standards available to all.   The model is devided into seven distinct layers Each subsequent layer should perform a well-defined function and the layer boundaries are designed to minimize the information flow across the interfaces Computer Network ± Sritrusta Sukaridhoto .

app. print. SMTP) Includes file. database. Services  Presentation Layer Presents the data (example: JPEG) Includes encryption. compression and translation services  Session Layer Keeps different applications data separate Computer Network ± Sritrusta Sukaridhoto .OSI Model Layers  Application Layer Provides a user interface (examples: HTTP.

OSI Model Layers  Transport Layer Provides reliable delivery Performs error detection Includes end to end connection  Network Layer Provides logical addressing Routing layer Computer Network ± Sritrusta Sukaridhoto .

OSI Model Layers  Data Link Layer Combines packets into bytes then into frames Performs error detection (not correction) Provides Media access addressing (point-topoint) Media Access Control and Data Link Control  Physical Layer Moves bits between devices Computer Network ± Sritrusta Sukaridhoto .

Keys Layers of the OSI Model Computer Network ± Sritrusta Sukaridhoto .

OSI Model and Protocols Computer Network ± Sritrusta Sukaridhoto .

Network Devices  Wire  Wireless Computer Network ± Sritrusta Sukaridhoto .

Modem.Router. Switch. « Computer Network ± Sritrusta Sukaridhoto . Hub.

TCP/IP Computer Network ± Sritrusta Sukaridhoto .

TCP/IP Computer Network ± Sritrusta Sukaridhoto .

Network Security  Firewall Computer Network ± Sritrusta Sukaridhoto .

Operating Systems Computer Network ± Sritrusta Sukaridhoto .

Computer Network ± Sritrusta Sukaridhoto .

Hacking NOT cracking Computer Network ± Sritrusta Sukaridhoto .

if ((sockfd = socket(AF_INET. (struct sockaddr *)&their_addr. &sa. 8). } if (listen(sockfd.&yes. exit(1).s_addr = INADDR_ANY. // automatically fill with my IP memset(&(my_addr. if (sigaction(SIGCHLD. world!\n". exit(1). } sa.SO_REUSEADDR. network byte order my_addr. &sin_size)) == -1) { perror("accept"). inet_ntoa(their_addr. // connector's address information int sin_size. new_fd.h> #include <arpa/inet.h> #include <sys/wait. close(new_fd). } printf("server: got connection from %s\n". } close(new_fd).sin_port = htons(MYPORT).h> #include <sys/types.a stream socket server demo */ #include <stdio.h> #include <stdlib. (struct sockaddr *)&my_addr. // my address information struct sockaddr_in their_addr.h> #include <unistd. // listen on sock_fd. // host byte order my_addr. exit(1). SOCK_STREAM. // parent doesn't need this } return 0.sin_addr)). '\0'. // child doesn't need the listener if (send(new_fd. sizeof(struct sockaddr)) == -1) { perror("bind"). sa. 14.h> #include <signal.sa_handler = sigchld_handler. BACKLOG) == -1) { perror("listen"). Computer Network ± Sritrusta Sukaridhoto .SOL_SOCKET.sin_zero).h> #include <string. int yes=1. } Programming /* ** server. if ((new_fd = accept(sockfd. exit(1). } while(1) { // main accept() loop sin_size = sizeof(struct sockaddr_in). new connection on new_fd struct sockaddr_in my_addr.h> #include <sys/socket. // reap all dead processes sigemptyset(&sa.sizeof(int)) == -1) { perror("setsockopt").h> #define MYPORT 3490 // the port users will be connecting to #define BACKLOG 10 // how many pending connections queue will hold void sigchld_handler(int s) { while(wait(NULL) > 0).sa_flags = SA_RESTART. 0)) == -1) { perror("socket").} if (setsockopt(sockfd. if (!fork()) { // this is the child process close(sockfd).c -. } int main(void) { int sockfd.sin_family = AF_INET. exit(1).h> #include <errno. // short.h> #include <netinet/in.sa_mask). exit(0).sin_addr. } my_addr. continue. struct sigaction sa. NULL) == -1) { perror("sigaction"). 0) == -1) perror("send"). "Hello. // zero the rest of the struct if (bind(sockfd.

Server .Client Computer Network ± Sritrusta Sukaridhoto .

Certificate Computer Network ± Sritrusta Sukaridhoto .

IPSec Quality of Service VoIP Wireless Web-base application Encryption Decryption Streaming Computer Network ± Sritrusta Sukaridhoto . VPN.Network topics           IPv6 Mobile-IP MPLS Network Security.

2 Computer Network ± Sritrusta Sukaridhoto . Firman. UPT: Dadet P Network Admin: Sukaridhoto. Reza Gedung IT lt. 3  UPT Jaringan Komputer Ka. Lab: Sritrusta Sukaridhoto Gedung D4 lt. Hendri.EEPIS Computer Network  Lab Jaringan Komputer Ka.

Thank You« Computer Network ± Sritrusta Sukaridhoto .

Master your semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master your semester with Scribd & The New York Times

Cancel anytime.