Embedded Packet Trace
The P-335 packet trace records and analyzes packets running on LAN and WAN interfaces. It is designed for users with technical backgrounds who are interested in the details of the packet flow on LAN or WAN end of P-335. It is also very helpful for diagnostics if you have compatibility problems with your ISP or if you want to know the details of a packet for configuring a filter rule.
The format of the display is as following:
Packet:
0 11880.160 ENET0-R[0062] TCP 192.168.1.2:1108->192.31.7.130:80 |
[index] [timer/second][channel-receive/transmit][length] [protocol] [sourceIP/port] [destIP/port]
There are two ways to dump the trace:
The details for capturing the trace in SMT menu 24.8 are as follows.
1. Trace LAN packet
2. Trace WAN packet
1.1 Disable to capture the WAN packet by entering: sys
trcp channel enet1 none
1.2 Enable to capture the LAN packet by entering: sys trcp
channel enet0 bothway
1.3 Enable the trace log by entering: sys trcp sw on & sys trcl sw on
1.4 Display the brief trace online by entering: sys trcd
brief
or
1.5 Display the detailed trace online by entering: sys trcd
parse
Example:
P335> sys trcp channel enet1 none P335> sys trcp channel enet0 bothway P335> sys trcp sw on P335> sys trcl sw on P335> sys trcd brief 0 11880.160 ENET0-R[0062] TCP 192.168.1.2:1108->192.31.7.130:80 1 11883.100 ENET0-R[0062] TCP 192.168.1.2:1108->192.31.7.130:80 2 11883.330 ENET0-T[0058] TCP 192.31.7.130:80->192.168.1.2:1108 3 11883.340 ENET0-R[0060] TCP 192.168.1.2:1108->192.31.7.130:80 4 11883.340 ENET0-R[0339] TCP 192.168.1.2:1108->192.31.7.130:80 5 11883.610 ENET0-T[0054] TCP 192.31.7.130:80->192.168.1.2:1108 6 11883.620 ENET0-T[0102] TCP 192.31.7.130:80->192.168.1.2:1108 7 11883.630 ENET0-T[0054] TCP 192.31.7.130:80->192.168.1.2:1108 8 11883.630 ENET0-R[0060] TCP 192.168.1.2:1108->192.31.7.130:80 9 11883.650 ENET0-R[0060] TCP 192.168.1.2:1108->192.31.7.130:80 10 11883.650 ENET0-R[0062] TCP 192.168.1.2:1109->192.31.7.130:80 P335> sys trcd parse ---<0000>---------------------------------------------------------------- LAN Frame: ENET0-RECV Size: 62/ 62 Time: 12089.790 sec Frame Type: TCP 192.168.1.2:1116->192.31.7.130:80 Ethernet
Header: IP Header: TCP Header: RAW DATA: Ethernet Header: IP Header: TCP Header: RAW DATA: Ethernet Header: IP Header: TCP Header: TCP Data: (Length=6, Captured=6) RAW DATA: |
1.1 Disable to capture the LAN packet by entering: sys
trcp channel enet0 none
1.2 Enable to capture the WAN packet by entering: sys trcp
channel enet1 bothway
1.3 Enable the trace log by entering: sys trcp sw on & sys trcl sw on
1.4 Display the brief trace online by entering: sys trcd
brief
or
1.5 Display the detailed trace online by entering: sys trcd
parse
Example:
P335> sys trcp channel enet0 none P335> sys trcp channel enet1 bothway P335> sys trcp sw on P335> sys trcl sw on P335> sys trcd brief 0 12367.680 ENET1-R[0070] UDP 202.132.155.95:520->202.132.155.255:520 1 12370.980 ENET1-T[0062] TCP 202.132.155.97:10261->192.31.7.130:80 2 12373.940 ENET1-T[0062] TCP 202.132.155.97:10261->192.31.7.130:80 3 12374.930 ENET1-R[0064] TCP 192.31.7.130:80->202.132.155.97:10261 4 12374.940 ENET1-T[0054] TCP 202.132.155.97:10261->192.31.7.130:80 5 12374.940 ENET1-T[0438] TCP 202.132.155.97:10261->192.31.7.130:80 6 12375.320 ENET1-R[0064] TCP 192.31.7.130:80->202.132.155.97:10261 7 12375.360 ENET1-R[0090] UDP 202.132.155.95:520->202.132.155.255:520 P335> sys trcd parse ---<0000>---------------------------------------------------------------- LAN Frame: ENET1-RECV Size:1181/ 96 Time: 12387.260 sec Frame Type: TCP 192.31.7.130:80->202.132.155.97:10270 Ethernet
Header: IP Header: TCP Header: TCP Data: (Length=1127, Captured=42) RAW DATA: Ethernet Header: IP Header: TCP Header: RAW DATA: Ethernet Header: IP Header: TCP Header: RAW DATA: |
1. Trace LAN packet
2. Trace WAN packet
1.1 Disable to capture the WAN packet by entering: sys
trcp channel enet1 none
1.2 Enable to capture the LAN packet by entering: sys trcp
channel enet0 bothway
1.3 Enable the trace log by entering: sys trcp sw on & sys trcl sw on
1.4 Wait for packet passing through P-335 over LAN
1.5 Disable the trace log by entering: sys trcp sw off & sys trcl sw off
1.6 Display the trace briefly by entering: sys trcp brief
1.7 Display specific packets by using: sys trcp parse
<from_index> <to_index>
Exmaple:
P335> sys trcp channel enet1 none P335> sys trcp channel enet0 bothway P335> sys trcp sw on P335> sys trcl sw on P335> sys trcp sw off P335> sys trcl sw off P335> sys trcp brief 0 10855.790 ENET0-T[0141] TCP 192.31.7.130:80->192.168.1.2:1102 1 10855.800 ENET0-R[0060] TCP 192.168.1.2:1102->192.31.7.130:80 2 10855.810 ENET0-R[0062] TCP 192.168.1.2:1103->192.31.7.130:80 3 10855.840 ENET0-R[0062] TCP 192.168.1.2:1104->192.31.7.130:80 4 10856.020 ENET0-T[0054] TCP 192.31.7.130:80->192.168.1.2:1102
6 10856.040 ENET0-R[0060] TCP
192.168.1.2:1103->192.31.7.130:80 Ethernet Header: IP Header: TCP Header: RAW DATA: |
1.1 Disable to capture the LAN packet by entering: sys
trcp channel enet0 none
1.2 Enable to capture the WAN packet by entering: sys trcp
channel enet1 bothway
1.3 Enable the trace log by entering: sys trcp sw on & sys trcl sw on
1.4 Wait for packet passing through P-335 over WAN
1.5 Disable the trace log by entering: sys trcp sw off & sys trcl sw off
1.6 Display the trace briefly by entering: sys trcp brief
1.7 Display specific packets by using: sys trcp parse
<from_index> <to_index>
Example:
P335> sys trcp channel enet0 none P335> sys trcp channel enet1 bothway P335> sys trcl sw on P335> sys trcp sw on P335> sys trcl sw off P335> sys trcp sw off P335> sys trcp brief 0 12864.800 ENET1-T[0411] TCP 202.132.155.97:10278->204.217.0.2:80 1 12864.890 ENET1-R[0247] TCP 204.217.0.2:80->202.132.155.97:10282 2 12864.900 ENET1-T[0416] TCP 202.132.155.97:10282->204.217.0.2:80 3 12865.120 ENET1-R[0247] TCP 204.217.0.2:80->202.132.155.97:10278 4 12865.130 ENET1-T[0411] TCP 202.132.155.97:10278->204.217.0.2:80 5 12865.220 ENET1-R[0247] TCP 204.217.0.2:80->202.132.155.97:10282 P335> sys trcp parse 3 4 ---<0003>---------------------------------------------------------------- LAN Frame: ENET1-RECV Size: 247/ 96 Time: 12865.120 sec Frame Type: TCP 204.217.0.2:80->202.132.155.97:10278 Ethernet
Header: IP Header: TCP Header: TCP Data: (Length=193, Captured=42) RAW DATA: Ethernet Header: IP Header: TCP Header: TCP Data: (Length=357, Captured=42) RAW DATA: |
All contents copyright ?1999 ZyXEL Communications Corporation.