Sunday, March 7, 2010

TCP/IP Utilities Lab

In this lab we used some tools by using the command prompt.
In the first exercise we used the Ipconfig command. This utility can be used alone to list information about the TCP/IP configuration. It also has several command switches to manage a computer's TCP/IP settings. Four of these switches are:
/? - This one displays a list of switches to use with the ipconfig command
/all - Displays the complete TCP/IP configuration information
/release - Releases DHCP-assigned IP address
/renew - Renews DHCP-assigned IP address



The Netstat utility displays details and statistics of the TCP/IP components and connections on a host. There are several switches available for this utility also. A few of them are:
-a - Lists all available TCP and UDP connections.
-e - List details about the packets sent over a network interface.
-n - List the current connected host by their port and IP address
-p - Lets you specify the type of protocol statistic to list, TCP or UDP

Nbtstat is a utility that works with networks running Windows and NetBIOS. Switches are also available for this utility.
-a - Display's a machine's name table given its NetBIOS name
-A - Displays a machine's name table given its IP address
-r- Lists statistics about names that have been resolved to IP addresses by broadcast and by WINS
-s - Displays a list of all the current NetBIOS sessions for a machine

Hostname utility is used to find the hostname the computer was assigned and if you have administrator privileges, you can change the hostname at the prompt


Nslookup is a utility that allows you to find the host name of any computer on the network by querying the DNS database by specifying its IP address or you can find the IP address by specifying its hostname.




Traceroute (tracert) is a utility that uses ICMP ECHO request to trace the path from one node on the network to another and identifies all the intermediate hops between the two nodes. Some of the popular switches for tracert are:
-d - tells the tracert command not to resolve IP addresses to host name
-h - lists the maximum number of hops the packets should take when attempting to reach a host
-w - Identifies a timeout period for responses







Host File Lab

In this lab we created a host file mapping Blackboard to the IP address 10.10.1.81.
To get to the mapping file you have to access the C:\ then the windows folder, then the system32 folder, then the drivers folder, then the etc folder. Open the host file in notepad. This will give you the following window




Go to the last line and type the address under to other addresses then tab over and enter the name you want to associate with the IP address. In our case we entered 10.10.1.81, which is Blackboards IP address, then I entered blackboard for the name. Now when I enter blackboard in the address bar is opens blackboard without having to remember the IP address. This is very useful in remembering websites. It is easier to associate a name with a site than to remember the IP address. Host file mapping can not only help you out when you have a lot of IP addresses to remember, but you can also limit the sites that can be accessed. Disable the DNS and then this will allow access only to the sites that are in the permit area. If you have sites that you access a lot. Enter there IP address in the host file and then when you access them it will save time because your browser will save the time it takes to look through the external DNS resolution and log directly on the site. You can also block junk sites by listing them in the host file and putting the local IP address in front of their address name. This was a short but very interesting lab, full of useful information.

DHCP Lab


In this lab we set up a Dlink router between two computers in a DHCP (Dynamic Host Configuration Protocol) pool. We changed the routers settings and changed the DHCP pool which included the default gateway and the range of IP addresses available for our computers to use. After doing this, we then used the command prompt to with the ipconfig /all command to view our current IP address. Then we released and renewed the IP address using the command prompt commands; ipconfig /release, and ipconfig /renew, to see if it would change to the new settings which it did. This was a fairly simple lab to perform and was educational as well.

Wireshark Lab







In this lab we used the software Wireshark to capture and examine packets being sent and recieved on our computers. http://www.wireshark.org/






The first packet we examined was a packet using TCP protocol









The source port for this packet was Port 80 which is used for http.



The destination port was 49340 which is a dynamic or private port number.



The flag being used was 0x18 (PSH, ACK). PSH bit is a push flag that tells the TCP to send any outstanding data. The ACK bit acknowledges the remote host's sequence numbers and validates the information in the acknowledgement.



The source IP address is 69.63.178.143 and the destination IP address is 10.40.1.107. My computer's IP address is 10.40.1.107 so this is an incoming packet to my computer.










The TTL (Time to Live) for this packet is 82. When this counts down to 0 the packet will be discarded.



Differentiated Services is a class-based mechanism for traffic control where the data packets are sorted by traffic classes instead of individual flow. The Differentiated Services Field for this packet was 0x00 (DSCP 0x00: Default; ECN: 0x00) I found a lot of references to this value but did not find out exactly what it stands for. The Differentiated Services Field has an eight bit number with bits 0-5 being for the value and bits 6 and 7 are reserved.



The protocol field is set to TCP which set the transmission layer protocol. The Header checksum was listed as correct. The framing type used was 22. The source MAC address was Cisco_ee:9b:ff (00:04:c0:ee:9b:ff) and the destination MAC address was Intel_31:68:a3 (00:19:d1:31:68:a3). The destination MAC address is my computer. The frame is incoming. There were 239 bytes on wire and 239 bytes captured.






Now we will look at a packet using UDP protocol






The source port is 58807 which is a dynamic or private port. The destination port is 53 which is the Domain Name System port. The Flag value is 0x00. The source IP address is 10.40.1.119 and the destination IP address is 10.40.1.6. This is an outgoing packet from my computer. The TTL for this packet is 128. If the packet is not delivered before the value counts to 0 then the packet will be discarded. The header checksum is correct. The framing type is 7 and the source MAC address is Intel_31:d4:bd (00:19:d1:31:d4:bd) and the Destination MAC address is DellPcba_d6:73:93 (00:0d:56:d6:73:93). This is an outgoing packet from my computer. This Frame contained 82 bytes on wire, and 82 bytes captured.




This is an example of a three-way handshake.




First there is an SYN segment send from 192.168.1.102 to 128.119.245.12. Then there is a


SYN ACK segment send from 128.119.245.12 to 192.162.1.102. Then the third handshake is an ACK segment sent from 192.168.1.102 to 128.116.245.12.


This is an example of an ARP packet interception

The destination MAC address is ff:ff:ff:ff:ff:ff. This is the broadcast address. The source MAC address is 00:d0:59:a9:3d:68. This is the address sending out the broadcast. The destination IP address is 192.168.1.1. This is the IP address the broadcast is looking for. The source IP address is 192.168.1.105. This is the IP address that is sending the request out.

I found this interesting that with ARP you can send out a broadcast to locate a MAC address from an IP address. In the example the host computer send out a request to locate the MAC for IP address 192.168.1.1. Then the answer was sent back that 192.167.1.1 was located at MAC address 00:06:25:da:af.

This lab was very informative and educational. It was great to be able to look at these packets and start to make sense of what we were looking at. The fog of understanding the workings of a computer are starting to thin a little. It is still fasinating to see what happens in computers and to understand as what speed it happens. I really enjoyed this lab and will continue to use wireshark on my own to explore and understand more from packets in the future.


















Monday, January 25, 2010

EIA TIA T568B Cable wiring

We wired an RJ-45 connector on Cat-5 cable in NET125 lab this week.

Here is a recount of what we did.

The Cat-5 cable comes with 4 pair of twisted wires. First pair is orange, orange/white, second pair is green, green/white; the third pair is blue, blue/white; and the fourth pair is brown, brown/white.



After untwisting the wires they are arranged in the order from left to right,


1. Orange, 2. Orange/White, 3.Blue, 4.Green/White, 5. Green, 6. Blue/White, 7. Brown, 8. Brown/White



After aligning the wires in the correct order, trim the ends to prepare the wires to insert in the RJ-45 connector.


After trimming the ends flush, insert the wires into the RJ-45 connector. The orange wire is on your left and the connector is prong side down. Push the wire in until the outer sheathing is under the crimp bar on the connector.

The ends of the wire will be visable in the end of the connector.

While firmly holding pressure on the wire, crimp the connector with the other hand.