Lab4 Report
Lab4 Report
2014
Lab3
1. Select the first ICMP Echo Request message sent by your computer, and expand the
InternetProtocolpartofthepacketinthepacketdetailswindow.WhatistheIPaddressof
yourcomputer?
Answer
Figure1
Accordingtothefigure1,theIPaddressofmycomputeris192.168.1.8.
2.WithintheIPpacketheader,whatisthevalueintheupperlayerprotocolfield?
Answer
Accordingtothefigure1,withintheIPpacketheader,thevalueintheupperlayerprotocolfield
isUDP(17)
3. How many bytes are in the IP header? How many bytes are in the payload of the IP
datagram?Explainhowyoudeterminedthenumberofpayloadbytes.
Answer
According to the figure 1, the header length is 20 bytes and the total length is 56 bytes.
Therefore,thepayloadoftheIPdatagramshouldbe36bytes(56bytes20bytes).
2014
5.WhichfieldsintheIPdatagramalwayschangefromonedatagramtothenextwithinthis
seriesofICMPmessagessentbyyourcomputer?
Answer
2014
6. Which fields stay constant? Which of the fields must stay constant? Which fields must
change?Why?
Answer
Thefieldsthatstayconstantare:
Version(sinceweareusingIPv4),headerlength(sincetheseareUDPpackets),sourceIP(since
allpacketsaresentfrommycomputer),destinationIP(sincewearesendingtothesamehost),
DifferentiatedServices(sinceallpackets areUDP), UpperLayer Protocol (sincetheseare UDP
packets)
Thefieldsthatmuststayconstantare:
Version(sinceweareusingIPv4),headerlength(sincetheseareUDPpackets),sourceIP(since
allpacketsaresentfrommycomputer),destinationIP(sincewearesendingtothesamehost),
DifferentiatedServices(sinceallpackets areUDP), UpperLayer Protocol (sincetheseare UDP
packets)
Thefieldsthatmustchangeare:
Identification(IPpacketshavedifferentids),Timetolive(tracerouteincrementseachpacket),
Headerchecksum(sinceheaderchanges)
2014
Thefirstrequest,valuesintheidentification:44695
Thesecondrequest,valuesintheidentification:44696
Accordingtoabovetwoscreenshots,thepatternistheIPheaderIdentificationfieldincrement
witheachUDPrequest.
8.WhatisthevalueintheIdentificationfieldandtheTTLfield?
Answer
2014
Accordingtoabovescreenshot,Identification:57077,TTL:64
9. Do these values remain unchanged for all of the ICMP TTLexceeded replies sent to your
computerbythenearest(firsthop)router?Why?
Answer
The values of identification field changes for all the ICMP TTLexceeded replies since the
identificationfieldisauniquevalue.IftwoormoreIPdatagramshavethesameidentification
value,thenitmeansthattheseIPdatagramsarefragmentsofasinglelargeIPdatagram.
TheTTLfieldwasunchangedsincetheTTLforthenearestrouterisalwaysthesame(Linux,TTL
64).
10. Find the first ICMP Echo Request message that was sent by your computer after you
changedthePacketSizeinpingplottertobe2000.Hasthatmessagebeenfragmentedacross
morethanoneIPdatagram?
Answer
2014
No.102hasidentification:44696
According to above to screenshots, above has been fragmented across more than one IP
datagram.
11. Print out the first fragment of the fragmented IP datagram. What information in the IP
header indicates that the datagram been fragmented? What information in the IP header
indicates whether this is the first fragment versus a latter fragment? How long is this IP
datagram?
Answer
According to above screenshot, The Flags bit for more fragments is set which means the
datagramhasbeenfragmented.Thefragmentoffsetis0,weknowthisisthefirstfragment.The
lengthofthisfirstdatagramis1500includingtheheader.
2014
Accordingtoabovescreenshot,thisisnotthefirstfragmentsincethefragmentoffsetis1480
andthisshouldbethelastfragment,sincethestatusofmorefragmentsflagisnotset.
13.WhatfieldschangeintheIPheaderbetweenthefirstandsecondfragment?
Answer
Totallength,flags,fragmentoffset,andchecksum.
14.Howmanyfragmentswerecreatedfromtheoriginaldatagram?
Answer
2014
Accordingtoabovescreenshot,3packetscreatedfromtheoriginaldatagram.
15.WhatfieldschangeintheIPheaderamongthefragments?
Answer
Fragmentoffset,checksum.Moreover,forthefirsttwopackets,thetotallengthis1500withthe
morefragmentsflagsetto1,andthethirdpacketstotallengthis540withthemorefragments
flagsetto0.