Presentation is loading. Please wait.

Presentation is loading. Please wait.

제8장 네트워킹.

Similar presentations


Presentation on theme: "제8장 네트워킹."— Presentation transcript:

1 제8장 네트워킹

2 서론 네트워크는 협력하는 컴퓨터들의 상호 연결된 시스템 네트워크 용어 네트워크 구성 네트워크 상에서 다른 사람과 통신
네트워크 상의 다른 컴퓨터 사용(자원 공유)

3 네트워크 구성 Ethernets 동작 과정 Xerox PARC에서 개발된 가장 일반적인 LAN 구현
각 컴퓨터는 LAN에 연결된 Ethernet 카드를 갖는다. 컴퓨터는 목적지 주소를 포함한 머리/꼬리 정보와 함께 메시지를 Ethernet에 방송한다. 목적지 주소에 해당하는 Ethernet 카드만 그 메시지를 받는다. 충돌이 발생하면 다시 시도한다.

4 네트워크 구성 LAN 라우터(Router) Router LAN 두 개 혹은 이상의 네트워크를 연결하는 장치
들어오는 메시지를 자동으로 올바른 네트워크에 전달한다. Router LAN

5 네트워크 구성 게이트웨이(Gateway) Internet LAN Gateway

6 인터넷 Internet Internet Protocol(IP) Transport Control Protocol(TCP)
TCP/IP 프로토콜을 사용하는 협력하는 네트워크의 집합 Internet Protocol(IP) 주소 방법에 대한 프로토콜 Transport Control Protocol(TCP) 큰 메시지를 몇 개의 작은 메시지로 나누어 보내고 재결합하는 방식에 대한 프로토콜

7 인터넷 우리 학과의 인터넷 주소 인터넷 상의 각 컴퓨터는 자신의 IP 주소를 갖는다. 하드웨어 무관한 주소
cs.sookmyung.ac.kr : cs1.sookmyung.ac.kr : cc.sookmyung.ac.kr :

8 사용자 사용자 리스트 users rusers -a {host}* 개인 정보
display a list of users on your local host/ network who [am i] rwho display a list of every user on local host. 개인 정보 finger {userId}* display information about a list of users including on a remote host

9 통신 한 번에 한 줄씩 보내기 대화 모두에게 메시지 write userId [tty]
copy its standard input, one line at a time, to the terminal associate with userId 대화 talk userId [tty] talk to a user on the Internet via a split-screen interface. 모두에게 메시지 wall [ fileName ] copy its standard input to the terminals of every user on the local host

10 통신: 예 %write chang Messge from TalkDaemon@cs..
message to chang ^D %talk Messge from talk: connection requested by talk: respond with: talk %talk

11 자료 분산 파일 복사 ftp -n [ hostName ] manipulate files and directories on both your local host and a remote host ftp cc Connected .. Name .. Password … ftp>

12 자료 분산

13 자료 분산 원격 로그인 rlogin -ec [-l userId] hostName
login into the remost host hostName 원격 연결 telnet [host [port] ] establishes a two-way connection with a remote port.

14 분산 처리 원격 명령어 실행 rsh [-l userId] hostname [command] remote execution
create a remote shell on the host hostName to execute command access control list hostnames in ~/.rhosts of the remote host

15 분산처리: 예 % rlogin cs % rlogin -l chang cs % rsh cs % rsh cs ls
% telnet cs

16 WWW Mosaic Netscape UIUC에서 시작된 첫 번째 웹 브라우저 인터넷에서 이용 가능
디스플레이를 위해 X-윈도우 필요 PC에서도 이용 가능

17 X-윈도우

18 X-윈도우 클라이언트/서버(Client/Server) 기반 윈도우 시스템 네트워크 기반 윈도우 시스템 X-서버와 X-클라이언트
다른 호스트에 위치할 수 있다.

19 X-윈도우 동작 과정 Display X applications X client X-window Terminal Screen
X server X client Mouse Keyboard X client

20 X-윈도우 동작 과정 디스플레이(Display) X-서버(X-server) 터미널 스크린, 키보드, 마우스로 구성
디스플레이의 모든 입력과 출력을 처리한다. 하나의 디스플레이에 하나의 X-서버 보통 X-window는 X server를 의미함.

21 X-윈도우 동작 과정 X 클라이언트 디스플레이의 사용자와 대화하는 X 응용 프로그램 X 클라이언트 의 예
xterm, xclock, netscape, …. 출력을 X-서버에 요청 X-서버로부터 입력을 받음 마우스 클릭, 윈도우 이동, 키보드 누름, …

22 X 응용 X 응용이란 ? 어디에 있나 ? X-윈도우 상에서 수행될 수 있는 응용 프로그램
xterm, hanterm, xcalc, xfig, ghostview, xfm, … 어디에 있나 ? /usr/X11R6/bin on Linux /usr/openwin/bin on Solaris

23 X-윈도우 상의 디스플레이 디스플레이 설정 원격 X-서버에 디스플레이 setenv DISPLAY hostname:0
-display 옵션을 이용하여 X-응용 실행 xclock -display hostname:0

24 X-윈도우 접근 제어 접근 제어 X-서버에 접근 제어 xhost +hostname

25 실습: 네트워킹 hostname users/who finger write ftp telnet 호스트 이름 사용자들 보기
사용자 정보 write 메시지 보내기 ftp 파일 다운로드/업로드 telnet 원격 로그인

26 실습: X-윈도우 접근 제어 디스플레이 설정 원격 X-서버에 디스플레이 X-서버에 접근 제어 xhost +hostname
setenv DISPLAY hostname:0 setenv DISPLAY :0 원격 X-서버에 디스플레이 디스플레이 설정하고 X-응용을 실행하거나 -display 옵션을 이용하여 X-응용 실행 xclock -display hostname:0


Download ppt "제8장 네트워킹."

Similar presentations


Ads by Google