반응형 분류 전체보기176 [Network]ICMPv6 1. 역할 ICMPv6를 간단히 설명하자면 IPv6에서 쓰이는 보조 프로토콜입니다. 사진을 보면 IPv4를 살펴보면 ICMP,IGMP,ARP와 같은 3가지 보조 프로토콜이 있었습니다. 하지만 IPv6에서는 이 기능을 ICMPv6가 모두 맡아 처리합니다. ipv4에서 3가지로 나뉘어졌던 보조 프로토콜을 ipv6에서는 icmpv6 하나로 통합했는데 icmpv6에서 type을 나눠서 NDP, MLD를 사용합니다. NDP는 neighbor discovery protocol의 약자로 ipv4의 arp의 업그레이드된 느낌이라 생각하시면 되고, MLD는 IGMP에서 쓸모없는 기능들을 없애서 나온 업그레이드 버전이라고 생각하시면 됩니다. •ICMPv6는 IPv6에서 쓰기 위해 기존 버전을 업그레이드한 버전이다. •IC.. 2024. 3. 12. [C Network Programming] Dijkstra's Routing Algorithm C code #include #include #define STRANGER 9999 #define MAX 10 #pragma warning (disable:4996) void dijkstra(int G[MAX][MAX], int n, int startnode); int main() { int G[MAX][MAX], i, j, n, u; printf("\nEnter the number of nodes : "); scanf("%d", &n); printf("\nEnter the cost matrix :\n"); for (i = 0; i < n; i++) for (j = 0; j < n; j++) scanf("%d", &G[i][j]); printf("\nEnter the starting node:"); scanf("%d.. 2024. 3. 11. [C Network Programming] Stop&Wait ARQ Protocol /*************************************************************************************/ /* C program to implement stop and wait protocol*/ #include #include #include #include #include #define TIMEOUT 5 #define MAX_SEQ 1 #define TOT_PACKETS 8 #define inc(k) if(k TIMEOUT SENDER : Resending Frame RECIEVER : Acknowledgement Resent SENDER : Info = 2 Seq No = 1 RECIEVER :Packet 2 recieved , Ack Sent S.. 2024. 3. 10. [C Network Programming] Distance Vector Routing Algorithm C code //Node4 = Boston //Which node is not neighbor cost = 9999 #include #pragma warning (disable:4996) struct node { unsigned dist[20]; unsigned from[20]; }rt[10]; int main() { int dmat[20][20]; int n, i, j, k, count = 0; printf("\nEnter the number of nodes : "); scanf("%d", &n); printf("\nEnter the cost matrix :\n"); for (i = 0; i < n; i++) for (j = 0; j < n; j++) { scanf("%d", &dmat[i][j]); dmat[i].. 2024. 3. 10. [리눅스마스터 2급 실기] 2401 A형 가답안 맞춰보실분 오른쪽에 써진 문제 번호들은 애매한 번호들이고, 나머진 맞았다고 90% 확신 합격 b 2024. 3. 9. [Ubuntu OpenCV] VM ware ubuntu에서 웹캠 연결 후 OpenCV 사용해서 Qt GUI 구성하기 opencv 먼저 설치하고 $ pwd /home/ubuntu $ mkdir openCV && cd openCV $ wget -O opencv.zip https://github.com/opencv/opencv/archive/4.5.2.zip $ wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/4.5.2.zip $ unzip opencv.zip $ unzip opencv_contrib.zip $ cd opencv-4.5.2 $ mkdir build && cd build $ pwd /home/ubuntu/openCV/opencv-4.5.2/build $ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CM.. 2024. 3. 8. [Linux] Ubuntu VMware CLI환경으로 동작시키기 graphic을 띄우는걸 x윈도, runlevel이라고도 한다. $ init 3 를 쳐주면 x 윈도우가 꺼진다. ctrl+alt+F1, ctrl+alt+F2, ctrl+alt+F3 ....를 누르면 새로운 터미널을 열어서 사용할 수 있음. $ sudo init 5 쳐주면 다시 그래픽이 나온다. 2024. 3. 4. [C] 중위연산식 후위연산식으로 바꾸기 2 [C] 중위연산식 후위연산식으로 바꾸기 1 오랜만에 C 연습 좀 해봅싀당 중위 표기법과 후위 표기법 1. 개념 1-1. 중위 표기법이란? 1-2. 후위 표기법이란? 2. 중위 표기식을 후위 표기식으로 바꾸는 법 2-1. 괄호가 없는 경우 2-2. 괄호가 있는 program-developers-story.tistory.com 이번에는 괄호까지 포함해서 동작하는 후위 연산식 변환 프로그램 작성해볼게유 /* 괄호 포함 중위 연산자 입력받아서 후위 연산자로 출력해주는 프로그램 */ #include #include #define STACKSIZE 10 int top = -1; bool isEmpty(void) { return top == -1; } bool isFull(void) { return top == ST.. 2024. 3. 3. 이전 1 2 3 4 5 6 ··· 22 다음 반응형