Simulator By SunLingxi sunlingxi@sina.com 2003
windows 2000 Tornado ping ping 1. Tornado Full Simulator...3 2....3 3. ping...6 4. Tornado Simulator BSP...6 5. VxWorks simpc...7 6. simulator...7 7. simulator Target Server...8 8. Win2k ping...9 192.168.0.189...10 1...10 2...12 192.168.0.31...14 9. Win2k ping...16 10....16 2 2
1. Tornado Full Simulator TDK-12840 Tornado 2. windows 2000 a) b) c) / 3 3 d) /
e) f) g) 4 4 h)
i) \Tornado\host\x86-win32\bin netulip a) WindRiver Ulip b) internet (TCP/IP) IP 90.0.0.254 255.255.255.0 IP 192.168.0.31 PC IP 5 5
3. ping windows 2000 Routing and Remote Access 4. Tornado Simulator BSP \Tornado\target\config simpc BSP config.h #define INCLUDE_NTPASSFS #if FALSE /* TRUE */ #undef #undef INCLUDE_NETWORK INCLUDE_NET_INIT #undef WDB_COMM_TYPE #define WDB_COMM_TYPE WDB_COMM_PIPE #undef WDB_TTY_TEST 6 6
#else /*!TRUE */ #define INCLUDE_END #endif 5. VxWorks simpc Tornado simpc VxWorks VxWorks ping client Target shell Tornado PC VxWorks VxWorks.exe PC 6. simulator Simulator Tornado Tool Image processor no VxWorks.exe D:\Tornado\target\proj\demo\default\vxWorks.exe IP IP 90.0.0. processor no+1 processor 0 IP 90.0.0.1 processor 5 IP 90.0.0.6 7 7
vxworks.exe vxworks /p no simulator IP 90.0.0.(no+1) IP 90.0.0.8 90.0.0.4 90.0.0.7 7. simulator Target Server Tornado target server Tornado Tools target server configure target server IP Core file 8 8
8. Win2k ping 9 9
192.168.0.189 192.168.0.189 route add 90.0.0.5 192.168.0.31 route add 90.0.0.8 192.168.0.31 1 -> ifshow nt (unit number 0): Flags: (0xf1) UP POINT-TO-POINT RUNNING Type: ETHERNET_CSMACD Internet address: 90.0.0.5 Destination Internet address: 0.0.0.0 Netmask 0xff000000 Subnetmask 0xff000000 Metric is 0 Maximum Transfer Unit size is 1520 24 packets received; 29 packets sent 0 multicast packets received 10 10
0 multicast packets sent 0 input errors; 0 output errors 0 collisions; 0 dropped lo (unit number 0): Flags: (0x8069) UP LOOPBACK RUNNING ARP MULTICAST Type: SOFTWARE_LOOPBACK Internet address: 127.0.0.1 Netmask 0xff000000 Subnetmask 0xff000000 Metric is 0 Maximum Transfer Unit size is 32768 0 packets received; 0 packets sent 0 multicast packets received 0 multicast packets sent 0 input errors; 0 output errors 0 collisions; 0 dropped value = 0 = 0x0 -> -> routeshow ROUTE NET TABLE destination gateway flags Refcnt Use Interface ---------------------------------------------------------------------------- 0.0.0.0 90.0.0.1 3 1 28 nt0 ---------------------------------------------------------------------------- ROUTE HOST TABLE destination gateway flags Refcnt Use Interface ---------------------------------------------------------------------------- 127.0.0.1 127.0.0.1 5 0 0 lo0 ---------------------------------------------------------------------------- 11 11
value = 77 = 0x4d = 'M' -> -> ping "192.168.0.189",5 PING 192.168.0.189: 56 data bytes 64 bytes from 192.168.0.189: icmp_seq=0. time=0. ms 64 bytes from 192.168.0.189: icmp_seq=0. time=0. ms 64 bytes from 192.168.0.189: icmp_seq=1. time=16. ms 64 bytes from 192.168.0.189: icmp_seq=2. time=16. ms 64 bytes from 192.168.0.189: icmp_seq=3. time=16. ms ----192.168.0.189 PING Statistics---- 4 packets transmitted, 5 packets received, -25% packet loss round-trip (ms) min/avg/max = 0/9/16 value = 0 = 0x0 -> 2 -> ifshow nt (unit number 0): Flags: (0xf1) UP POINT-TO-POINT RUNNING Type: ETHERNET_CSMACD Internet address: 90.0.0.8 Destination Internet address: 0.0.0.0 Netmask 0xff000000 Subnetmask 0xff000000 Metric is 0 Maximum Transfer Unit size is 1520 31 packets received; 30 packets sent 0 multicast packets received 12 12
0 multicast packets sent 0 input errors; 0 output errors 0 collisions; 0 dropped lo (unit number 0): Flags: (0x8069) UP LOOPBACK RUNNING ARP MULTICAST Type: SOFTWARE_LOOPBACK Internet address: 127.0.0.1 Netmask 0xff000000 Subnetmask 0xff000000 Metric is 0 Maximum Transfer Unit size is 32768 0 packets received; 0 packets sent 0 multicast packets received 0 multicast packets sent 0 input errors; 0 output errors 0 collisions; 0 dropped value = 0 = 0x0 -> -> routeshow ROUTE NET TABLE destination gateway flags Refcnt Use Interface ---------------------------------------------------------------------------- 0.0.0.0 90.0.0.1 3 1 29 nt0 ---------------------------------------------------------------------------- ROUTE HOST TABLE destination gateway flags Refcnt Use Interface ---------------------------------------------------------------------------- 127.0.0.1 127.0.0.1 5 0 0 lo0 ---------------------------------------------------------------------------- 13 13
value = 77 = 0x4d = 'M' -> -> ping "192.168.0.189",5 PING 192.168.0.189: 56 data bytes 64 bytes from 192.168.0.189: icmp_seq=0. time=0. ms 64 bytes from 192.168.0.189: icmp_seq=1. time=16. ms 64 bytes from 192.168.0.189: icmp_seq=2. time=0. ms 64 bytes from 192.168.0.189: icmp_seq=3. time=16. ms 64 bytes from 192.168.0.189: icmp_seq=4. time=16. ms ----192.168.0.189 PING Statistics---- 5 packets transmitted, 5 packets received, 0% packet loss round-trip (ms) min/avg/max = 0/9/16 value = 0 = 0x0 -> 192.168.0.31 D:\>route print ==================================================================== ======= Interface List 0x1... MS TCP Loopback interface 0x3...00 e0 4c 39 10 74... NDIS 5.0 driver 0x2000002...00 00 00 00 00 00... WRS Virtual Adapter. ==================================================================== ======= ==================================================================== 14 14
======= Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 192.168.0.31 90.0.0.254 1 0.0.0.0 0.0.0.0 192.168.0.240 192.168.0.31 1 90.0.0.0 255.255.255.0 90.0.0.254 90.0.0.254 1 90.0.0.254 255.255.255.255 127.0.0.1 127.0.0.1 1 90.255.255.255 255.255.255.255 90.0.0.254 90.0.0.254 1 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 192.168.0.0 255.255.255.0 192.168.0.31 192.168.0.31 1 192.168.0.31 255.255.255.255 127.0.0.1 127.0.0.1 1 192.168.0.255 255.255.255.255 192.168.0.31 192.168.0.31 1 224.0.0.0 224.0.0.0 90.0.0.254 90.0.0.254 1 224.0.0.0 224.0.0.0 192.168.0.31 192.168.0.31 1 255.255.255.255 255.255.255.255 192.168.0.31 192.168.0.31 1 Default Gateway: 192.168.0.240 ==================================================================== ======= Persistent Routes: None 192.168.0.31 15 15
9. Win2k ping 192.168.0.31 route add 90.0.0.2 192.168.0.189 192.168.0.189 route add 90.0.0.5 192.168.0.31 ping. 10. internet windriver ulip windriver ulip 16 16
sunlingxi@sina.com 17 17