2005 spring cs492 lab #4
DESCRIPTION
2005 Spring CS492 Lab #4. 2005.11.1. Tuesday 10:30am-Noon Building E3-1, Classroom #3 Dept of EECS, Div. of CS. Goals and Overview of Lab #4. Goals To introduce students to ad-hoc network and AODV routing protocol Overview Set up an ad-hoc network - bring up your laptop in an ad-hoc mode - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: 2005 Spring CS492 Lab #4](https://reader036.vdocument.in/reader036/viewer/2022062517/56813d0b550346895da6bba2/html5/thumbnails/1.jpg)
2005 Spring CS492 Lab #4
2005.11.1. Tuesday 10:30am-NoonBuilding E3-1, Classroom #3
Dept of EECS, Div. of CS
![Page 2: 2005 Spring CS492 Lab #4](https://reader036.vdocument.in/reader036/viewer/2022062517/56813d0b550346895da6bba2/html5/thumbnails/2.jpg)
2
Goals and Overview of Lab #4
• Goals– To introduce students to ad-hoc network and AODV routing
protocol
• Overview1. Set up an ad-hoc network
- bring up your laptop in an ad-hoc mode2. Communicate other laptops with AODV routing protocol
– Test ‘ping’– Transfer files to other laptops
• Preparation for Lab #4– Install Linux kernel v2.4.20-8– Install a wireless LAN driver– Install an AODV driver
![Page 3: 2005 Spring CS492 Lab #4](https://reader036.vdocument.in/reader036/viewer/2022062517/56813d0b550346895da6bba2/html5/thumbnails/3.jpg)
3
Lab #4: Step 1
• Configure your laptop in an ad-hoc mode– As an ad-hoc server#./RT2500-Linux-STA-1.4.6.2/Utility/Raconfig2500
![Page 4: 2005 Spring CS492 Lab #4](https://reader036.vdocument.in/reader036/viewer/2022062517/56813d0b550346895da6bba2/html5/thumbnails/4.jpg)
4
Lab #4: Step 2
device 10
device 7
device 5
device 2
CS492A(192.168.11.1 ~ 4)
CS492B(192.168.100.5~ 9)
device 1
device 3
device 4device 6
device 8
device 9
• Set up an ad-hoc network
xx xx
![Page 5: 2005 Spring CS492 Lab #4](https://reader036.vdocument.in/reader036/viewer/2022062517/56813d0b550346895da6bba2/html5/thumbnails/5.jpg)
5
Lab #4: Step 3
• Configure your laptop in an ad-hoc mode– As an ad-hoc client#./RT2500-Linux-STA-1.4.6.2/Utility/Raconfig2500
vv
![Page 6: 2005 Spring CS492 Lab #4](https://reader036.vdocument.in/reader036/viewer/2022062517/56813d0b550346895da6bba2/html5/thumbnails/6.jpg)
6
Lab #4: Step 4
• IP configuration
1) #setup• Edit Network Configuration
IP: 192.168.11.1~4 (Group A) 192.168.100.5~9 (Group B)Netmask:255.255.255.0Default Gateway(IP): 192.168.11.254Primary Nameserver: 192.168.11.1
2) #vi /etc/sysconfig/network-scripts/ifcfg-eth0 (check network configuration)
3) #cp ifcfg-eth0 ./ifcfg-ra0
4) #vi ifcfg-ra0DEVICE=ra0 (<-edit)
5) #setup - Edit Network Configuration
DHCP 설정으로 바꾸고 저장
6) #vi /etc/sysconfig/network-scripts/ifcfg-eth0 (check DHCP)
7) #/etc/init.d/network restart
![Page 7: 2005 Spring CS492 Lab #4](https://reader036.vdocument.in/reader036/viewer/2022062517/56813d0b550346895da6bba2/html5/thumbnails/7.jpg)
7
Lab #4: Step 5
• MAC filtering
– Block getting frames which have a source MAC address xx:xx:xx:xx:xx:xx.
– That is, a node can’ t communicate directly another node with a source MAC address xx:xx:xx:xx:xx:xx, but can through other nodes using AODV
1) #iptables –A INPUT –m mac –mac-source xx:xx:xx:xx:xx:xx –j DROP
![Page 8: 2005 Spring CS492 Lab #4](https://reader036.vdocument.in/reader036/viewer/2022062517/56813d0b550346895da6bba2/html5/thumbnails/8.jpg)
8
Lab #4
Scenario 1- test ‘ping’-
After blocking direct communication from A to BAfter blocking direct communication from A to B
by using iptables,by using iptables, we can ping from node A to node B throughwe can ping from node A to node B throughother nodes by using other nodes by using AODVAODV..
![Page 9: 2005 Spring CS492 Lab #4](https://reader036.vdocument.in/reader036/viewer/2022062517/56813d0b550346895da6bba2/html5/thumbnails/9.jpg)
9
Lab #4: Scenario 1
• Test ‘ping’ with AODV
#ifconfig - check wireless lan, ip configuration, ra0
#~/Utility/Raconfig2500 - check same channel and ssid in each group
#iptables –L - check blocking mac address
#ping 192.168.xxx.xxx - check whether ping is working or not
#aodvd –d –l –r 3 - run AODV daemon
#ps –aux - check whether AODV is working
#ping 192.168.xxx.xxx - check again whether ping is working or not
![Page 10: 2005 Spring CS492 Lab #4](https://reader036.vdocument.in/reader036/viewer/2022062517/56813d0b550346895da6bba2/html5/thumbnails/10.jpg)
10
Lab #4
Scenario 2- Transfer Files -
Nodes exchange files with other nodes usingNodes exchange files with other nodes usingAODVAODV routing protocol. routing protocol.
![Page 11: 2005 Spring CS492 Lab #4](https://reader036.vdocument.in/reader036/viewer/2022062517/56813d0b550346895da6bba2/html5/thumbnails/11.jpg)
11
Lab #4: Scenario 2
• Exchange files using AODV routing protocol(file in /var/ftp/pub)
#ftp 192.168.11.4 or 192.168.100.9 ftp username>anonymous password> get sample (sample file 을 받는다 .)
![Page 12: 2005 Spring CS492 Lab #4](https://reader036.vdocument.in/reader036/viewer/2022062517/56813d0b550346895da6bba2/html5/thumbnails/12.jpg)
12
Lab #4: Wrap Up
• Questions to ask yourself– What is an ad-hoc network?– How does the AODV routing protocol work?– Beyond what number of hops did the throughput
drop below a reasonable rate?