You are on page 1of 1

D70001D Network programming and distributed applications

Lab 1 – Network protocols and network commands

Part 1 – Get to know the protocol stack and the local network

Document the local network connected to the computer.


- What is the computer name, IP settings, MAC address.
- What other network entities can you find information about (Gateway, DHCP, DNS
etc.)
- Are there other entities on the local network that you can’t ”see”?
- What else do you know about the network? (e.g. maximum number of computers)

Use these networks commands: (windows, similar commands in other OS)


arp, ping, ipconfig, route print, tracert, netstat, nslookup

Find out what each command does and relate each command to a layer in the protocol
stack (Host-to-network Layer, Internet Layer, Transport Layer, Application Layer).

To test an application protocol you may use the telnet program.


(More info. on telnet: http://technet.microsoft.com/en-us/library/c.aspx)
Another option is to use a telnet client like PuTTY.

HTTP
telnet www.ltu.se 80
GET / HTTP/1.0 (press enter twice)

SMTP (only from internal ltu addresses, port 25 is often blocked in firewalls)
telnet smtphost.ltu.se 25
helo ltu.se
mail from: <famous person, e.g prime_minister@regeringen.se>
rcpt to: <your email address>
data
subject: <some text…>
<some content…>
.
quit

Check your inbox…

Part 2 – Network protocol analyser

Follow the instructions in the document ”Wireshark.pdf”, observe the need to use
other IP addresses...
To test anonymous ftp access you can use ftp://ftp.sunet.se
(Please try accessing an password ”protected” ftp site )

Comment the exercises in the lab report.

You might also like