PING SOCKET
Ping is a program using a raw ICMP socket the program is presented with a copy of all incoming ICMP messages .
There are three commonly encountered types of sockets: stream, datagram, and raw.
TCP uses the stream type and UDP uses the datagram type.
Raw sockets are used by any application that needs to interact directly with
IP, bypassing TCP and UDP in doing so.
ICMP is a necessary component of any TCP/IP implementation. It does not exist to provide information to the higher-layer protocols (like TCP and UDP) so that they may be more reliable.
ICMP protocol is in fact an Internet layer protocol (Layer 3) and is an integral part of the IP protocol suite.
*****************************
it doesn't necessarily mean that only layer 3 devices like router can work with IP but two PCs directly connected with each other can also communicate based on IP and generate messages. the main responsibility of layer 3 device is to forward your packet to other networks were not reachable within your broadcast domain.
****************************
That's the management IP, used to configure and manage a "managed" switch, without this management IP, you can only configure it through the console port or any other ports. When u ping from the switch, it uses its management IP as src IP, that's why you get the respond even though it's not L3 switch. L2 only means it have functions for packet processing up to L2 e.g. MAC ACL, but you can't do things like IP ACL on L2 switch.
switches r of 2 types manageble(l3) ,unmanageble(l2)..................manageble switch .has al functions of router except routing
Wrong. Even my lowly 1900 switch is both L2 and manageable
Ping is a program using a raw ICMP socket the program is presented with a copy of all incoming ICMP messages .
There are three commonly encountered types of sockets: stream, datagram, and raw.
TCP uses the stream type and UDP uses the datagram type.
Raw sockets are used by any application that needs to interact directly with
IP, bypassing TCP and UDP in doing so.
ICMP is a necessary component of any TCP/IP implementation. It does not exist to provide information to the higher-layer protocols (like TCP and UDP) so that they may be more reliable.
ICMP protocol is in fact an Internet layer protocol (Layer 3) and is an integral part of the IP protocol suite.
*****************************
it doesn't necessarily mean that only layer 3 devices like router can work with IP but two PCs directly connected with each other can also communicate based on IP and generate messages. the main responsibility of layer 3 device is to forward your packet to other networks were not reachable within your broadcast domain.
****************************
That's the management IP, used to configure and manage a "managed" switch, without this management IP, you can only configure it through the console port or any other ports. When u ping from the switch, it uses its management IP as src IP, that's why you get the respond even though it's not L3 switch. L2 only means it have functions for packet processing up to L2 e.g. MAC ACL, but you can't do things like IP ACL on L2 switch.
switches r of 2 types manageble(l3) ,unmanageble(l2)..................manageble switch .has al functions of router except routing
Wrong. Even my lowly 1900 switch is both L2 and manageable
No comments:
Post a Comment