Title: DNS Client Server Model on OPNET
1DNS Client Server Model on OPNET
???? ??? ???. ?????? ???? ????, ????
????. ??????? ???? ????? ????? ????????
????????? ?- DNS ??? client-server ??? ?????
?????? OPNET .
2???? ???????
- ????? ???????? ?- DNS ?? ???????.
- ????? use-cases ??????????.
- ???? ?- OPNET.
- ????? ???? ?????? ????????? ?"? ?-OPNET .
- ???? ???????? (debugging ).
- ????? ??? ?'.
- ????? ?? ???????? Linux.
- ????? ??????.
3DNS- background
- DNS- Domain Name System
- The system is used over the internet to map names
to IP addresses and addresses to names. - The DNS is a hierarchical name space designed in
a tree structure with the root at the top. - The tree can have up to 128 levels
4DNS- background (cont).Hierarchy overview
Root
Country domains
Inverse domain
Generic domains
5DNS- the Protocol
- The two resolution options of mapping requests
- Recursive resolution.
- The server acts as resolver querying another
server and so on recursively, until it receives
final answer, and sends it to client. -
6Simulation- Recursive resolusion.
Root server
if cached
if cached
10
9
4
il
3
if cached
8
com
if cached
5
11
ac.il
2
7
if cached
12
6
dns.yahoo.com
technion.ac.il
1
comnet.technion.ac.il
7DNS- the Protocol (cont.)
- Iterative resolution.
- The server repeats the same query to multiple
servers until receives answer, which is sent back
to the client
8Simulation- Iterative resolusion.
ac.il
com (has ac.il IP)
comnet.technion.ac.il
if cached
3
4
if cached
5
comnet.technion.ac.il
2
technion.ac.il
7
if cached
8
6
1
comnet.technion.ac.il
comnet.technion.ac.il
dns.yahoo.com
9DNS MESSAGES
DNS has two types of messagesquery and response,
both have the same format.
Header question section
Header question section Answer section Authoritati
ve section Additional section
Identical
Response
Query
10OPNET model simulator
- ???????? ?????? ????? ??????? ????????? ??????
?????. - ?????? ????? ????? ????? ??????? ????? ?"? ????
???? ?????? ???? ????, ?????? ?????????? ?? ??
??????? ??, ??? ?????? ???? ?? ??????? ?????? ??
?????? ?? ??????????? ??????? ?? ???? ??????
??????? ????. - ????? ????? ?????? ?????????? ??????? ???? (????
TCP/IP ) ??? ?????? ????? ?????????? ????? ?"?
????? ???? ???????.
11OPNET general node model
Client
Server
12Server process model
13Server query resolve process
14Client process model
15Server DataBase- Resource Record example-
- netvision.net.il MX 1
mx20.netvision.net.il - netvision.net.il A 194.90.1.6
- netvision.net.il NS
dns.netvision.net.il - netvision.net.il SOA
dns.netvision.net.il - hostmaster.netvision.net.il (
- 2001121604 serial (version)
- 28800 refresh period (8
hours) - 7200 retry interval (2 hours)
- 604800 expire time (1 week)
- 86400 default ttl (1 day)
- )
16DNS Experiment
The DNS experiment was designated to give us real
system delays
17DNS Experiment - characterizations
- Server file size (s-50 m-500 l-5000)
- Client domain names (good bad).
- repetition (1,2.. 1,1,2,2.. 1,2..1,2).
- delay (non 0.1 sec).
- Sniffer collect all DNS traffic.
18DNS Experiment query format
- To allow easy monitoring of charecteristics.
- DomainQuery_K_WXY.cn10w02.comnet.technion.ac.il
- K query num (from 1 to NUM_OF_QUERIES).
- W delay mode (1no delay 2with delay).
- X query repetition group (1/2/3 group)
- Y - server file size (1small 2medium
3large).
19DNS Experiment - utilities
- Use of scripts
- Server
- create DNS db file (size, XYZ).
- Client
- create query list in file.
- make DNS queries (from list).
-
20DNS Experiment result example (File size)
Small file avarage 0.233ms
Large file avarage 0.277ms
21DNS Experiment result example (Delay)
Medium file (no) avarage 0.237ms
Medium file (delay) avarage 0.310ms
22DNS Client Server Model on OPNET - summary
- DNS protocol
- OPNET simulation platform
- Built-in models (code debug)
- Experiment (plan, install and analyze)
- Future
- More complex simulation topology.