What is the Internet?

computer network 2013. 9. 5. 18:34

What is the Internet?


1. Nuts and bolts of the Internet ( the basic hardware and software components that make up the Internet )

2. The Internet in terms of a networking infrastructure that provides services to distributed applications


A nuts and bolts Description

hosts or end systems : devices that are being hooked up to the Internet

Each systems are connected together by a network of communication links and packet switches

packets : 하나의 end system 이 다른 end system으로 보낼 데이터가 있을 때, 보내는 end system은 data를 쪼개고 header bytes를 각각의 segment에 붙여서 보내게 되는데, 이 결과에 의해 쪼개진 information package를 packet이라 한다.

Packet switch : 최종 목적지로 packet을 보내준다. 대표적으로 router, link-layer switch 가 있다.

router : 주로 network core에 사용됨

Link-layer switch : 주로 access network에 사용됨

route, path : 보내는 end system에서 받는 end system까지 가로지르는 communication link와 packet switch의 sequence


transportation network    VS    computer network

factory (sending end system)

cargo = information

trucks = packets

highways and roads = communication links

intersection = packet switches

destination warehouse (receiving end system) 


Internet Service Providers(ISPs) : end system은 IPS를 통해서 Internet에 접근을 하게 된다.

각각의 ISP는 그자체로 packet switches, communication links의 network이다.

Internet is all about connecting end system to each other


protocol : Internet내에서 정보를 전달하고 수신하는 것을 control하는 것


A services Description

인터넷은 다음과 같이 묘사되어질 수도 있다.

=> An infrastructure that provides services to applications (app에게 서비스를 제공하는 기반 구조)

Application
: electronic mail, Web surfing, social networks, instant messaging, Voice-over-IP (VoIP), video streaming, distributed games, peer-to-peer (P2P) file sharing, television over the Internet, remote login ...

이러한 application은
distributed applications으로 언급되어지는데 이는 applications이 데이터를 서로 주고받는 다수의 end systems과 연관 되어 있기 때문이다. 

어떻게 한 end system에서 작동하는 프로그램이 다른 end system에서 작동하는 프로그램에게 데이타를 전달하도록 Internet에 지시 하는 걸까?

Internet에 붙어있는 end system은 Application Programming Interface(API)를 제공한다.
Internet API는 전송하는 program이 지켜야하는 일종의 룰으로 그래야 Internet이 목적지로 데이터를 전달한다.

예로 Postal service API와 비교하면 이해가 쉬울거 같다.

What is a Protocol

A Protocol defines the format and the order of messages exchanged between tho or more communicating entities, as well as the actions taken on the transmission and/or receipt of a message or other event

설정

트랙백

댓글

Raspbian 설치 및 설정

Raspberry PI 2013. 8. 8. 20:00

Raspbian 설정

1. Image다운로드 및 Image writing

  - raspbian과 이미지 writing download link (http://www.raspberrypi.org/downloadshttps://launchpad.net/win32-image-writer/0.6/0.6/+download/win32diskimager-binary.zip)

 

2. booting 후 Raspi-Config화면

  - Expand Filesystem (Root partition resize하는 기능)

raspbian "wheezy" 이미지 파일이 sd카드에 들어갈때 sd카드 메모리가 2기가 이상이라도 2기가에 맞게 설정된다고 한다. 나머지 메모리 공간을 사용하기 위해서는 설정후 reboot하도록 한다.

  - Enable Camera (Pi camera이므로 USB camera 사용시 관련 X)

  - Putty로 headless이용시 Advanced Options -> SSH server enable

  - Internationalisation Option -> change locale ->en_US.UTF-8

  - Reboot

 * 이후에 설정을 변경 하고 싶을 경우 -> sudo raspi-config


3. network설정 고정 ip기준

>> sudo nano /etc/network/interfaces

아래 내용 nano editor에 입력

auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx
netmask xxx.xxx.xxx.xxx
gateway xxx.xxx.xxx.xxx

>> Ctrl + x  -> y -> enter

>> sudo /etc/init.d/networking restart ( network 설정 재시작 )

>> ping -c 1 www.naver.com ( ping확인 )


4. update 와 upgrade (network설정 이후)

>> sudo apt-get update (업데이트 되어 있는 라이브러리와 프로그램을 다운)

>> sudo apt-get upgrade (다운 받은 라이브러리와 프로그램 설정 및 설치)

'Raspberry PI' 카테고리의 다른 글

Raspberry Pi Webcam server  (0) 2013.07.28
Raspberry network setting (고정ip)  (0) 2013.06.28

설정

트랙백

댓글

Raspberry Pi Webcam server

Raspberry PI 2013. 7. 28. 03:59

'Raspberry PI' 카테고리의 다른 글

Raspbian 설치 및 설정  (0) 2013.08.08
Raspberry network setting (고정ip)  (0) 2013.06.28

설정

트랙백

댓글

Definitions Axioms Theorems

카테고리 없음 2013. 7. 3. 09:14

Definitions Axioms Theorems



Definitions establish the logic of probability theory


axioms are facts that we accept without proof


Theorems are consequences that follow logically from definitions and axioms


Example.


Definition (정의)

A probability measure P[*] is a function that maps events in the sample space to real numbers 


Axiom (공리)

Axiom 1.  For any event A, P[A] >= 0
Axiom 2.  P[S] = 1
Axiom 3.  For any countable collection A1, A2, ... of mutually exclusive events


Theorem (정리)

De Morgan's law relates all three basic operations :




Reference
- Probability and stochastic processes by Yates and Goodman



설정

트랙백

댓글

Raspberry network setting (고정ip)

Raspberry PI 2013. 6. 28. 03:11

Raspberry 유선 Network 설정


라즈베리 유선 Network 설정을 하기 위해서 우선 LXTerminal로 들어간다.

다음과 같이 명령어를 치게 되면, nano text editor를 이용하여 interfaces파일을 수정할 수 있게 된다. 
(interfaces 파일은 root 사용자만 편집이 가능하다. 그리고 명령어 앞에 붙는 sudo는 window의 관리자권한으로 실행 과 같은 의미라고 생각하면 될거 같다.)

sudo nano /etc/network/interfaces

editor내에서 interfaces내용을 다음과 같이 수정하도록 한다.

auto eth0
iface eth0 inet static    
    address [ip 주소 입력]
    netmask [네트워크 서브넷 마스크 입력]
    gateway [게이트 웨이 입력]

둘째 줄에 static은 고정아이피를 사용할 때 사용되고, 자동으로 잡아주는 유동아이피 사용시 static 대신에 dhcp(Dynamic Host Configuration Protocol)를 써준다. 이 때 당연히 address, netmask, gateway를 써줄 필요는 없다.


설정을 저장하기 위해 Ctrl + o를 누르고, 종료 단축키 Ctrl + x로 editor를 빠져나간다.

새로 저장된 네트워크 세팅을 사용하기 위하여 다음과 같이 입력한다.

sudo /etc/init.d/networking restart

이제 Raspberry Pi가 어떤 DNS 서버를 사용할지를 정해주어야 한다.

sudo nano /etc/resolv.conf

*DNS(Domain Name Service) 서버는 우리가 흔히 쓰는 www.naver.com과 같이 사람들이 직관적으로 알 수 있는 문자로된 주소(도메인주소)를 컴퓨터가 알아먹을 수 있는 ip주소로 변경해 줄 수 있도록 서비스를 제공하는 서버라고 할 수 있다. 


nano text editor에서 원하는 DNS서버의 주소를 다음의 예시와 같이 써주도록 한다.

nameserver xxx.xxx.xxx.xxx 
nameserver xxx.xxx.xxx.xxx

ctrl + o , ctrl + x로 editor를 나간뒤, 다시 새로운 네트워크 세팅을 적용한다.

마지막으로 Ping test를 통해 제대로 packet이 전송이 되고 있는지 확인한다.

ping -c 1 www.naver.com




'Raspberry PI' 카테고리의 다른 글

Raspbian 설치 및 설정  (0) 2013.08.08
Raspberry Pi Webcam server  (0) 2013.07.28

설정

트랙백

댓글