trex-stateless-gui
trex-stateless-gui copied to clipboard
*** error: instruction id '0' fix hw command offsets 68 is too high relative to packet size 60
On trying to create a simple stream, with "IP Address" mode set to "Increment Host", following error is seen on saving the stream, when the stream contents gets validated. This happens only when the frame length is between 64 and 72. Seen with the latest release v4.5.5
Error 22:07:40 *** error: instruction id '0' fix hw command offsets 68 is too high relative to packet size 60
Here is the actual json rpc messages sent and received on creating / validating such a stream
[INFO] 05-15-2019 22:05:01 com.exalttech.trex.core.ConnectionManager sendStreamGroup - [
{
"id": "2JTCTN",
"jsonrpc": "2.0",
"method": "add_stream",
"params": {
"api_h": "DzCO0iCo",
"stream": {
"action_count": 0,
"enabled": true,
"flags": 0,
"flow_stats": {
"enabled": false,
"stream_id": 0
},
"isg": 0.0,
"mode": {
"rate": {
"type": "pps",
"value": 1.0
},
"type": "continuous",
"total_pkts": 1,
"pkts_per_burst": 1,
"ibg": 0.0,
"count": 1
},
"next_stream_id": -1,
"packet": {
"binary": "AAAAAAAAAAAAAAAACABFAAAuBNIAAH8G9vYQAAABMAAAAQQBBAEAAff6AAAAAFLABACz4wAAAKoAAAAA",
"meta": "eyJwcm90b2NvbF9zZWxlY3Rpb24iOnsiaXNfdGFnZ2VkX3ZsYW5fc2VsZWN0ZWQiOmZhbHNlLCJpc19pcHY0X3NlbGVjdGVkIjp0cnVlLCJpc190Y3Bfc2VsZWN0ZWQiOnRydWUsImlzX3VkcF9zZWxlY3RlZCI6ZmFsc2UsImlzX3BhdHRlcm5fc2VsZWN0ZWQiOnRydWUsImZyYW1lX2xlbmd0aF90eXBlIjoiRml4ZWQiLCJmcmFtZV9sZW5ndGgiOiI2NCIsIm1heF9sZW5ndGgiOiIxNTE4IiwibWluX2xlbmd0aCI6IjY0In0sImV0aGVybmV0Ijp7InR5cGUiOiIwODAwIiwiaXNfb3ZlcnJpZGUiOmZhbHNlfSwibWFjIjp7InNvdXJjZSI6eyJhZGRyZXNzIjoiMDA6MDA6MDA6MDA6MDA6MDAiLCJjb3VudCI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CJwYXlsb2FkIjp7InR5cGUiOiJGaXhlZCBXb3JkIiwicGF0dGVybiI6IjAwIn0sInZsYW4iOnsiaXNfb3ZlcnJpZGVfdHBfaWQiOmZhbHNlLCJ0cF9pZCI6IkZGRkYiLCJjZmkiOiIwIiwidl9pZCI6IjAiLCJwcmlvcml0eSI6IjAifSwiYWR2YW5zZWRfcHJvcGVydGllcyI6eyJjYWNoZV92YWx1ZSI6IjUwMDAiLCJjYWNoZV9zaXplX3R5cGUiOiJBdXRvIn0sIm1vZGVsX3ZlcnNpb24iOiIxLjAifQ\u003d\u003d",
"model": ""
},
"rx_stats": {
"enabled": false
},
"self_start": true,
"advanced_mode": false,
"vm": {
"split_by_var": "ip_dest",
"instructions": [
{
"init_value": 1,
"min_value": 1,
"max_value": 2,
"name": "ip_dest",
"op": "inc",
"size": 1,
"step": 1,
"type": "flow_var"
},
{
"add_value": 0,
"is_big_endian": true,
"name": "ip_dest",
"pkt_offset": 33,
"type": "write_flow_var"
},
{
"type": "fix_checksum_hw",
"l2_len": 14,
"l3_len": 34,
"l4_type": 17
}
],
"cache_size": 5000
}
},
"stream_id": 0,
"handler": "L9LPsfS7",
"port_id": 0
}
}
]
[TRACE] 05-15-2019 22:05:01 com.exalttech.trex.core.ConnectionManager handleResponse - Received Server response
[
{
"id": "2JTCTN",
"jsonrpc": "2.0",
"result": {}
}
]
[TRACE] 05-15-2019 22:05:01 com.exalttech.trex.core.RPCMethods validateStream - Validating Stream on port(s) [0]:
[TRACE] 05-15-2019 22:05:01 com.exalttech.trex.core.ConnectionManager sendRPCRequest - Sending request
{
"id": "PHU6DQ",
"jsonrpc": "2.0",
"method": "validate",
"params": {
"api_h": "DzCO0iCo",
"handler": "L9LPsfS7",
"port_id": 0
}
}
[TRACE] 05-15-2019 22:05:01 com.exalttech.trex.core.ConnectionManager handleResponse - Received Server response
[
{
"error": {
"code": -32000,
"message": "Failed To Execute Method",
"specific_err": "*** error: instruction id \u00270\u0027 fix hw command offsets 68 is too high relative to packet size 60"
},
"id": "PHU6DQ",
"jsonrpc": "2.0"
}
]
[ERROR] 05-15-2019 22:05:01 com.exalttech.trex.core.ConnectionManager handleResponse - *** error: instruction id '0' fix hw command offsets 68 is too high relative to packet size 60
[ERROR] 05-15-2019 22:05:01 com.exalttech.trex.ui.controllers.MainViewController assignProfile - Failed to load Stream
com.exalttech.trex.remote.exceptions.IncorrectRPCMethodException: Incorrect RPC Method Received*** error: instruction id '0' fix hw command offsets 68 is too high relative to packet size 60
{
"error": {
"code": -32000,
"message": "Failed To Execute Method",
"specific_err": "*** error: instruction id \u00270\u0027 fix hw command offsets 68 is too high relative to packet size 60"
},
"id": "PHU6DQ",
"jsonrpc": "2.0"
}
at com.exalttech.trex.core.ConnectionManager.handleResponse(ConnectionManager.java:460)
at com.exalttech.trex.core.ConnectionManager.sendRPCRequest(ConnectionManager.java:293)
at com.exalttech.trex.core.RPCMethods.validateStream(RPCMethods.java:313)
at com.exalttech.trex.core.RPCMethods.assignTrafficProfile(RPCMethods.java:184)
at com.exalttech.trex.ui.controllers.MainViewController.assignProfile(MainViewController.java:745)
at com.exalttech.trex.ui.controllers.MainViewController.doUpdateAssignedProfile(MainViewController.java:1392)
at com.exalttech.trex.ui.controllers.MainViewController.tryUpdateProfile(MainViewController.java:1544)
at com.exalttech.trex.ui.controllers.MainViewController.tryUpdateProfile(MainViewController.java:1554)
at com.exalttech.trex.ui.controllers.MainViewController.streamTableUpdated(MainViewController.java:1744)
at com.exalttech.trex.ui.controllers.MainViewController.access$200(MainViewController.java:107)
at com.exalttech.trex.ui.controllers.MainViewController$2.lambda$handle$0(MainViewController.java:880)
at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:361)
at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
at javafx.beans.property.ReadOnlyBooleanPropertyBase.fireValueChangedEvent(ReadOnlyBooleanPropertyBase.java:72)
at javafx.beans.property.ReadOnlyBooleanWrapper.fireValueChangedEvent(ReadOnlyBooleanWrapper.java:103)
at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:110)
at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:144)
at javafx.stage.Window.setFocused(Window.java:452)
at com.sun.javafx.stage.WindowPeerListener.changedFocused(WindowPeerListener.java:59)
at com.sun.javafx.tk.quantum.GlassWindowEventHandler.run(GlassWindowEventHandler.java:98)
at com.sun.javafx.tk.quantum.GlassWindowEventHandler.run(GlassWindowEventHandler.java:40)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.quantum.GlassWindowEventHandler.lambda$handleWindowEvent$422(GlassWindowEventHandler.java:151)
at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
at com.sun.javafx.tk.quantum.GlassWindowEventHandler.handleWindowEvent(GlassWindowEventHandler.java:149)
at com.sun.glass.ui.Window.handleWindowEvent(Window.java:1270)
at com.sun.glass.ui.Window.notifyFocus(Window.java:1249)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.lambda$null$48(GtkApplication.java:139)
at java.lang.Thread.run(Thread.java:748)
Hi, Thank you for the input, I'll check it.
Thanks for following up on this issue. Just wanted to let you know that this issue happens only with version v4.5.5 and version v4.5.4 worked fine
Yes, I see, seems that tcp/udp checksum fix for dynamically changed IP addresses should be improved
чт, 16 мая 2019 г. в 17:48, hprem [email protected]:
Thanks for following up on this issue. Just wanted to let you know that this issue happens only with version v4.5.5 and version v4.5.4 worked fine
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cisco-system-traffic-generator/trex-stateless-gui/issues/111?email_source=notifications&email_token=AINDXDPT65KDMHB2KEBX5W3PVU3YZA5CNFSM4HNHAQPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVRNXMI#issuecomment-493018033, or mute the thread https://github.com/notifications/unsubscribe-auth/AINDXDPC5SDMRSCJFBQQ2MDPVU3YZANCNFSM4HNHAQPA .
-- Egor Blagov https://www.xored.com Software engineer at Xored Software Inc. Mobile: +7 (923) 190 2319 <//+7-923-190-2319> | Skype: i_am_union | Email: [email protected]