== Release 2.08 ==
-* Scapy server for GUI packet crafting, see link:trex_scapy_rpc_server.html[trex_scapy_rpc_server]
-* Client.start Python API supports Core mask - significantly improve the Stateless performance. TBD- Itay to update the pointer here
+* Scapy JSON-RPC server for GUI packet crafting, see link:trex_scapy_rpc_server.html[trex_scapy_rpc_server]
+* Client.start Python API supports Core mask - significantly improve the Stateless performance. link:cp_stl_docs/_modules/trex_stl_lib/trex_stl_client.html#STLClient.start[start API], *TBD*- Itay to update the pointer here
* Upgrade the ./dpdk_setup_ports.py script. It simplifies the way to create first time *optimized* config file (/etc/trex_cfg.yaml)
[source,bash]
$sudo ./dpdk_setup_ports.py -c 03:00.0 03:00.1 # create optimum /etc/trex_cfg.yaml file
----
+*Yaroslav* TBD
+
* Basic Cisco VIC functionality works now. Advanced Stateless/Stateful functionality is still not supported.
=== fix issues: ===
==== Supported versions
Supported Linux versions:
+
* Fedora 20-23, 64-bit kernel (not 32-bit)
* Ubuntu 14.04.1 LTS, 64-bit kernel (not 32-bit)
* Ubuntu 16.xx LTS, 64-bit kernel (not 32-bit)
|=================
| Description | Name
| Stateless server RPC specification |
-link:trex_rpc_server_spec.html[server.html]
+link:trex_rpc_server_spec.html[stl_rpc_server.html]
+| Scapy server RPC specification |
+link:trex_scapy_rpc_server.html[scapy_rpc_spec.html]
| How to build |
link:https://github.com/cisco-system-traffic-generator/trex-core/wiki[Wiki]
|=================
The RPC reprensentation protocol is JSON RPC v2.0.
Every request and response will be encoded in a JSON RPC v2.0 format.
-{zwsp} +
-
+{zwsp}+
For more info on JSON RPC v2.0 spec please refer to:
-{zwsp} +
+{zwsp}+
http://www.jsonrpc.org/specification
-{zwsp} +
+{zwsp}+
Later on in the document we will describe all the supported commands.
--- /dev/null
+
+
+
+
+
+
:local_web_server_url: csi-wiki-01:8181/trex
:toclevels: 4
-++++
-<script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-
- ga('create', 'UA-75220362-1', 'auto');
- ga('send', 'pageview');
-
-</script>
-++++
+include::trex_ga.asciidoc[]
== Change log
== Audience of this document
-Anyone who wants to create,edit and assemble packets for TRex
-
-
+TRex GUI guys
== Scapy RPC Server - Overview
Scapy Server is implemented following the link:http://www.jsonrpc.org/specification[JSON-RPC 2.0 specification], +
Read more about ZMQ link:http://zguide.zeromq.org/page:all[here]
-
image::images/Scapy_JSON_rpc_server.png[title="Scapy JSON RPC Server",align="left",width=800, link="images/Scapy_JSON_rpc_server.png"]
=== Error Codes
(field name, field type, default value) +
-[example]
+.Example
====
*Example:* +
this is the 'dst' field for the 'Ether' protocol
[field offset (within the layer), field size] +
-[example]
+.Example
====
*Example:* +
This is the 'src' field for the 'IP' protocol: +
+
-[example]
+.Example
====
*Example:* +
This is the Offsets Dictionary for the IP layer: +
'Protocol Name' : 'Protocol Field Description' +
+
-[example]
+.Example
====
*Example*: +
[source,bash]
bld(rule=convert_to_html_toc_book,
source='trex_rpc_server_spec.asciidoc waf.css', target='trex_rpc_server_spec.html',scan=ascii_doc_scan);
+ bld(rule=convert_to_html_toc_book,
+ source='trex_scapy_rpc_server.asciidoc waf.css', target='trex_scapy_rpc_server.html',scan=ascii_doc_scan);
bld(rule='${ASCIIDOC} -a stylesheet=${SRC[1].abspath()} -a icons=true -a toc2 -a max-width=55em -o ${TGT} ${SRC[0].abspath()}',
source='vm_doc.asciidoc waf.css', target='vm_doc.html', scan=ascii_doc_scan)
bld(rule='${ASCIIDOC} -a stylesheet=${SRC[1].abspath()} -a icons=true -a toc2 -a max-width=55em -o ${TGT} ${SRC[0].abspath()}',
source='packet_builder_yaml.asciidoc waf.css', target='packet_builder_yaml.html', scan=ascii_doc_scan)
- bld(rule='${ASCIIDOC} -a stylesheet=${SRC[1].abspath()} -a icons=true -a toc2 -a max-width=55em -o ${TGT} ${SRC[0].abspath()}',
- source='trex_scapy_rpc_server.asciidoc waf.css', target='trex_scapy_rpc_server.html', scan=ascii_doc_scan)
bld(rule='${ASCIIDOC} -a stylesheet=${SRC[1].abspath()} -a icons=true -a toc2 -a max-width=55em -o ${TGT} ${SRC[0].abspath()}',
source='trex_control_plane_design_phase1.asciidoc waf.css', target='trex_control_plane_design_phase1.html', scan=ascii_doc_scan)