i cut some part of the irule and it seems okay on my testbed. are you able to find out more information?
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm rule myrule
ltm rule myrule {
when CLIENT_ACCEPTED {
log local0. "[TCP::remote_port]-[TCP::local_port]"
Device Watchdog (in hex)
set DWA_head 010000400000011800000000
origin host: BIG-IP 4249472d4950
origin realm: test.com 746573742e636f6d
set DWA_avp 0000010c4000000c000007d1000001084000000e4249472d495000000000012840000010746573742e636f6d
TCP::collect
}
when CLIENT_DATA {
while { [TCP::payload length] > 20 } {
binary scan [TCP::payload] IIIII a b c d e
set comcode [ expr $b & 0xffffff ]
set rflag [expr ($b >> 31) & 1 ]
set mlen [ expr $a & 0xffffff ]
if { [TCP::payload length] < $mlen }{
TCP::collect
return
}
switch $comcode {
280 {
if { $rflag } {
log local0. "reply to watchdog from [IP::remote_addr]"
binary scan [TCP::payload] x8IH8H8 a h e
TCP::payload replace 0 $mlen ""
TCP::respond [binary format H* ${DWA_head}$h$e${DWA_avp} ]
}
}
}
TCP::release $mlen
}
TCP::collect
}
}
No. Time Delta Time Source Src port Destination Dst port Protocol Window BiF Vlan id Length Info
8 2012-07-04 23:01:31.157199 0.000000 192.168.206.55 53893 172.28.19.252 3868 DIAMETER 66560 20 74 cmd=Device-WatchdogRequest(280) flags=R--- appl=Diameter Common Messages(0) h2h=ffd648f0 e2e=1ccb0074
Frame 8: 74 bytes on wire (592 bits), 74 bytes captured (592 bits)
Ethernet II, Src: Dell_7a:ae:2a (5c:26:0a:7a:ae:2a), Dst: Force10N_3f:7b:66 (00:01:e8:3f:7b:66)
Internet Protocol Version 4, Src: 192.168.206.55 (192.168.206.55), Dst: 172.28.19.252 (172.28.19.252)
Transmission Control Protocol, Src Port: 53893 (53893), Dst Port: 3868 (3868), Seq: 197, Ack: 177, Len: 20
Diameter Protocol
Version: 0x01
Length: 20
Flags: 0x80
Command Code: 280 Device-Watchdog
ApplicationId: 0
Hop-by-Hop Identifier: 0xffd648f0
End-to-End Identifier: 0x1ccb0074
[Answer In: 11]
No. Time Delta Time Source Src port Destination Dst port Protocol Window BiF Vlan id Length Info
11 2012-07-04 23:01:31.255105 0.097906 172.28.19.252 3868 192.168.206.55 53893 DIAMETER 3996 64 118 cmd=Device-WatchdogAnswer(280) flags=---- appl=Diameter Common Messages(0) h2h=ffd648f0 e2e=1ccb0074
Frame 11: 118 bytes on wire (944 bits), 118 bytes captured (944 bits)
Ethernet II, Src: Force10N_3f:7b:66 (00:01:e8:3f:7b:66), Dst: Dell_7a:ae:2a (5c:26:0a:7a:ae:2a)
Internet Protocol Version 4, Src: 172.28.19.252 (172.28.19.252), Dst: 192.168.206.55 (192.168.206.55)
Transmission Control Protocol, Src Port: 3868 (3868), Dst Port: 53893 (53893), Seq: 177, Ack: 237, Len: 64
Diameter Protocol
Version: 0x01
Length: 64
Flags: 0x00
Command Code: 280 Device-Watchdog
ApplicationId: 0
Hop-by-Hop Identifier: 0xffd648f0
End-to-End Identifier: 0x1ccb0074
[Request In: 8]
[Response Time: 0.097906000 seconds]
AVP: Result-Code(268) l=12 f=-M- val=DIAMETER_SUCCESS (2001)
AVP: Origin-Host(264) l=14 f=-M- val=BIG-IP
AVP: Origin-Realm(296) l=16 f=-M- val=test.com