Computer Network.ppt

33,647 views

Published on

4 Comments
12 Likes
Statistics
Notes
No Downloads
Views
Total views
33,647
On SlideShare
0
From Embeds
0
Number of Embeds
64
Actions
Shares
0
Downloads
1,193
Comments
4
Likes
12
Embeds 0
No embeds

No notes for slide

Computer Network.ppt

  1. 1. Computer Network Sritrusta Sukaridhoto
  2. 2. Why Computer Network ??? <ul><li>Stand alone Computer …. </li></ul><ul><li>FOR WHAT ??? </li></ul>
  3. 3. Something interesting from Computer Network ??? <ul><li>Easiness </li></ul><ul><li>No distance </li></ul><ul><li>Mobility </li></ul><ul><li>Efficient </li></ul>
  4. 4. Network Administrator,… <ul><li>Advantages </li></ul><ul><ul><li>Good salary </li></ul></ul><ul><ul><li>Control other peoples </li></ul></ul><ul><ul><li>Faster than others </li></ul></ul><ul><ul><li>Relax </li></ul></ul><ul><li>Disadvantages </li></ul><ul><ul><li>ERROR , then people want to kill YOU !!! </li></ul></ul>
  5. 5. Study… <ul><li>Basic network theory </li></ul><ul><ul><li>OSI Layer </li></ul></ul><ul><ul><li>Network devices </li></ul></ul><ul><ul><li>Routing </li></ul></ul><ul><ul><li>Network security </li></ul></ul><ul><ul><li>Programming </li></ul></ul>
  6. 6. Study… <ul><li>Network Skill </li></ul><ul><ul><li>Operating system </li></ul></ul><ul><ul><li>Server – Client </li></ul></ul><ul><ul><li>Router, Switch, Cabling, etc (network devices) </li></ul></ul><ul><ul><li>Hacking not Cracking </li></ul></ul><ul><ul><li>Certificate </li></ul></ul><ul><li>Experience </li></ul><ul><ul><li>Time can answer ??? </li></ul></ul>
  7. 7. Open System Interconnection (OSI) <ul><li>A model defines the stages or tasks of a protocol as it prepares to send data </li></ul><ul><ul><li>Open meaning standards available to all. </li></ul></ul><ul><li>The model is devided into seven distinct layers </li></ul><ul><li>Each subsequent layer should perform a well-defined function and the layer boundaries are designed to minimize the information flow across the interfaces </li></ul>
  8. 8. OSI Model Layers <ul><li>Application Layer </li></ul><ul><ul><li>Provides a user interface (examples: HTTP, SMTP) </li></ul></ul><ul><ul><li>Includes file, print, database, app. Services </li></ul></ul><ul><li>Presentation Layer </li></ul><ul><ul><li>Presents the data (example: JPEG) </li></ul></ul><ul><ul><li>Includes encryption, compression and translation services </li></ul></ul><ul><li>Session Layer </li></ul><ul><ul><li>Keeps different applications data separate </li></ul></ul>
  9. 9. OSI Model Layers <ul><li>Transport Layer </li></ul><ul><ul><li>Provides reliable delivery </li></ul></ul><ul><ul><li>Performs error detection </li></ul></ul><ul><ul><li>Includes end to end connection </li></ul></ul><ul><li>Network Layer </li></ul><ul><ul><li>Provides logical addressing </li></ul></ul><ul><ul><li>Routing layer </li></ul></ul>
  10. 10. OSI Model Layers <ul><li>Data Link Layer </li></ul><ul><ul><li>Combines packets into bytes then into frames </li></ul></ul><ul><ul><li>Performs error detection (not correction) </li></ul></ul><ul><ul><li>Provides Media access addressing (point-to-point) </li></ul></ul><ul><ul><li>Media Access Control and Data Link Control </li></ul></ul><ul><li>Physical Layer </li></ul><ul><ul><li>Moves bits between devices </li></ul></ul>
  11. 11. Keys Layers of the OSI Model
  12. 12. OSI Model and Protocols
  13. 13. Network Devices <ul><li>Wire </li></ul><ul><li>Wireless </li></ul>
  14. 14. Router, Switch, Hub, Modem, …
  15. 15. TCP/IP
  16. 16. TCP/IP
  17. 17. Network Security <ul><li>Firewall </li></ul>
  18. 18. Operating Systems
  19. 20. Hacking NOT cracking
  20. 21. Programming <ul><li>/* </li></ul><ul><li>** server.c -- a stream socket server demo </li></ul><ul><li>*/ </li></ul><ul><li>#include <stdio.h> </li></ul><ul><li>#include <stdlib.h> </li></ul><ul><li>#include <unistd.h> </li></ul><ul><li>#include <errno.h> </li></ul><ul><li>#include <string.h> </li></ul><ul><li>#include <sys/types.h> </li></ul><ul><li>#include <sys/socket.h> </li></ul><ul><li>#include <netinet/in.h> </li></ul><ul><li>#include <arpa/inet.h> </li></ul><ul><li>#include <sys/wait.h> </li></ul><ul><li>#include <signal.h> </li></ul><ul><li>#define MYPORT 3490 // the port users will be connecting to </li></ul><ul><li>#define BACKLOG 10 // how many pending connections queue will hold </li></ul><ul><li>void sigchld_handler(int s) </li></ul><ul><li>{ </li></ul><ul><li>while(wait(NULL) > 0); </li></ul><ul><li>} </li></ul><ul><li>int main(void) </li></ul><ul><li>{ </li></ul><ul><li>int sockfd, new_fd; // listen on sock_fd, new connection on new_fd </li></ul><ul><li>struct sockaddr_in my_addr; // my address information </li></ul><ul><li>struct sockaddr_in their_addr; // connector's address information </li></ul><ul><li>int sin_size; </li></ul><ul><li>struct sigaction sa; </li></ul><ul><li>int yes=1; </li></ul><ul><li>if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) { </li></ul><ul><li>perror(&quot;socket&quot;); </li></ul><ul><li>exit(1); </li></ul><ul><li>} </li></ul><ul><li>if (setsockopt(sockfd,SOL_SOCKET,SO_REUSEADDR,&yes,sizeof(int)) == -1) { </li></ul><ul><li>perror(&quot;setsockopt&quot;); </li></ul><ul><li>exit(1); </li></ul><ul><li>} </li></ul><ul><li>my_addr.sin_family = AF_INET; // host byte order </li></ul><ul><li>my_addr.sin_port = htons(MYPORT); // short, network byte order </li></ul><ul><li>my_addr.sin_addr.s_addr = INADDR_ANY; // automatically fill with my IP </li></ul><ul><li>memset(&(my_addr.sin_zero), '', 8); // zero the rest of the struct </li></ul><ul><li>if (bind(sockfd, (struct sockaddr *)&my_addr, sizeof(struct sockaddr)) </li></ul><ul><li>== -1) { </li></ul><ul><li>perror(&quot;bind&quot;); </li></ul><ul><li>exit(1); </li></ul><ul><li>} </li></ul><ul><li>if (listen(sockfd, BACKLOG) == -1) { </li></ul><ul><li>perror(&quot;listen&quot;); </li></ul><ul><li>exit(1); </li></ul><ul><li>} </li></ul><ul><li>sa.sa_handler = sigchld_handler; // reap all dead processes </li></ul><ul><li>sigemptyset(&sa.sa_mask); </li></ul><ul><li>sa.sa_flags = SA_RESTART; </li></ul><ul><li>if (sigaction(SIGCHLD, &sa, NULL) == -1) { </li></ul><ul><li>perror(&quot;sigaction&quot;); </li></ul><ul><li>exit(1); </li></ul><ul><li>} </li></ul><ul><li>while(1) { // main accept() loop </li></ul><ul><li>sin_size = sizeof(struct sockaddr_in); </li></ul><ul><li>if ((new_fd = accept(sockfd, (struct sockaddr *)&their_addr, </li></ul><ul><li>&sin_size)) == -1) { </li></ul><ul><li>perror(&quot;accept&quot;); </li></ul><ul><li>continue; </li></ul><ul><li>} </li></ul><ul><li>printf(&quot;server: got connection from %s &quot;, </li></ul><ul><li>inet_ntoa(their_addr.sin_addr)); </li></ul><ul><li>if (!fork()) { // this is the child process </li></ul><ul><li>close(sockfd); // child doesn't need the listener </li></ul><ul><li>if (send(new_fd, &quot;Hello, world! &quot;, 14, 0) == -1) </li></ul><ul><li>perror(&quot;send&quot;); </li></ul><ul><li>close(new_fd); </li></ul><ul><li>exit(0); </li></ul><ul><li>} </li></ul><ul><li>close(new_fd); // parent doesn't need this </li></ul><ul><li>} </li></ul><ul><li>return 0; </li></ul><ul><li>} </li></ul>
  21. 22. Server - Client
  22. 23. Certificate
  23. 24. Network topics <ul><li>IPv6 </li></ul><ul><li>Mobile-IP </li></ul><ul><li>MPLS </li></ul><ul><li>Network Security, VPN, IPSec </li></ul><ul><li>Quality of Service </li></ul><ul><li>VoIP </li></ul><ul><li>Wireless </li></ul><ul><li>Web-base application </li></ul><ul><li>Encryption Decryption </li></ul><ul><li>Streaming </li></ul>
  24. 25. EEPIS Computer Network <ul><li>Lab Jaringan Komputer </li></ul><ul><ul><li>Ka. Lab: Sritrusta Sukaridhoto </li></ul></ul><ul><ul><li>Gedung D4 lt. 3 </li></ul></ul><ul><li>UPT Jaringan Komputer </li></ul><ul><ul><li>Ka. UPT: Dadet P </li></ul></ul><ul><ul><li>Network Admin: Sukaridhoto, Hendri, Firman, Reza </li></ul></ul><ul><ul><li>Gedung IT lt. 2 </li></ul></ul>
  25. 26. <ul><li>Thank You… </li></ul>

×