This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
aix:aix_net_testing [2022/10/26 17:53] manu |
aix:aix_net_testing [2023/09/11 16:37] (current) manu |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Test Network ===== | ===== Test Network ===== | ||
+ | |||
+ | ==== Test packet size (MTU) ==== | ||
+ | |||
+ | You can check the maximum packet size on network using ping | ||
+ | <cli prompt='#'> | ||
+ | [root@testh]/root# ping -c2 -w 10 -s 1470 nim01 | ||
+ | 1478 bytes from 172.10.10.10: icmp_seq=2 ttl=64 time=0 ms | ||
+ | 45 00 05 c6 c3 8f 00 00 40 01 32 51 ac 15 13 8b * E.......@.2Q.... | ||
+ | ac 15 13 8d 00 00 7b be 01 3a 00 03 64 ff 17 2d * ......{..:..d..- | ||
+ | 00 0b 8c c0 00 84 01 3a 00 01 02 03 04 05 06 07 * .......:........ | ||
+ | 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 * ................ | ||
+ | 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27 * ........ !"#$%&' | ||
+ | 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37 * ()*+,-./01234567 | ||
+ | 38 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 45 46 47 * 89:;<=>?@ABCDEFG | ||
+ | 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 55 56 57 * HIJKLMNOPQRSTUVW | ||
+ | 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 65 66 67 * XYZ[\]^_`abcdefg | ||
+ | 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 75 76 77 * hijklmnopqrstuvw | ||
+ | 78 79 7a 7b 7c 7d 7e 7f 80 81 82 83 84 85 86 87 * xyz{|}~......... | ||
+ | 88 89 8a 8b 8c 8d 8e 8f 90 91 92 93 94 95 96 97 * ................ | ||
+ | 98 99 9a 9b 9c 9d 9e 9f a0 a1 a2 a3 a4 a5 a6 a7 * ................ | ||
+ | ... | ||
+ | </cli> | ||
+ | |||
+ | If packet size are to high, you 'll have a packet lost 100% | ||
+ | <cli prompt='#'> | ||
+ | [root@testh]/root# ping -c2 -w 10 -D -s 9000 nim01 | ||
+ | PING nim01.lu (172.10.10.10): 1500 data bytes | ||
+ | |||
+ | --- nim01.lu ping statistics --- | ||
+ | 2 packets transmitted, 0 packets received, 100% packet loss | ||
+ | </cli> | ||
+ | |||
+ | Generate network trafic and check the packet size, here packet 1500, on NFS | ||
+ | <cli prompt='#'> | ||
+ | [root@testh]/root# tcpdump -i en1 -vvv host myserver.lu | ||
+ | 16:33:44.209433 IP (tos 0x0, ttl 60, id 20437, offset 0, flags [none], proto TCP (6), length 1500) | ||
+ | testh.lu.42305 > myserver.lu.shilp: Flags [.], cksum 0x0000 (incorrect -> 0xa6bb), seq 495870232:495871680, ack 4016785, win 65535, options [nop,nop,TS val 1698414524 ecr 4145383147], length 1448: NFS request xid 0 0 null | ||
+ | 16:33:44.209438 IP (tos 0x0, ttl 60, id 20438, offset 0, flags [none], proto TCP (6), length 1500) | ||
+ | testh.lu.42305 > myserver.lu.shilp: Flags [.], cksum 0x0000 (incorrect -> 0xa113), seq 495871680:495873128, ack 4016785, win 65535, options [nop,nop,TS val 1698414524 ecr 4145383147], length 1448: NFS request xid 0 0 null | ||
+ | 16:33:44.209445 IP (tos 0x0, ttl 60, id 20439, offset 0, flags [none], proto TCP (6), length 1500) | ||
+ | testh.lu.42305 > myserver.lu.shilp: Flags [.], cksum 0x0000 (incorrect -> 0x9b6b), seq 495873128:495874576, ack 4016785, win 65535, options [nop,nop,TS val 1698414524 ecr 4145383147], length 1448: NFS request xid 0 0 null | ||
+ | |||
+ | 29300 packets captured | ||
+ | 462059 packets received by filter | ||
+ | 432674 packets dropped by kernel | ||
+ | </cli> | ||
+ | |||
+ | | ||
==== Reset count in netstat ==== | ==== Reset count in netstat ==== | ||