Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
(ARM).Porting TCP-IP programmer's guide.Ver 1.4.pdf
Скачиваний:
31
Добавлен:
23.08.2013
Размер:
2.79 Mб
Скачать

TCP/IP Porting

2.6Testing the TCP/IP port

When your ipport.h file is set up and your glue layers are coded, you are ready to test your stack. The traditional first test of most IP stacks is ping, the popular term for ICMP echo packets. You must connect your hardware to the network and ping from a remote machine. At a DOS or UNIX shell prompt, enter:

ping number

where number is an IP address. Use the number you assigned to your stack’s network interface (in Specifying IP addresses on page 2-14).

When you use ping, it sends a network packet to the ARM stack, which echoes it back. This indicates that:

the packet was transferred from the net media to your interface

your interface’s IP information is properly configured

your IP layer is receiving from the interface

the ICMP layer has attached to IP

ICMP can send to IP

IP can send to the interface

the interface can send on the physical net.

If you are using Ethernet, ARP has also worked.

If ping works, most of your port is complete.

The other tests you should run depend on your product. ARM also sells FTP servers, SNMP agents, and Web Servers for embedded systems. If you are using any of these packages, refer to the documentation provided for implementation and testing information. If you do not have any of these products, it is recommended that you write a sockets application (see Chapter 9 Sockets).

2-16

Copyright © 1998 and 1999 ARM Limited. All rights reserved.

ARM DUI 0079B