DOC PREVIEW
GT ECE 4110 - Internet Protocol Version 4

This preview shows page 1-2-3-4 out of 12 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Slide 1IP Header: ( IPV4)IP Header Details:Slide 4Slide 5Slide 6Slide 7Slide 8Slide 9Slide 10Slide 11Slide 12Internet Protocol Version 4Version HeaderLengthType ofServiceTotal LengthIdentification FragmentOffsetTime to Live Protocol Header ChecksumSource IP AddressDestination IP AddressOptions (if IHL > 5)MFDF2IP Header: ( IPV4)20 Bytes0 4 8161931 (Bits)Version IHLType ofServiceTotal LengthIdentificationFlagsFragment OffsetTime to LiveProtocol Header ChecksumSource AddressDestination AddressOptions + Padding3IP Header Details:•Version ( 4 Bits ) - version number now is 4•Internet Header Length (IHL) (4 Bits) - length of IP header in 32 bit words. Minimum value is 5 for a minimum header of 20 bytes. When option field max size, IHL = 15•Type of service (8 bits) 3 Bits Precedence 4 Bits TOS One Bit Not used at present 0000 normal service 0001 minimize cost 0010 maximize reliability 1000 minimize delay •Total Length (16 Bits) - Total IP datagram length in bytes including IP header. Maximum length value is 216-1 = 65,5354It is possible to have an IP datagram that is too big for some networks. For example, the Maximum Transfer Unit (MTU) of data that may be encapsulated into an ethernet frame is 1,500 bytes. If we have an IP datagram larger than this, we will have to fragment the datagram.This means breaking the datagram into smaller pieces. The header is copied for use in every fragment. The flags, fragmentation offset, and the total length fields are set to new values in each fragment.•Identification (16 Bits) - a sequence number. Counter in the source machine keeps track of how many IP datagrams it has sent. This value is copied into the identification field. Fragments all have the same identification number.•Flags ( 3 Bits ) •More Bit - when datagram is fragmented this bit indicates if this is the last fragment. A value of one indicates there are more fragments, a value of zero means this is the end. •Do not fragment bit - do not fragment if this bit is a one •Unused bit•Fragment Offset (13 Bits) - where in the original datagram this fragment belongs measured in 64 bit units. This means divide the offset location in bytes by 8 to get the value in the header. Conversely multiply the value you see in a header before you use it. Since offset field is only 13 bits, use this divide/multiply by 8 method to allow larger than 213-1 offsets5Example:Given a 3,500 byte IP datagram and an ethernet network with an Maximum Transfer Unit = 1,500 bytes. Assume there are no options included in the 20 byte IP header.We have 3,500 total bytes – 20 header bytes = 3,480 data bytes to transport.The MTU limit = 1,500 so the largest a data payload may be is 1,500 – 20 header = 1480The amount of data we carry must be a multiple of 8 because of the offset field definition. 184 * 8 = 1,472185 * 8 = 1,480186 * 8 = 1,488We should choose 1,480 data bytes in the first segment so that the total size is 1480 data plus 20 header = 1,500 which is equal to or less than the MTU of 1,500. The offset field will have the value 0, the more flag will be equal to 1.The second datagram will also carry 1,480 bytes with the offset field equal to 1480/8= 185. The more flag will be equal to 1The third datagram will carry the remaining 3,480 – (1,480 + 1,480) = 520 bytes. It will be carried in an IP datagram with 520 + 20 Overhead bytes = 540 bytes. The offset field will be (1,480+1,480) / 8 )=370, and the more flag will equal 0.6In the event a fragment is itself fragmented, then the offset value used is relative to the original datagram prior to any fragmentation.Example:Suppose that second datagram in the previous example (which is 1,500 bytes in size) is further fragmented into two fragments because we encounter a smaller MTU = 766. The resulting new fragments for the second fragmented datagram from our original example are:For an MTU of 766 we may have a max of 766 – 20 overhead = 746 data bytes. 746/8 = 93.25 so we should use 93*8 = 744 data bytes in one new segment, leaving 1480 total data – 744 in one segment = 736 data left for next segment. SoFirst additional segment has 744 + 20 = 764 bytes total, offset value = same old start of 185 from before.Next additional segment has 736 + 20 = 756 bytes total, new offset = 185 + 744/8 = 185 + 93 = 278.Note that the offset value is relative to the relative position of the data to the original (source) data.7IP Header Details:•Time To Live (8 Bits) - how long datagram exists usually done by hop count. Every router decreases TTL by at least one.•Protocol (8 Bits) - indicates next higher level protocol IE TCP, UDP, ICMP, IGMP, etc1 ICMP Internet Control Message Protocol2 IGMP Internet Group Message Protocol6 TCP Transmission Control Protocol17 UDP User Datagram Protocol41 IPV689 OSPF Open Shortest Path First Routing Protocol•IP Header Checksum (16 Bits ) - applied to header only.At the sender the checksum field is first set to zero, then the header is divided into 16 bit pieces. These pieces are added together using one’s complement arithmetic with a result that is also 16 bits long. The sum is complemented (inverted). This is the check sum value put in the datagram header.At the receiver, the 16 bit pieces are once again added using ones complement arithmetic. If there are no errors in the header, the complemented result will be all zeros.8IP Checksum Calculation Example:Given the following IP Header, calculate the IP checksum value.4 5 0 642 0 016 17 You are calculating this 255.255.0.0 1.1.0.04, 5, and 0 6420 and 016 and 17255 and 2550 and 01 and 10 and 0SUMCHECKSUM 0 1 0 0 0 1 0 1 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 1 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 1 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 0 0 1 0 0 0 0 0 0 0 1 0 0 0 11 1 1 1 1 1 1 1 1 1 1 1 1 1 1 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 1 0 0 0 0 0 0 0 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 1(This example had a 1 end around carry added back to the solution)9•Source Address - (32 Bits )•Destination Address - (32 Bits )•Options (Variable)•Padding (Variable) - used so header always multiple of 4 Bytes.•Data (Variable) - max length including header 65, 535Option bytes may or may not exist. If they do exist they look like this:10IP Options:Single Byte:No Operation 00000001End of Options


View Full Document

GT ECE 4110 - Internet Protocol Version 4

Documents in this Course
PUSH Flag

PUSH Flag

17 pages

Ethernet

Ethernet

33 pages

Load more
Download Internet Protocol Version 4
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Internet Protocol Version 4 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Internet Protocol Version 4 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?