학교공부/컴퓨터네트워크

[컴퓨터네트워크] 기말고사 정리본 (1)

yunmap 2017. 12. 17. 12:25

Internet Protocol Suite : package of protocol for communication on internet

Application - Transport - Internet - Link

IP : global, connection-less, best effort, scalable (hierarchical routing. hourglass model)

problem : packet loss, duplicate packet, out of order packet, packet experience large delay

Fragmentaion, Re-assembly (connecting networks with different MTU-Maximum transmission unit)

Fragmentaion은 phy layer에 의해 MTU가 limit이 있기 때문에 필요하다. source는 MTU를 처음에 알 수 없기 때문에 route가 dynamic 하게 된다.

fragment offset : Byte의 index. 0 - 512 - 1024 (이런식으로 증가. 만약 512가 MTU면)

fragment는 self-contained IP datagram이고, reassembly는 destination에서만 이루어진다.

fragment 중 하나라도 잃어버리면 전체를 다 없애버린다. (IP는 그냥 최선을 다할 뿐.)

source에선 fragmentation을 최대한 피하자.

Host addressing : IP address(subnetting, Classless InterDomain Routing), ARP(address resolution protocol), DNS (domain name resolution)

Addressing scheme

efficiency : should use as many available addresses as possible

uniqueness : should be able to uniquely resolve hosts

ease of routing : should be easy to find a route to intended address on the Internet

IP = hierarchical : subnet address, host address

subnet address : identifies a group of host, determines how many host can exist in a subnet, 이게 같으면 같은 subnet안에 있는 host들이다.

host address : host를 identify 한다.

같은 subnet 내에서는 router를 거칠 필요가 없다. (그냥 디렉트로 보내버린다.)

따라서 subnet이란 physical network served by one router

IP addressing의 goal : make routing table brief, easy allocation of IP addresses

그리고, IP address는 assigned in hierarchical and contiguous manner.

ARP는 MAC address를 얻기 위해 필요하다. IP address는 network, MAC address는 data link.

packet을 host에 전송하기 위해선 MAC address of the next hop이 필요하다. (router와 host의 addr)

ARP request를 해당 ip addr을 담아 local LAN에 broadcast 하고, 그 ip addr인 호스트가 자신의 amc address를 ARP reply를 통해 답장한다. 

이 reply는 ARP cache에 저장되었다가 timed out 된다.

ARP request 위한 broadcast address : 0xFFFFFFFFFFFF (=0xFFFF)

ARP reply : 처음에 request 보낸 host의 주소가 mac hdr에 들어가고, reply에 내 mac addr이 들어간다.

 

ICMP : internet control message protocol

Tunneling : encapsulate an IP packet into an IP packet (전송하는 라우터에서 encapsulate를 하고 받는 라우터에서 decapsulate를 한다.)

Mobile IP

home network : home의 network

visited network : mobile이 현재 있는 곳의 network

permanent address : mobile의 home에서의 address

care-of-address : address in visited network

home agent, foreign agent

correspondent : wants to communicate with mobile

 

VPN : virtual private network

회사 네트워크에 출장 도중 접속해야 하는데 회사 네트워크가 private network라서 회사 밖에선 접속을 할 수 없는 경우에 VPN을 생성한다. VPN을 통해 전송되는 packet은 encrypted 되어 있다.