Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tsn-measures
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
tsn-measures
Commits
67fbbe68
Commit
67fbbe68
authored
May 29, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update wrapper scripts
parent
cbc7221e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
scripts/run_client
scripts/run_client
+7
-4
scripts/run_server
scripts/run_server
+10
-5
No files found.
scripts/run_client
View file @
67fbbe68
...
...
@@ -3,7 +3,7 @@
script_dir
=
$(
dirname
$(
realpath
$0
))
usage
()
{
echo
"Usage:
$0
-e delta
|-p
[-i INTERVAL] [-t] [-d TX_BUFFER_LEN]"
1>&2
;
echo
"Usage:
$0
-e delta
| -p [-b]
[-i INTERVAL] [-t] [-d TX_BUFFER_LEN]"
1>&2
;
exit
1
;
}
...
...
@@ -14,8 +14,11 @@ interval=100000
client_options
=
"-a -p 99 -f eth0"
qdisc_options
=
""
while
getopts
"d:e:i:pt"
opt
;
do
while
getopts
"
b
d:e:i:pt"
opt
;
do
case
"
${
opt
}
"
in
b
)
client_options+
=
" -b"
;;
d
)
client_options+
=
" -d
${
OPTARG
}
"
;;
...
...
@@ -49,8 +52,8 @@ if [ -n "${use_etf}" ] && [ -n "${use_pfast}" ]; then
usage
fi
echo
"
$script_dir
/
create_qdisc
$qdisc_options
"
;
echo
"create_qdisc
$qdisc_options
"
;
$script_dir
/create_qdisc
$qdisc_options
;
echo
"
$script_dir
/../packet-exchange/build/
client_arm
$client_options
-i
$interval
192.168.99.25"
;
echo
"client_arm
$client_options
-i
$interval
192.168.99.25"
;
$script_dir
/../packet-exchange/build/client_arm
$client_options
-i
$interval
192.168.99.25
;
scripts/run_server
View file @
67fbbe68
...
...
@@ -3,12 +3,17 @@
script_dir
=
$(
dirname
$(
realpath
$0
))
usage
()
{
echo
"Usage:
$0
[-t NB_PACKETS]"
1>&2
;
echo
"Usage:
$0
[
[-b] |
-t NB_PACKETS]"
1>&2
;
exit
1
;
}
while
getopts
"t:"
opt
;
do
server_options
=
"-a -p 99"
while
getopts
"bt:"
opt
;
do
case
"
${
opt
}
"
in
b
)
server_options+
=
" -b"
;;
t
)
use_tcpdump
=
1
nb_packets
=
${
OPTARG
}
...
...
@@ -26,9 +31,9 @@ if [ -n "${use_tcpdump}" ]; then
tcpdump
-c
$nb_packets
-i
eth0
-w
tmp.pcap
-tt
--time-stamp-precision
=
nano udp port 50000
;
echo
"tshark -r tmp.pcap --disable-protocol dcp-etsi --disable-protocol dcp-pft -t e -E separator=, -T fields -e frame.number -e frame.time_epoch -e data.data > tmp.out"
;
tshark
-r
tmp.pcap
--disable-protocol
dcp-etsi
--disable-protocol
dcp-pft
-t
e
-E
separator
=
,
-T
fields
-e
frame.number
-e
frame.time_epoch
-e
data.data
>
tmp.out
;
echo
"
$script_dir
/
txtime_stats.py -f tmp.out"
;
echo
"txtime_stats.py -f tmp.out"
;
$script_dir
/txtime_stats.py
-f
tmp.out
;
else
echo
"
$script_dir
/../packet-exchange/build/server_arm -a -p 99
"
;
$script_dir
/../packet-exchange/build/server_arm
-a
-p
99
;
echo
"
server_arm
$server_options
"
;
$script_dir
/../packet-exchange/build/server_arm
$server_options
;
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment