vlsi.hongik.ac.krvlsi.hongik.ac.kr/lecture/ccn/ccn_중간고사_이전... · 2010. 7. 29. ·...

27
Giuseppe Bianchi Giuseppe Bianchi !"" # Upon buffer congestion upon error check failed

Upload: others

Post on 30-Jan-2021

1 views

Category:

Documents


0 download

TRANSCRIPT

  • Giuseppe Bianchi

    ��������������������

    ������������������������������

    ����������������������������������������

    ���������� ���������������� �������������������������������� ����������������

    Giuseppe Bianchi

    ��������������������������������������������������������������������

    ���

    ���������

    ����������������������

    � ���!�""���

    �#����� ��

    �� � ��� ���� ����� ������� �� � �� �� ��� ���� ����

    ����� ��� �� �� ����� ��� ����� �� � ��� ���� ��� ���

    �Upon buffer congestion�upon error check failed

  • Giuseppe Bianchi

    ���"���������"������

    ��������� �����

    ���������������������������������������������

    ���������������� � ��� ����������������� ������ ������������ ������� � �� ���������

    � ����������

    ������������������������ ������������ ����������� ���������������������� ������������������ ����� ���������������������� � ����� ���� �������

    Giuseppe Bianchi

    ������$������%$������% "��% ��"��% ��&'�&'� ���� �������$�����$�� �% ��% �% ��% ��% �% �

    0 3 7 15 31���� � ��� � �� �

    � � �� �� ��� �� � ��

    ���� � � ��� � � ��

    ���� ���� �� ��� � ��� � �� �� � � �� �

    � � �� ���� � � ��

    � � � �� � �� � ���� � ��

    !"�� ����� �� ����� � ��� �

    ���� ���� � # � � �� �� � � �� �

    ��$ ���� � � ����

    � � �� � � �

    !��� ���� � � $ �� � � ��� ��

    �� � � � � �� % � # $

    ��� � ���� ��

    � � � � �� � �&� �

  • Giuseppe Bianchi

    ���� � ��� � �� �� � �� �� ��� �� � ��

    ���� ���� �� ��� � ��� � �� �� � � �� �

    � � � �� � �� � ���� � ��

    !"�� ����� �� ����� � ��� �

    ���� ���� � # � � �� �� � � �� �

    ��$ ���� � � ����

    � � �� � � �

    !��� ���� � � $ �� � � ��� ��

    �� � � � � �� % � # $

    ��� � ���� ��

    �(�����)�'�''����*+�

    ��� � ��� �� ���� �� ���� ����� � ��� ��� �� � �� �

    �,��$��������)���-& ���.��$�

    ������ ���� � � � � ! �" �# $ % ��� � ���& �$ � �% ���'

    ������" ��� ��� �������� ��� �� � ��� �( � �% ���

    �/����$�01/��$$������

    �� % �� � � �

    Giuseppe Bianchi

    ���� � ��� � �� �� � �� �� ��� �� � ��

    ���� ���� �� ��� � ��� � �� �� � � �� �

    � � � �� � �� � ���� � ��

    !"�� ����� �� ����� � ��� �

    ���� ���� � # � � �� �� � � �� �

    ��$ ���� � � ����

    � � �� � � �

    !��� ���� � � $ �� � � ��� ��

    �� � � � � �� % � # $

    ��� � ���� ��

    �����������)��2� ����

    �� � ��� �( ! ! # ! � � �� �� ��� �����'

    �) ���

    ���*����� � ���� � � ������� � ������ � �� �������+ ��example: Ethernet has minimum payload size = 46 bytes�but you may send smaller IP datagram.�How to recognize how much of the 46 bytes is IP datagram?

    ���������)��3���"�������.������33���������

    3������������$������% �% ���� ��$���*���$

    �� & �, - � .�$ & �/ - � *�( & 0 , � *�� 1 & 2 3 �

  • Giuseppe Bianchi

    4�������3��������"���$54�������3��������"���$50�% ����3��6��0�% ����3��6��77

    ��

    ' ' ' ' ' ' '

    �( � ) � � �( * � +

    ����� � ��� �� � � � �

    , � � ���� ��� �$ � � ��� � �� � � ��

    �� ����-� -�� � �� ��� % � � �� � � �� �

    � �$ # ������. �� � / � � �� �� � �� ��( � 0) � � ���� �# ��� � � # � �� ����� � ��� � ��� �� �

    � � � ��� ��# � �� � ��# ���� � � % ���� � � �� � �1 � � �� 2�� � � � �2�� �� � �� 2�� �� � � � �3

    ��������������������������������������������������������� � � �� � � ��

    Giuseppe Bianchi

    ���� � ��� � �� �� � �� �� ��� �� � ��

    ���� ���� �� ��� � ��� � �� �� � � �� �

    � � � �� � �� � ���� � ��

    !"�� ����� �� ����� � ��� �

    ���� ���� � # � � �� �� � � �� �

    ��$ ���� � � ����

    � � �� � � �

    !��� ���� � � $ �� � � ��� ��

    �� � � � � �� % � # $

    ��� � ���� ��

    �)�% �6����"���3������$������% ������% �����������.��8�

    ���� ��� ��� �$ ! ! .���� ������ ��������� �( 4

    ����� ��� � ������������ ��0 0 5 �� ��� � � ��������� ��� � ������ ��'

    �� � �� �0 0 5 & � � � � � ������������ �� �0 0 5 & � '*�� ��� ����� �� � � ��� ���sender notified via ICMP message

    �� ����� ���������� ��� �������� ���� ������ �6�6���� �� ����� �� � � '

    �,��$�������8��% )����$������

    �7 ������ � �� ��� �� ��0 , � 82 3 �

    ������� ��� ������ ����� �� � ���� � ������ � ���� 9 : , �� � 4 � '*�� ���� � ��0 0 5 ��� �� ��� �������� �'�

  • Giuseppe Bianchi

    ���� � ��� � �� �� � �� �� ��� �� � ��

    ���� ���� �� ��� � ��� � �� �� � � �� �

    � � � �� � �� � ���� � ��

    !"�� ����� �� ����� � ��� �

    ���� ���� � # � � �� �� � � �� �

    ��$ ���� � � ����

    � � �� � � �

    !��� ���� � � $ �� � � ��� ��

    �� � � � � �� % � # $

    ��� � ���� ��

    �������������� �����������

    �� ! ������"�#�$�%��� ���"��������&������ ���#����'���&���������� ���$����'���&����������� ���%��������&�����������

    ��������������

    & ! � � 4 5 " 6� � 7

    � �� �� �� � ������

    � � �� ��� &

    � ����(�� ! ������������

    �����������) �*�������������

    Giuseppe Bianchi

    9/� ���9/� ���������-+'����-+���3���"����.������� ����

    �����$� ������ �����$��$��33��16�% 3���)�

    �: 0 � ������& ���" ; �� �

    ���� ���& ��� ; ��

    �7 ) - � � �� ��� ��� � �� ���� ������ ��� �� �� �� '�& ���" ; ���% ��

    �) ) 0 � � � �� �� � �� '�& ��� ; �� �

    ���������% ���������9/�

    �0 < 7 �

    �=� ����� ����� �

    ��� �� ������*�0 < 7 ������ � �����% ��� � ���� ���� � ����% ���� � ����

    � � ��� > > $ �� > > #

    ������������������������������������

    ����������������������������������������

  • Giuseppe Bianchi

    93����93����

    ������$�������93�������9�

    �( � �% ����� ���������� �� ������ � ��� � �� � �������� ��

    ����� ����

    ����� � ������������ ������

    �maximum of 9 hops recordable - not practical today

    ��% ����% 3�93���

    �� ��9 9 < *�% � ���� � ������ ����� ����

    � ������� ��� �

    �/������������93����������:�/������

    ��� � ��� ������ �� ������ � �� ��� � ������ ��% �����

    ���% ���� ����������� 6�6�% �� �

    ��� ��� � �� ��� � �� ����% �'

    �loose: cross the routers specified, in the order, plus others along the path (interconnecting specified ones)

    �strict: ALL routers specified, and no others! (may fail if routers not directly connected)

    Up to 40 extra bytes (10 x 32bit words) available for options. Common options:

    Giuseppe Bianchi

    �����$�������93����$�����������$�������93����$������

    � ��$����� ����)��3���"�����3���

    � �� ����� ��9 9 < �& �1

    � �� ��� ����)��3���"���� ����������*�$�"����3����

    � ��" & # > % �������" ����� ������

    ������ ��4 � �% ���*���� �����# >

    � 3�� ��� ����)�������.������6���$$�����% ���� �������$

    � �� �� ��� �� ��� ��& �4 *�� �� ����� �� �� ? *�� $ *�� ( *�$ � *�$ 4 *�$ ? *�# $ *�# ( '

    � � ��& 4 � �� �������� ���

    ��

    ��� �

    � � � � ��� �� �� � � � ! �� � � � � �� � � � 8

    �8�� ����

    � � 9 4 � � 9 : � � 9 !� � � 9 �" � � 9 4&

    � ������� ������ ����������������������������� ��! ! ! �" # � $ % & ���' � � ���������(����

  • Giuseppe Bianchi

    ������������������

    �9�����������$� ��������"�.����3�����% �

    .������ ��(��;��� ��

    �0 ���0 0 5 ����

    �- �� �������� ��� ��0 0 5

  • Giuseppe Bianchi

    ������������������ �$����&��$����&��4�� ������ $����% ���

    ���� ')

    ��� �� � ��� ���� ��� ��

    ����� �� ��, - � �C�����" ������D���

    ����clearly containing router IP address

    ����% ���������)

    ����� �� �� � ��� � ����� � �� � � �� ������ � ��� � � � � � '

    ��� �� � �� 9 0 0 ��� �� � ���

    routerrouter

    routerRTT router n

    router

    host host

    Giuseppe Bianchi

    �����>�% ���6���$�$?�����������>�% ���6���$�$?������

    0 7 8 15 31( � � ���&�� �!� ( � �� % � # $

    �� � �� � � ��� � �# � �� � � ���� � � ��; ��� � ��:�� ���� � ��� �� �� � � �� �� � ��

    ���� �!!�

    ) � # � �� �$ # � � � � � �� &� �:�� ����

    ( � � ��9 �&7�� � � � � # �� � � � ��� � # �� �� ���� ��� �� ���� �� �� �$ �� ���� �&�

    � ���) �& ��������� �� ��������������

    �� �� �� � �� � ��� � �� � �� �9 � � # �� ���

    �� �� � ��

    �( * � �� �� � �

    :�� �����( * � �� � �� ��� �

  • Giuseppe Bianchi

    ������������������ �$����-��$����-��! �� + �, ����� � ���������������

    -�./ �0 12 0 �� .� �3 + 4 5�.! ����������+ , �������� ������������������������ ����

    �����164 ��������7�������������8

    �0 ������������ ����������������������������9

    routerrouter

    router router n

    router

    host host�( * � ��� �

    # � �� � � � � ��

    Giuseppe Bianchi

    !�!-!65-�!-�

    !�!-!65-!5-�

    !�!-!65-!5-!

    !�!-!65-�!-:

    !�!-!65-!�-��

    !�!-!65-!�-4�

    ������)�.��������������$5������)�.��������������$5

    �� � � � # �� � � $ �!�!-!65-�!-�7

    !�!-!65-�!-:

    !�!-!65-!�-4�

    !�!-!65-!5-�

    � � � � � # �� � � $ �!�!-!65-!5-�7

    !�!-!65-!5-!

    !�!-!65-!�-��

    !�!-!65-�!-�

  • Giuseppe Bianchi

    ������������������ ������������:�:�"��%"��% ����% �������% ���� D:\users>tracert www.cisco.com� Rilevazione route a www.cisco.com [198.133.219.25]� su un massimo di 30 punti di passaggio:

    � 1

  • ��

    Giuseppe Bianchi

    ������������������ ������ (�������(�������

    D:\users>tracert www.uniroma2.it

    Rilevazione route a list.uniroma2.it [160.80.2.16]su un massimo di 30 punti di passaggio:

    1

  • ��

    Giuseppe Bianchi

    ������������������ �@�.��@�.�A����$A����$:&'''�:&'''�� D:\users>tracert www.auckland.ac.nz� Rilevazione route a www.auckland.ac.nz [130.216.1.7]� su un massimo di 30 punti di passaggio:

    � 1

  • ��

    Giuseppe Bianchi

    �< !��< � � �� �< ���= �� � � ��� �< ���, �* �

    4���"���% ������4���"���% ������3����������.��8����*��$�""�����3����������.��8����*��$�""�����

    ��6�% �% ����% ������#������#���6�% �% ����% ������#������#�

    !8!-!��-5-6!8!-!��-��-!

    !!�-4�-��-!

    > � # ��� � �

    � �� �� �� �

    * �) 9 4�5�

    * �) 9 !5&&

    �� �� � �� � � $

    �&&&�� ����

    < � � $ �� �� ��� �

    < � � $ �� �� ��� � ��� �� $ �� �� �

    �� ��� ������ �� �� � ��� ��/ � %

    �$ � �� � �# � � / � ��

    Giuseppe Bianchi

    �#��6�% 3����#��6�% 3�������������������

    !68!4�? * ��� % �� �� � �!"* � ��

    * �) ��� ���� �@ ��/ � %

    44"44�* � �� �� % �� > �� � ���= = = �:&�-5�

    4�5�< � � �

    !5&&= �� � � ��

    !48��= = = �:&�-��:&�-�

    56"A -�5

    * � � � � � ����� �8"�� ��� �� � � �� ��# � ��� �� � �� �� �� � �� � � 2�� � �� �

  • ��

    Giuseppe Bianchi

    ����% ���������������% ������% ���������������% ��

    srcdest

    � � �� � � $

    � � �� � � $

    � � � !� � � �

    � � � �

    � � � !

    � � � �

    ����������������� �����!������"�������������� ��

    ���������������!�������!��#��������������#������!�������� ���

    $�����"�����%����������������������!��������&��

    � � � !

    � � � !

    Giuseppe Bianchi

    ���8�����������8��������

    ����$������%

    �� � ��� ���� ���� ��� ������ �

    � � ������ ���� �����

    �before fragmentation and after reassembly

    ����3��8��

    �� � ��� �������� �

    ���% ��� ��� ��� ���� �������� ��

    �� ��� � �����

    �a packet can be either a complete datagram or a fragment

  • ��

    Giuseppe Bianchi

    �&

    �����3���"���% �����������3���"���% ���������3���� ��7���3���� ��7

    Ethernet Ethernet PPPFDDIFDDI PPP

    IP

    TRANSPORT

    IP IP IP

    TRANSPORT

    Sourcehost

    Destinationhost

    �&&&

    �&&&

    �&&&!5&&

    �8"�8"

    �8"�8"

    �8"!5&&

    !5&&!5&&

    !5&&!5&&

    �&�8"

    �8"�8"

    �8"�8"

    �&�8"

    �8"�8"

    �8"�8"

    �&�8"

    �8"�8"

    �8"�8"

    �&&&

    Giuseppe Bianchi

    ������$���������$���!! "���% �������"���$�"���% �������"���$�

    ��$���"������)�

    �� � @ � ����� ��� ��������������� � ��� �� � ������ ���� �� � �� ����������������� ��% �� � �

    �"����)�-� ���)�BC:0�:��D

    �E & � � � ��� � '*�3 : & 3 � � �; : ������ � *�- : & - � ��; : ������ �

    �"���% ����""����E�3�����$�"���% ���3���������������������$������% �3�����$

    ���� � ��� � �� �� � �� �� ��� �� � ��

    ���� ���� �� ��� � ��� � �� �� � � �� �

    � � � �� � �� � ���� � ��

    !"�� ����� �� ����� � ��� �

    ���� ���� � # � � �� �� � � �� �

    ��$ ���� � � ����

    � � �� � � �

    !��� ���� � � $ �� � � ��� ��

    �� � � � � �� % � # $

    ��� � ���� ��

  • ��

    Giuseppe Bianchi

    "���% ������"���% ������

    Data IPHeader IP

    Data IPHeader IP

    Header IP

    Header IP Data IP

    Data IP

    Identification = xxx, DF = 0, MF=1, Fragment Offset =0

    Identification = xxx, DF = 0, MF=0, Fragment Offset =0

    Identification = xxx, DF = 0, MF=1, Fragment Offset = m1

    Identification = xxx, DF = 0, MF=0, Fragment Offset =m2

    m2

    m1

    Giuseppe Bianchi

    ����% ����""�������% ����""���

    ������ ���% ���"���'����2FF�F��&�2!�!&'�

    ������-� �����*���� ��

    ������������� ��& �� ��������� ����� �? �% ����� � �

    �example: fragment offset=322 means fragment payload portion starts from original datagram payload byte=2576

    ��� � �@ � �� ����������� ��+ ���� ��% ������ �� ��� ��? �% ���

    ��� � �@ � �� ������" �? � > $ �������� ��

    ������"���$���"���% ���

    �� ���� �����

    ����� � ��� �����% ��������� ��� ������ ������� �

  • ��

    Giuseppe Bianchi

    ���������% ���"������������% ���"���

    �@�������������$�����$������

    "���% ����������"�����$

    �������� ��� �������������� ��� �� ��: 9 A / - F ) 0 *�� � ��� ��

    3 A 0 A / 9 A - �

    �G �� ��*��� ����

    �� � �� ����� ����� ���� ������������+ �

    ����� ��� ���� ��- : �% �

    ���E�)�������"���% ����"����.

    ���E')��������������"���% ��

    ��� ��� � � �������� ������������*�- : & �

    Giuseppe Bianchi

    ���3�� ��% ��"�"���% ���������3�� ��% ��"�"���% ������

    ��"����"���% �������:�����������

    $������% �% ���� ��������% ����$7

    �9 ����� �

    � �

    ���� �� ��� �� ����������� ��� ��

    � � ������� �� ��

    # ����������������������������������* ������+�

    �����* ����� ����* ���������

  • ��

    Giuseppe Bianchi

    0��0�� ����% ����0���"�������% ����0���"���

    �Impedes routers to perform fragmentation on datagram

    �what happens when router receives datagram with DF on, and cannot deliver in because of too little MTU?�0 � �� � ��� �����������

    �9 ��� �� ��, - � ���

    ����C�������������������" ������

    �������"������D� ��� ��# *��� ���4 '��� �� � ���

    Giuseppe Bianchi

    ������#�$����*���������#�$����*���

    src

    dest

    * �) 9 4&&&

    * �) 9 �&&&

    * �) 9 !5&&

    * �) 9 :&&& * �) 9 �:&&

    * �) 9 �:&&

    * �) 9 �:&&

    �TCP MSS exchange discovers lower MTU (2800) between source and destination network

    �some internal MTU may be lower (1500)�this may be different on uplink & downlink paths

    �uplink = 1500; downlink = dest = 2800

    # ���� %

    � � / � ��� %

  • Giuseppe Bianchi

    ������#�$����*����.������������#�$����*����.����������������������

    �1��� �������

    �������$�$����% ����//

    �/�$�"��������% ���.�����//��$�0�E�������$������%

    ��"���8 �����*�$:��//����9G����"���% �������

    �� �� ������� �� ���������� � �� �3 : & � � �� � ����� �� �������� ��� �'

    ��"������% ������ >���������������������������������������?������*�$)

    � ���� �������� ��+ �� �� �������'�� � ������������������

    �.�����% ����% ��3��������$��������% ��������������.������������#

    ���� ���������� �� �� ��� ��- 7 7

    �9 : , � � > � ����� ���� ��� � ��� � ��.�� ��

    $ 6$ �� ��# �

    Giuseppe Bianchi

    �����>�����>����% ���������$�$� ���0�� ����������% ���������$�$� ���0�� ������?������?������

    0 7 8 15 31( � � ���4� ( � �� % � # $

    �� � �� � � ��� � �# � �� � � ���� � � ��; ��� � ��:�� ���� � ��� �� �� � � �� �� � ��

    ���� ���

    ) � # � �� �� �� &� �:�� ����

    , �� ��� ���� �� � � ���� � � ��4��� ���� ���( * � �B ) � �� � � � � ��C �� � ���������

    �( * � �$ �� � � � ���� $ � �7

    * �) �� ��� �. � � � ��� ��/ � % ��� ���� �

    * �) �� ��� ���� � ��� � �� � ����� �� �/ � ��( * � ��$ ���$ �� �� ��� � ����, � �" � �����" �- � ���������" # � ��& % % . �+��� �(�����- � �����

    � �� ��$ ���$ �� �� ��� � � 7�# � # � �� ��� ���&������ �

  • Giuseppe Bianchi

    �//�$����% ������//�$����% �����

    �4�����.��������% �������"��% )

    �0 , � �G � �����- 7 7 & ��

    �� ������- 0 2 �

    �(minus TCP and IP header, of course)

    ��� ���������� �� ���� ���

    �a following network may have lower MTU!

    �4������$��������% �������"��% �

    �� � �- 0 2 �� ������� � ���� ���� �

    �Ordered list of all possible network MTUs specifedinto details in RFC1191

    » …, 1500, 1492, 1006, 576, 552, 544, 512, 508, 296, ...

    Giuseppe Bianchi

    ����

    ��������������� �������

    ���������

    ������&�������

  • ��

    Giuseppe Bianchi

    4������������������54������������������5

  • ��

    Giuseppe Bianchi

    ��������3���������������3�������

    0 7 8 15 31( � � � ( � �� % � # $

    ( � � ��� � D � ���� � � �� � ������� � � �( � � �

    ����

    �� �� �� � � �( * � �$ �� � � � �

    �E � = 7��� �� ������ ��( * � �$ �� � � � ���!5������ �� �� � � � � �F �� �

    ( � = 7��# �� � �� ��� ����� ��� ��$ �� � � � ���� � ��� � ����� �� � $ �������� � � �� �

    ( = ( G � ) * 7�� � � � ��� �����( * � �$ �� � � � ���# � # � ��� �� � �

    < # �� � � �� � � � ��� ���� � ��� � D � ���� � � �� � ������H �� � � �

    Giuseppe Bianchi

    �����% ��������3�������% ��������3��

    �E � = � = � ( > �� �� @I ) = > E ��

    = > > >

    & = � � � ����� I ) = > E

    � � �� ��� � ��� � �) � �� � � � � �� = > > >

    4 � � # � ��I # �� � � = > > >

    5 > �� ��� � = > > >

    : = � � � �> �J # �� � I ) = > E

    !! ��$ ��= . � ��� �� = > > >

    8 > � # �� �, � � ��� �$ �� � I ) = > E

    !& > � # �� �� � ��� ��� ��� � I ) = > E

    !� � � � $ ��� �� � � ��$ = > > >

    !� ��$ �� �� $ ���J # �� � I ) = > E

    !4 ��$ �� �� $ ������ I ) = > E

    & / ��(�������" �- � ����������� 0 � 1 " 2

    & 3 ��(�������" ��' �������� 0 � 1 " 2

    !6 , � � �� � �* � � % �> �J # �� � I ) = > E

    !: , � � �� � �* � � % �> ���� I ) = > E

    ( � = �

    &

    * � � �7�&K!5

    &

    * � � �7�&K�

    &

    &9 � � � � ��2�!9 �� � � �$ � ��

    &

    &

    &9 � � � �� �� � � 2�!9 $ �� � �� � �� ��

    &

    &

    4

    4

    &

    &

  • ��

    Giuseppe Bianchi

    �����1������ �������"��% �������1������ �������"��% ��always contain always contain infosinfos about IP packet that generated errorabout IP packet that generated error

    � ICMP error NEVER generated in response to ICMP error messages� 0 � ���� ��� �

    % ���� ��� �� ���� � �

    � % � ������ �������% ����� �������� � �� ���� ���% ���, - � �@ � ���

    � ICMP errors also non generated when “broadcast storm” possible� 3 ������������ ����� ��� �% �� ������� ���� ����������

    � 3 ���������� ����� � ������% �� �����

    � : ������ ��� �� ����� �� ��� ������

    � 3 ��������� � � ��� � ������ ��� � ������% ��� ���� � �

    0 7 8 15 31( � � � ( � �� % � # $

    �� � �� � � ��� � �# � �� � � ���� � � ��

    ; ��� � ��:�� ���� � ��� �� �� � � �� �� � ��

    �5

    �� � � ��������6 ���� ����� ����7 ����������� ��� �� ����� (� � � � ����������

    ����

    < # �� � � �� � � � ��� ���� � ��� �:�� ����

    Giuseppe Bianchi

    0���������#������ ������3��-����$��0���������#������ ������3��-����$��

    ( � = � = � ( > �� �� @

    & @ ��/ � % �# � �� � � � � ��

    ! � � ��# � �� � � � � ��

    � � � �� � � ��# � �� � � � � ��

    � � � ��# � �� � � � � ��

    4 < � � $ �� �� ��� � �� ��� �� �� # ��� < �� ���� ��

    6 � �� ��� � ��� � �� � � ��# � % � � / �

    5 � � # � �� � # ����� ����

    " � �� ��� � ��� � �� ��/ � % �# � % � � / �

    : � � # � ��� � � ���� � �� ��� ��� � � � �����

    8 � �� ��� � ��� � �� ��/ � % �� � $ �� �� � � �� ����� � � �� ����

    !& � �� ��� � ��� � �� � � ��� � $ �� �� � � �� ����� � � �� ����

    !! @ ��/ � % �) � �� � � � � ����� ��� �

    !� � � ��) � �� � � � � ����� ��� �

    !� ( � $ $ # � �� � ��� � �� � $ �� �� � � �� ����� � � �� ���� �� ������� �� �

    !4 � � ����� �� �� � �� �� �� ��� �

    !5 � �� �� �� � ��� # �� ����� ������ �

  • ��

    Giuseppe Bianchi

    0���������#������ ������$��0���������#������ ������$��0 7 8 15 31

    ( � � ���&K!5� ( � �� % � # $

    �� � �� � � ; ��� � ��:�� ���� �� �� � �� ��) � � �� �� � � ��

    ���� �!!�

    &&&&&&&&���������&&&&&&&&������������&&&&&&&&�����������&&&&&&&&

    ) � # � �� �� �� � � 7��. � ����� � 7�� � � ��4��� � �� � � $ �� �� ��� � �� �� � # � ��� < �� ���

    � � ��# � �� � � � � ��7��� ��% � � / � �� � $ �:�� ���� ��� �� � �� �� � ��� �

    �( * � �$ �� � � � ��� �F �7�5"�� ���� ��; ��� �� �� � ��� ��/ � % �� �� � � �

    �� � �� � ��( * �

    � �� � �

    �� � �� � � �� ��� � �� � � $

    �� � ��� �� � � ��� �� �

    ) � �

    � �� � �

    �& �&: :

    5"

    = �� � � ���

    � �� � �

    !4

    Giuseppe Bianchi

    �����1������=����J��3��)�����1������=����J��3��)

    ��@K�3�����%��@K�3�����%

    �Name “ping” = sonar operation to locate objects�Client sends ICMP echo request (type 8) and waits

    for ICMP echo reply (type 0)�Meaningwhile, measures the RTT�done over multiple packets, measures loss %

    host host

    �( * � ��� � � ��J # �� �

    �( * � ��� � � �����

    ���� ���������� � ����� � �� ���� � �� ��� � % ��� � ����� �� � ������ � � ���������

  • ��

    Giuseppe Bianchi

    ����$��������������������$����������������

    �@�����3���

    �� � �� �� ����� � � ���� � �

    �� �

    % ���When IP software up, ICMP sw must!

    �/���"����������3��8������L�&����-M�

    ����� �

    � � ����� ��� � �5 A ) 8I A )

    ��������� � ���� � ��� ����� � � � ������� � ���

    �������

    ���L��''����&''�% ��

    ��� � ���� �

    �� ���������� �������� ����

    �������:����������.�$����

    �� ��� � �� �� ���������� ��� �� % �������� ��� ���� � ���� � 666

    Giuseppe Bianchi

    1����% �������"��% ��1����% �������"��% ��0 7 8 15 31

    ( � � ���&� ( � �� % � # $

    ���� � � ��� � ��

    ���� �&�� �:�

    � �J # �� � � � # $ � ��� �� ����� �!"�� ��� �

    � � �J # �� � ��� # $ � � �� �� �� �� � $ �&

    � � �� � � ���2�!���� � �� ���!� ��� ���� � �K� �# � �. 2�K��� � � �

    � �� �� ����� 7�� ���� ��� ���� ���# � �. 7��� �� ��� �� � �� � �� � � �� � �

    � = � � � �����7��� ��� � ����� � ���� ��� � % ����� � � � � �� �� � ��������

    � > ���� � $ �# �� ��� � 7���$ ��� ��� �� � �� � �� �� �� ��� �� � �� ��� ��� �

  • ��

    Giuseppe Bianchi

    ���)��6�% 3������)��6�% 3���

    D:\users>pingSintassi: ping [-t] [-a] [-n numero] [-l lunghezza] [-f] [-i TTL]

    [-v TOS][-r numero] [-s numero] [[-j host-list] | [-k host-list]][-w timeout] elenco-destinatione

    Opzioni:-t Ping eseguito sull'host specificato finché non viene

    interrotto.-a Risolve gli indirizzi in nomi host.-n numero Invia numero di richieste di eco.-l lunghezza Invia dimensione buffer.-f Imposta il flag Non frammentare nel pacchetto.-i TTL Vita pacchetto.-v TOS Tipo di servizio.-r count Registra route per il conteggio dei punti di

    passaggio.-s count Marca orario per il conteggio dei punti di

    passaggio.-j host-list Libera route di origine lungo l'elenco host.-k host-list Restringe route di origine lungo l'elenco host.-w timeout Intervallo attesa (in millisecondi) per ogni

    risposta.

    D:\users>ping -n 3 net.infocom.uniroma1.itEsecuzione di Ping net.infocom.uniroma1.it

    [151.100.37.12] con 32 byte di dati:

    Risposta da 151.100.37.12: byte=32 durata=10msRisposta da 151.100.37.12: byte=32 durata

  • ��

    Giuseppe Bianchi

    �����=������6�% 3��������=������6�% 3���

    0 7 8 15 31( � � ���&� ( � �� % � # $���� �!6�� �!:�

    � �J # �� � � � # $ � ��� �� ����� �!"�� ��� �

    ���� ���� # � � �� $ � � %

    .��������#��/ ���0�!���88��� �������(����9 �������� ���

    !�

    � ����

    0 7 8 15 31( � � ���&� ( � �� % � # $���� �!6�� �!:�

    � �J # �� � � � # $ � ��� �� ����� �!"�� ��� �

    �� �� � �����$ �� �� $ � �(�

    �� �' ��- � �����

    ������!��/ ���0�!������������) ��� �����(������������������ � � ��4�6 �3 +: 44+444�

    �&

    � ����> �� �� � ��$ �� �� $ � �(�

    �� �' ���' �� ��� �����* ���

    �� � � $ �� ��$ �� �� $ � �(�

    �� �' ���' �� ��� ������������