DUAL
Metric
- dst network까지 가는 비용을 적은거
Successor
- 해당경로상에 있는 나랑 인접한 라우터(next hop)
FD(Feasible Dist)
- Successor로 가는 경로(가능경로, 가는비용을 부르기도 함.)
Feasible Successor
- 대상까지 가는 비용이 가장적은 곳
RD
- FD보다 작기 때문에 Feasible Successor 로 정함
분산 부하
• 다중 경로의 FD와 메트릭이 동일할 경우 라우터는 두 경로를 모두 사용한다.
• 단 Feasible successor에 대해서만 제공한다.
• Variance 값을 이용 조정 가능하다.
- FD*variance > Feasible success's FD
Serial interface 확인 및 조절
show interface [interface명]
ex) show int s0/0/0
bandwidth [##]
ex) bandwidth 512
- kbps 단위
delay [##]
ex) delay 1999
- 십만분에 1초단위, 화면 출력은 백만분에 1초이므로 주의한다.
실습
R1
en
conf t
hostname R1
no ip domain-lookup
int gig0/0
ip add 1.1.1.1 255.255.255.0
no shut
int s0/0/0
ip add 12.1.1.1 255.255.255.0
no shut
int s0/0/1
ip add 41.1.1.1 255.255.255.0
no shut
exit
router eigrp 100
no auto-summary
network 1.1.1.1 0.0.0.0
network 12.1.1.1 0.0.0.0
network 41.1.1.1 0.0.0.0
passive-interface g0/0
exit
exit
copy running-config startup-config
R2
en
conf t
hostname R2
no ip domain-lookup
int s0/0/0
ip add 23.1.1.2 255.255.255.0
no shut
int s0/0/1
ip add 12.1.1.2 255.255.255.0
no shut
exit
router eigrp 100
no auto-summary
network 23.1.1.2 0.0.0.0
network 12.1.1.2 0.0.0.0
exit
exit
copy running-config startup-config
R3
en
conf t
hostname R3
no ip domain-lookup
int gig0/0
ip add 3.3.3.1 255.255.255.0
no shut
int s0/0/0
ip add 34.1.1.3 255.255.255.0
no shut
int s0/0/1
ip add 23.1.1.3 255.255.255.0
no shut
exit
router eigrp 100
no auto-summary
network 3.3.3.1 0.0.0.0
network 34.1.1.3 0.0.0.0
network 23.1.1.3 0.0.0.0
passive-interface g0/0
exit
exit
copy running-config startup-config
R4
en
conf t
hostname R4
no ip domain-lookup
int s0/0/0
ip add 41.1.1.4 255.255.255.0
no shut
int s0/0/1
ip add 34.1.1.4 255.255.255.0
no shut
exit
router eigrp 100
no auto-summary
network 41.1.1.4 0.0.0.0
network 34.1.1.4 0.0.0.0
exit
exit
copy running-config startup-config
암호
치환 기법
다중단일문자치환
단순 단일 문자 치환 방법을 개량
다중 단일 문자 치환 암호방법의 공통점
• 하나의 단일 문자 치환 규칙 집합을 사용
• 주어진 변환에 사용될 규칙은 키에 의해 결정
Vigenere 방법 (표참조)
• 키워드 : Infinitive
• 평문 : I see him drive
ㄴ 키워드는 단어를 보통 사용해서 평문보다 짧기때문에 반복해서 사용함.
평문 : i s e e h i m d r i v e
키워드 : i n f i n i t i v e i n
암호문 : q f j m u q f l m m d r
특징
• 평문자에 대한 암호문자가 유일한 키워드에 각 문자에 대하여 여러 개 존재
• 문자 빈도수에 대한 정보가 불분명해진다
단점
• 평문 구조에 대한 정보가 모두 은폐되지는 않는다.
• 단일 문자나 다중문자로 암호화 되었는지 아는 것은 쉽다.
• 빈도수에 따라
• 키워드의 길이를 유추가능
실습
암호문 : xjtaigswjltahewu
키워드 : Eclipse
평문 : This too shall pass
전치기법
- monoalphabetic 암호기법의 진보된 방법(지휘막대)
- 평문자의 순서를 바꿈
rail fence 기법
깊이 : 3
평문 : To have dinner in the restaurant is expensive
t o h a v e d i n n e r i
n t h e r e s t a u r a n
t i s e x p e n s i v e a
암호문 : tntotihhsaeevrxeepdseitnnasnuiervraeina
앞에서부터 ↓ 읽어 적는다.
사각형 행렬 사용
키 : 4 3 1 2 5 6 7
평문 :
4 | 3 | 1 | 2 | 5 | 6 | 7 |
i | h | a | v | e | t | h |
e | s | t | u | d | e | n |
t | s | s | t | u | d | y |
a | f | t | e | r | c | l |
a | s | s | x | y | z | x |
암호문 : atstsvutex…
1번부터 세로로 쭉 적는다.
전치 암호기법은 두 단계 이상의 전치를 행함으로써 더 안전성을 높일 수 있다.
실습
암호문 : rtieaeycuiilshstoeiaseioworsteeidmwtanretakdaapmteetnwydfhnohlielnlaed
암호키 : 5741623
평문 : There's a little kid inside me who always wanted to play for Manchester United
mod의 곱셈표
잉여계 : 나머지들
mod4
0 | 1 | 2 | 3 | |
0 | 0 | 0 | 0 | 0 |
1 | 0 | 1 | 2 | 3 |
2 | 0 | 2 | 0 | 2 |
3 | 0 | 3 | 2 | 1 |
mod5
0 | 1 | 2 | 3 | 4 | |
0 | 0 | 0 | 0 | 0 | 0 |
1 | 0 | 1 | 2 | 3 | 4 |
2 | 0 | 2 | 4 | 1 | 3 |
3 | 0 | 3 | 1 | 4 | 2 |
4 | 0 | 4 | 3 | 2 | 1 |
mod6
0 | 1 | 2 | 3 | 4 | 5 | |
0 | 0 | 0 | 0 | 0 | 0 | 0 |
1 | 0 | 1 | 2 | 3 | 4 | 5 |
2 | 0 | 2 | 4 | 0 | 2 | 4 |
3 | 0 | 3 | 0 | 3 | 0 | 3 |
4 | 0 | 4 | 2 | 0 | 4 | 2 |
5 | 0 | 5 | 4 | 3 | 2 | 1 |
각 소수마다의 곱셈표에서 모든 잉여계가 사용됩니다.
p,q라는 서로다른 소수가 있습니다.
n = p x q를 하면 n 은 합성수입니다.
n이 클수록 이것을 소인수분해해서 p와q를 알아내는데 엄청난 시간이 걸립니다.
누구나 원리는 알지만 실제로 푸는 건 사실상 불가능한것이 공개키 암호의 원리입니다.
'kh교육' 카테고리의 다른 글
(20250801027)eigrp,암호학,php (3) | 2025.08.02 |
---|---|
(20250731026)Redistribution&암호학 (2) | 2025.08.01 |
(20250729024)암호학 (3) | 2025.07.29 |
(20250725022)CORN, RSYNC(수정,보안 필요..) (3) | 2025.07.26 |
(20250724021)DNF, YUM,OSPF (3) | 2025.07.24 |