码迷,mamicode.com
首页 > 其他好文 > 详细

hdlc抓包分析

时间:2017-08-22 10:47:17      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:hdlc

R2(config)#int s2/2
R2(config-if)#ip addr 202.100.23.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#
*Aug 21 16:19:30.153: %LINK-3-UPDOWN: Interface Serial2/2, changed state to up
*Aug 21 16:19:31.155: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/2, changed state to up
R2(config-if)#
*Aug 21 16:19:59.976: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/2, changed state to down
R2(config-if)#
*Aug 21 16:20:09.973: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/2, changed state to up
R2(config-if)#end
R2#sh ip
*Aug 21 16:20:21.022: %SYS-5-CONFIG_I: Configured from console by console
R2#sh ip route 202.100.23.3
Routing entry for 202.100.23.0/24
  Known via "connected", distance 0, metric 0 (connected, via interface)
  Routing Descriptor Blocks:
  * directly connected, via Serial2/2
      Route metric is 0, traffic share count is 1
R2#ping 202.100.23.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 202.100.23.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/14/20 ms
R2#sh int s2/2
Serial2/2 is up, line protocol is up 
  Hardware is M4T
  Internet address is 202.100.23.2/24
  MTU 1500 bytes, BW 1544 Kbit/sec, DLY 20000 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation HDLC, crc 16, loopback not set
  Keepalive set (10 sec)
  Restart-Delay is 0 secs
  Last input 00:00:04, output 00:00:03, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     17 packets input, 2084 bytes, 0 no buffer
     Received 12 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles 
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     25 packets output, 3299 bytes, 0 underruns
     0 output errors, 0 collisions, 2 interface resets
     0 unknown protocol drops
     0 output buffer failures, 0 output buffers swapped out
     3 carrier transitions     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up
     
R3(config)#int s3/3
R3(config-if)#ip addr 202.100.23.3 255.255.255.0
R3(config-if)#no shut
R3(config-if)#
*Aug 21 16:20:02.833: %LINK-3-UPDOWN: Interface Serial3/3, changed state to up
*Aug 21 16:20:03.840: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/3, changed state to up
R3(config-if)#
     
#wireshak抓包
Frame 2: 24 bytes on wire (192 bits), 24 bytes captured (192 bits) on interface 0
    Interface id: 0 (-)
    Encapsulation type: Cisco HDLC (28)
    Arrival Time: Aug 22, 2017 00:19:28.943079000 й
    [Time shift for this packet: 0.000000000 seconds]
    Epoch Time: 1503332368.943079000 seconds
    [Time delta from previous captured frame: 0.781037000 seconds]
    [Time delta from previous displayed frame: 0.781037000 seconds]
    [Time since reference or first frame: 0.781037000 seconds]
    Frame Number: 2
    Frame Length: 24 bytes (192 bits)
    Capture Length: 24 bytes (192 bits)
    [Frame is marked: False]
    [Frame is ignored: False]
    [Protocols in frame: chdlc:slarp]
Cisco HDLC
    Address: Multicast (0x8f)
    Control: 0x00
    Protocol: SLARP (0x8035)
Cisco SLARP
    Packet type: Line keepalive (2)
    Outgoing sequence number: 1
    Returned sequence number: 0
    Reliability: 0xffff

Frame 5: 24 bytes on wire (192 bits), 24 bytes captured (192 bits) on interface 0
    Interface id: 0 (-)
    Encapsulation type: Cisco HDLC (28)
    Arrival Time: Aug 22, 2017 00:19:38.948860000 й
    [Time shift for this packet: 0.000000000 seconds]
    Epoch Time: 1503332378.948860000 seconds
    [Time delta from previous captured frame: 7.686116000 seconds]
    [Time delta from previous displayed frame: 7.686116000 seconds]
    [Time since reference or first frame: 10.786818000 seconds]
    Frame Number: 5
    Frame Length: 24 bytes (192 bits)
    Capture Length: 24 bytes (192 bits)
    [Frame is marked: False]
    [Frame is ignored: False]
    [Protocols in frame: chdlc:slarp]
Cisco HDLC
    Address: Multicast (0x8f)
    Control: 0x00
    Protocol: SLARP (0x8035)
Cisco SLARP
    Packet type: Line keepalive (2)
    Outgoing sequence number: 1
    Returned sequence number: 0
    Reliability: 0xffff
    
Frame 6: 24 bytes on wire (192 bits), 24 bytes captured (192 bits) on interface 0
    Interface id: 0 (-)
    Encapsulation type: Cisco HDLC (28)
    Arrival Time: Aug 22, 2017 00:19:48.960462000 й
    [Time shift for this packet: 0.000000000 seconds]
    Epoch Time: 1503332388.960462000 seconds
    [Time delta from previous captured frame: 10.011602000 seconds]
    [Time delta from previous displayed frame: 10.011602000 seconds]
    [Time since reference or first frame: 20.798420000 seconds]
    Frame Number: 6
    Frame Length: 24 bytes (192 bits)
    Capture Length: 24 bytes (192 bits)
    [Frame is marked: False]
    [Frame is ignored: False]
    [Protocols in frame: chdlc:slarp]
Cisco HDLC
    Address: Multicast (0x8f)
    Control: 0x00
    Protocol: SLARP (0x8035)
Cisco SLARP
    Packet type: Line keepalive (2)
    Outgoing sequence number: 2
    Returned sequence number: 0
    Reliability: 0xffff
Frame 7: 24 bytes on wire (192 bits), 24 bytes captured (192 bits) on interface 0
    Interface id: 0 (-)
    Encapsulation type: Cisco HDLC (28)
    Arrival Time: Aug 22, 2017 00:19:58.971612000 й
    [Time shift for this packet: 0.000000000 seconds]
    Epoch Time: 1503332398.971612000 seconds
    [Time delta from previous captured frame: 10.011150000 seconds]
    [Time delta from previous displayed frame: 10.011150000 seconds]
    [Time since reference or first frame: 30.809570000 seconds]
    Frame Number: 7
    Frame Length: 24 bytes (192 bits)
    Capture Length: 24 bytes (192 bits)
    [Frame is marked: False]
    [Frame is ignored: False]
    [Protocols in frame: chdlc:slarp]
Cisco HDLC
    Address: Multicast (0x8f)
    Control: 0x00
    Protocol: SLARP (0x8035)
Cisco SLARP
    Packet type: Line keepalive (2)
    Outgoing sequence number: 3
    Returned sequence number: 0
    Reliability: 0xffff
    
Frame 12: 24 bytes on wire (192 bits), 24 bytes captured (192 bits) on interface 0
    Interface id: 0 (-)
    Encapsulation type: Cisco HDLC (28)
    Arrival Time: Aug 22, 2017 00:20:08.283878000 й
    [Time shift for this packet: 0.000000000 seconds]
    Epoch Time: 1503332408.283878000 seconds
    [Time delta from previous captured frame: 1.763341000 seconds]
    [Time delta from previous displayed frame: 1.763341000 seconds]
    [Time since reference or first frame: 40.121836000 seconds]
    Frame Number: 12
    Frame Length: 24 bytes (192 bits)
    Capture Length: 24 bytes (192 bits)
    [Frame is marked: False]
    [Frame is ignored: False]
    [Protocols in frame: chdlc:slarp]
Cisco HDLC
    Address: Multicast (0x8f)
    Control: 0x00
    Protocol: SLARP (0x8035)
Cisco SLARP
    Packet type: Line keepalive (2)
    Outgoing sequence number: 1
    Returned sequence number: 0
    Reliability: 0xffff
Frame 13: 24 bytes on wire (192 bits), 24 bytes captured (192 bits) on interface 0
    Interface id: 0 (-)
    Encapsulation type: Cisco HDLC (28)
    Arrival Time: Aug 22, 2017 00:20:08.974619000 й
    [Time shift for this packet: 0.000000000 seconds]
    Epoch Time: 1503332408.974619000 seconds
    [Time delta from previous captured frame: 0.690741000 seconds]
    [Time delta from previous displayed frame: 0.690741000 seconds]
    [Time since reference or first frame: 40.812577000 seconds]
    Frame Number: 13
    Frame Length: 24 bytes (192 bits)
    Capture Length: 24 bytes (192 bits)
    [Frame is marked: False]
    [Frame is ignored: False]
    [Protocols in frame: chdlc:slarp]
Cisco HDLC
    Address: Multicast (0x8f)
    Control: 0x00
    Protocol: SLARP (0x8035)
Cisco SLARP
    Packet type: Line keepalive (2)
    Outgoing sequence number: 4
    Returned sequence number: 1
    Reliability: 0xffff
Frame 15: 24 bytes on wire (192 bits), 24 bytes captured (192 bits) on interface 0
    Interface id: 0 (-)
    Encapsulation type: Cisco HDLC (28)
    Arrival Time: Aug 22, 2017 00:20:18.287355000 й
    [Time shift for this packet: 0.000000000 seconds]
    Epoch Time: 1503332418.287355000 seconds
    [Time delta from previous captured frame: 8.309871000 seconds]
    [Time delta from previous displayed frame: 8.309871000 seconds]
    [Time since reference or first frame: 50.125313000 seconds]
    Frame Number: 15
    Frame Length: 24 bytes (192 bits)
    Capture Length: 24 bytes (192 bits)
    [Frame is marked: False]
    [Frame is ignored: False]
    [Protocols in frame: chdlc:slarp]
Cisco HDLC
    Address: Multicast (0x8f)
    Control: 0x00
    Protocol: SLARP (0x8035)
Cisco SLARP
    Packet type: Line keepalive (2)
    Outgoing sequence number: 2
    Returned sequence number: 4
    Reliability: 0xffff
Frame 17: 24 bytes on wire (192 bits), 24 bytes captured (192 bits) on interface 0
    Interface id: 0 (-)
    Encapsulation type: Cisco HDLC (28)
    Arrival Time: Aug 22, 2017 00:20:18.983543000 й
    [Time shift for this packet: 0.000000000 seconds]
    Epoch Time: 1503332418.983543000 seconds
    [Time delta from previous captured frame: 0.289949000 seconds]
    [Time delta from previous displayed frame: 0.289949000 seconds]
    [Time since reference or first frame: 50.821501000 seconds]
    Frame Number: 17
    Frame Length: 24 bytes (192 bits)
    Capture Length: 24 bytes (192 bits)
    [Frame is marked: False]
    [Frame is ignored: False]
    [Protocols in frame: chdlc:slarp]
Cisco HDLC
    Address: Multicast (0x8f)
    Control: 0x00
    Protocol: SLARP (0x8035)
Cisco SLARP
    Packet type: Line keepalive (2)
    Outgoing sequence number: 5
    Returned sequence number: 2
    Reliability: 0xffff
Frame 19: 24 bytes on wire (192 bits), 24 bytes captured (192 bits) on interface 0
    Interface id: 0 (-)
    Encapsulation type: Cisco HDLC (28)
    Arrival Time: Aug 22, 2017 00:20:28.300209000 й
    [Time shift for this packet: 0.000000000 seconds]
    Epoch Time: 1503332428.300209000 seconds
    [Time delta from previous captured frame: 8.603183000 seconds]
    [Time delta from previous displayed frame: 8.603183000 seconds]
    [Time since reference or first frame: 60.138167000 seconds]
    Frame Number: 19
    Frame Length: 24 bytes (192 bits)
    Capture Length: 24 bytes (192 bits)
    [Frame is marked: False]
    [Frame is ignored: False]
    [Protocols in frame: chdlc:slarp]
Cisco HDLC
    Address: Multicast (0x8f)
    Control: 0x00
    Protocol: SLARP (0x8035)
Cisco SLARP
    Packet type: Line keepalive (2)
    Outgoing sequence number: 3
    Returned sequence number: 5
    Reliability: 0xffff
Frame 20: 24 bytes on wire (192 bits), 24 bytes captured (192 bits) on interface 0
    Interface id: 0 (-)
    Encapsulation type: Cisco HDLC (28)
    Arrival Time: Aug 22, 2017 00:20:28.988014000 й
    [Time shift for this packet: 0.000000000 seconds]
    Epoch Time: 1503332428.988014000 seconds
    [Time delta from previous captured frame: 0.687805000 seconds]
    [Time delta from previous displayed frame: 0.687805000 seconds]
    [Time since reference or first frame: 60.825972000 seconds]
    Frame Number: 20
    Frame Length: 24 bytes (192 bits)
    Capture Length: 24 bytes (192 bits)
    [Frame is marked: False]
    [Frame is ignored: False]
    [Protocols in frame: chdlc:slarp]
Cisco HDLC
    Address: Multicast (0x8f)
    Control: 0x00
    Protocol: SLARP (0x8035)
Cisco SLARP
    Packet type: Line keepalive (2)
    Outgoing sequence number: 6
    Returned sequence number: 3
    Reliability: 0xffff
    
Frame 21: 104 bytes on wire (832 bits), 104 bytes captured (832 bits) on interface 0
    Interface id: 0 (-)
    Encapsulation type: Cisco HDLC (28)
    Arrival Time: Aug 22, 2017 00:20:34.504765000 й
    [Time shift for this packet: 0.000000000 seconds]
    Epoch Time: 1503332434.504765000 seconds
    [Time delta from previous captured frame: 5.516751000 seconds]
    [Time delta from previous displayed frame: 5.516751000 seconds]
    [Time since reference or first frame: 66.342723000 seconds]
    Frame Number: 21
    Frame Length: 104 bytes (832 bits)
    Capture Length: 104 bytes (832 bits)
    [Frame is marked: False]
    [Frame is ignored: False]
    [Protocols in frame: chdlc:ip:icmp:data]
    [Coloring Rule Name: ICMP]
    [Coloring Rule String: icmp || icmpv6]
Cisco HDLC
    Address: Unicast (0x0f)
    Control: 0x00
    Protocol: IP (0x0800)
Internet Protocol Version 4, Src: 202.100.23.2, Dst: 202.100.23.3
Internet Control Message Protocol

Frame 22: 104 bytes on wire (832 bits), 104 bytes captured (832 bits) on interface 0
    Interface id: 0 (-)
    Encapsulation type: Cisco HDLC (28)
    Arrival Time: Aug 22, 2017 00:20:34.515784000 й
    [Time shift for this packet: 0.000000000 seconds]
    Epoch Time: 1503332434.515784000 seconds
    [Time delta from previous captured frame: 0.011019000 seconds]
    [Time delta from previous displayed frame: 0.011019000 seconds]
    [Time since reference or first frame: 66.353742000 seconds]
    Frame Number: 22
    Frame Length: 104 bytes (832 bits)
    Capture Length: 104 bytes (832 bits)
    [Frame is marked: False]
    [Frame is ignored: False]
    [Protocols in frame: chdlc:ip:icmp:data]
    [Coloring Rule Name: ICMP]
    [Coloring Rule String: icmp || icmpv6]
Cisco HDLC
    Address: Unicast (0x0f)
    Control: 0x00
    Protocol: IP (0x0800)
Internet Protocol Version 4, Src: 202.100.23.3, Dst: 202.100.23.2
Internet Control Message Protocol


hdlc抓包分析

标签:hdlc

原文地址:http://f1yinsky.blog.51cto.com/12568071/1958212

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!