Вы находитесь на странице: 1из 3

Pre-Lab Assignment 2 1. What is TCP/IP stack? How many layers are in TCP/IP?

TCP/IP is a set of networking protocols which was derived from the former OSI model. It has 4 layers: Link, Internet, Transport and Application. For designing applications in TCP/IP, one needs to do encoding in IP and Port Level and forward it to TCP or UDP which would break it into segments and deliver it. 2. Give a description of following terms and specify TCP/IP layer they are operating in: a. MAC ADDRESS: These are network addresses for IEEE 802 802 NETWORK TECHNOLOGIES USING Ethernet. It functions at the Data Link layer b. IP ADDRESS: It is a communication protocol for transmitting datagrams across network. It functions at the Internet Layer c. TCP port & UDP port: They specify source and destination port number in their packet headers. It functions at the Transport Layer. 3. How can you find the MAC address of an interface? Can you use two different commands for this purpose? IS MAC Address unique? What is your personal computer MAC address? For Linux, In root directory, typing ifconfig-a will display information of eth0. The number corresponding to HWaddr wil be the MAC address. winipcfg can also be used to display the MAC address. MAC address is unique for each installed network card. For Ethernet adapter, the MAC address is 40-F0-2F-23-30-2C.For Wireless LAN adapter local area connection, it is 12-F0-2F-22-E1-26. For wireless LAN adapter Wi-Fi, it is 40-F0-2F-22-E1-26.Snapshot attached.

4. Write the command to set the IP address of the interface eth0 to 10.45.25.156/17. sudo ifconfig eth0 10.45.25.156 6. What is the syntax of the tcpdump command and the wireshark capture filter for the following: a. Capture packets with IP datagrams with source or destination IP address equal to 192.168.0.3 tcpdump -n host 192.168.0.3 ping c 192.168.0.3 b. Capture packets with IP datagrams with source or destination IP address equal to 192.168.0.3 on interface eth1 tcpdump n -i host 192.168.0.3 ping c 192.168.0.3 2-2c. Capture packets with ICMP messages with source or destination IP address equal to 192.168.0.3 tcpdump n host 192.168.0.3 and icmp ping c 192.168.0.3 d. Capture packets with TCP segments with source or destination IP address equal to 192.168.0.3 tcpdump n host 192.168.0.3 and tcp ping c 192.168.0.3 e. Capture packets with TCP segments with source or destination IP address equal to 192.168.0.3 using port 80 tcpdump n host 192.168.0.3 and tcp and port 80 ping c 192.168.0.3 7. What is TCP port number for (Web content). What TCP port does Skype application choose to transfer data? For HTTP it is 80. Port 80 and 443 are used by Skype.

Вам также может понравиться