CN Unit Test
CN Unit Test
40
3.6.2 ICMPV4
IPV4 has no
mechanism,
Error reporting and correcting
Mechanism for host and management queries,
deficiencies,
1CMP designed to overcome above two
ICMP is a network layer protocol, an integral part of IP.No TCP
numbers are associated with ICMP packets since these are
layer above. associated with
ICMP is an error reporting protocol, that sends error messages to so
Error message includes the information about non delivery of packet
ICMP is not in regular use of end users, His used by network
troubleshooting mechanism that includes ping and traceroute. adminisr
ICMP packets are IP packets with ICMP in the IP data
portion.
ICMP message contains entire IP header of original payload, thus helps to
packet failed during transmission.
Messages :
There are two broad categories of ICMP messages.
(i) Error reporting messages
(ii) Query messages
An ICMP message includes header of 8byte and variable data section.
(i) Error reporting messages :
ICMP can report errors but does not correct it.
Error messages are sent only to the original source.
ICMP does not generate error message for (rules)
this-host multicast address or special address (which
does not know its own address)
" datagram carrying error message.
" fragmented datagram,that is not the first datagram.
341
NetworkLayer
8 bits 8 bits 16 bits
Data Section in error message finds the original packet that has error.
Destination Unreachable
Its type = 3, it use different codes between 0 to 15. Specifies the reason for n
delivery of message to the destination.
Code 0 - Host unreachable.
Example : Access web page using HTTP protocol but server is down.
Source Quench :
Its type =4. This error message informs sender about the congestion in net
Redirection Message:
Its type = 51sends error message to source and informs that the sender ha
Wrong router to route the message.
Parameter problem :
Its type = 12, specifies any error in header or some options are missing
(Gi) Query Messages:
Query message is encapsulated in adatagram, is used to check liveline
anetwork.
3.42
Code Checksum
Type
ldentifier Sequence number
Data / Payload
Debugging tools :
ICMP uses the following as a debugging tools.
() Ping
(ii) Traceroute
() Ping :
It is used to find existence of host in a network.
Role of ping in ICMP is corresponding to echo-request and echo reply me
NetworkLayer
TTL:1
Echo
Request
Time
Exceeded
TTL:2
Echo
Request
Time
Exceeded
TTL:3
Echo
Request
Time
Exceeded
TTL:4
Echo
Request
Destination
Unreachable
Time
Time
Figure ICMPV4 in traceroute
3,44
Tracert :
Tracert messages are directly encapsulateddin 1P
datagrams.
Traceroute and tracert both commands are the sarme
traceroute available in Unix OS and tracert in
OS. Windows NT
In ICMP checksum is calculated over entire message
3.7 IPV6 ADDRESSING including header
IPV6 resolves the small size address space of IPV6. It has
address space. 12% bit
IPV6 has colon-hexadecimal representation. These are
cach 2 bytes. divided
Example :
ABCD:EF11:3423 : 8967 :ABCF:C201:5432:E024
IPV6 has 3 addressing methods
Unicast address
Multicast address
Anycast address
Unicast address identifies single network interface. Multicast addes
multiple host called groups, which holds multiple destination address. Any
is assigned to group of interface. It is delivered to only one
Broadcast is not defined in IPV6 interface, possibl
Features of IPV6
2004:0000:3 13 1:FEDI:33:0000:0000:EEFB
Consecutive zeros can be replaced by colon,
2004:0000:3131:FED1:33: :EEFB
In IPV6 changes have been made ín its size and
format in terms of
Base header
New options
Extensions
Resource allocation
Security
IPV6 datagram
Base
header Paylcad
Base beader
12 16 24 31
Version Tratfic
dass Fiow Label
Payioad Lengtn Next Hop
Header Limit
Source Address
Destination Address
router.
and
extension
header,
combination datagram.
requirements. the
by
more
a IPV6.not the
is source
provide
IPV6 by
with in visited
I'V6payload adopted
by
onlyto
of header router
number is fragmented (ESP)
different priority
I"'V4 extension to
Payload
version inlow. Extension
hender
information
Pad
|-Alignment
purpose
Extension
header
Distingulsh
dataTTL Header and
Payload are
Next
control Security
Defineslandles dat
as Actual
Paylond
Header
Next
Length Next
Header
Length of
datagrams
typcs (ii)
Source
routing (v)
Authentication
Same (iv)
Fragmentation sends
flow hop (ii)
Destination Encrypted
Class six
labellimit- of IPV6 by -
hop
Traffle
Verslon
IPVG
paylond Concept has hop
Ilowlop In IPV6 by
datagram.
(i) (vi) Hop
146
3.47
Network Layer
Pad N-Used extra bytes for alignment
Jumbo Payload - longer payload.
Destination Option - Source sends information to only destination not to the
intermediate routers.
route.
Source Routing - Follows strict source and loose source
Path MTUDiscovery
Fragmentation - Only source can fragment a packet. It use
technique to find smallest MTU.
integrity of data.
Authentication - It validates the authentication and
eaves dropping.
ESP- It provides confidentiality and avoids
3.8 SUBNET
Pe cnecifically.
5
5
10
4
63
TAT- I|
Pat-A
A f4
debn B
C
3
-G1
D)(E