{"id":140,"date":"2023-06-30T18:01:20","date_gmt":"2023-06-30T18:01:20","guid":{"rendered":"https:\/\/www.isi.edu\/proxy-postel-center\/?page_id=140"},"modified":"2023-07-07T15:01:08","modified_gmt":"2023-07-07T15:01:08","slug":"tg-sample-scripts","status":"publish","type":"page","link":"https:\/\/www.isi.edu\/proxy-postel-center\/tg\/tg-sample-scripts\/","title":{"rendered":"TG Sample Scripts"},"content":{"rendered":"\n\n\t<h2>Sample Scripts<\/h2>\n<a href=\"#udp\">UDP<\/a><br \/>\n<a href=\"#tcp\">TCP<\/a><br \/>\n<a href=\"#mcast\">Multicast<\/a><br \/>\n<a href=\"#qos\">QOS<\/a>\n<h2><a id=\"udp\" name=\"udp\"><\/a>UDP<\/h2>\n<h3 align=\"left\">Client (<a href=\"https:\/\/www.isi.edu\/proxy-postel-center\/wp-content\/uploads\/sites\/32\/2023\/07\/udp_client.tg_.zip\">udp_client.tg<\/a>)<\/h3>\n# This file specifies the following to TG:<br \/>\n# 1. At 15 secs open a UDP socket to send packets to the server #waiting at 192.168.10.1 and port 4322<br \/>\n# 2. after 5 secs setup (times specified are relative to the start time &#8211;<br \/>\n# 15 secs here.)<br \/>\n# 3. starting at time 6 secs send constant packets to the server with<br \/>\n# interpacket transmission time being 0.01 secs ( == 100 packets\/sec)<br \/>\n# for 20 secs.<br \/>\non 0:15 udp 192.168.10.1.4322<br \/>\nat 5 setup<br \/>\nat 6 arrival constant 0.01 length constant 576<br \/>\ntime 20\n<h3>Server (<a href=\"https:\/\/www.isi.edu\/proxy-postel-center\/wp-content\/uploads\/sites\/32\/2023\/07\/udp_server.tg_.zip\">udp_server.tg<\/a>)<\/h3>\n# This script instructs TG to execute in the server or the sink mode<br \/>\n# in which it only receives packets and records the information in the<br \/>\n# binary log file. TG is initialized at time 15 secs from the start, and<br \/>\n# starting at 1.1 secs after initialization it waits for clients to<br \/>\n# send data.<br \/>\n#<br \/>\non 0:15 udp 192.168.10.1.4322 server<br \/>\nat 1.1 wait\n<h2><a id=\"tcp\" name=\"tcp\"><\/a>TCP<\/h2>\n<h3>Client (<a href=\"https:\/\/www.isi.edu\/proxy-postel-center\/wp-content\/uploads\/sites\/32\/2023\/07\/tcp_client.tg_.zip\">tcp_client.tg<\/a>)<\/h3>\n# This file specifies the following to TG:<br \/>\n# 1. At 15 secs open a TCP socket to send packets to the server #waiting at<br \/>\n# 192.168.10.1 and port 4322<br \/>\n# 2. at 5 secs connect to the server (time relative to the start time )<br \/>\n# 3. starting at time 6 secs send exponentially varying-sized packets, #with mean size of 576 bytes, to the server with exponentially varying<br \/>\n# interpacket transmission times with a mean of 0.02 secs ( == 50<br \/>\n# packets\/sec) for 20 secs.<br \/>\n# 4. Change phase at time 30 sec to send constant sized packets of 1024 bytes<br \/>\n# but exponentially varying interarrival times with mean of 0.01 secs.<br \/>\n# This is executed for 20 secs before TG exits\non 0:15 tcp 192.168.10.1.4322<br \/>\nat 5 setup<br \/>\nat 6 arrival exponential 0.02 length exponential 576<br \/>\ntime 20<br \/>\nat 30 arrival exponential 0.01 length constant 1024<br \/>\ntime 20\n<h3>Server (<a href=\"https:\/\/www.isi.edu\/proxy-postel-center\/wp-content\/uploads\/sites\/32\/2023\/07\/tcp_server.tg_.zip\">tcp_server.tg<\/a>)<\/h3>\n# This script instructs TG to execute in the server or the sink mode<br \/>\n# in which it only receives packets and records the information in the<br \/>\n# binary log file. TG is initialized at time 15 secs from the start, and<br \/>\n# starting at 1.1 secs after initialization it waits for clients to<br \/>\n# send data, but only for 100 secs.<br \/>\n#<br \/>\non 0:15 tcp 192.168.10.1.4322 server<br \/>\nat 1.1 wait 100\n<h2><a id=\"mcast\" name=\"mcast\"><\/a>Multicast<\/h2>\n<h3>Client (<a href=\"https:\/\/www.isi.edu\/proxy-postel-center\/wp-content\/uploads\/sites\/32\/2023\/07\/mcast_client.tg_.zip\">mcast_client.tg<\/a>)<\/h3>\n<p># The syntax is the same as that of udp_client.tg. The only difference #here is that multicast support is in the form of being able to specify #multicast addresses. The 239.192.0.1 multicast address specification #allows TG to receive multicast packets as well.<\/p>\non 0:15 udp 239.192.0.1.4322<br \/>\nat 5 setup<br \/>\nat 6 arrival constant 0.01 length constant 576<br \/>\ntime 20\n<h3>Server (<a href=\"https:\/\/www.isi.edu\/proxy-postel-center\/wp-content\/uploads\/sites\/32\/2023\/07\/mcast_server.tg_.zip\">mcast_server.tg<\/a>)<\/h3>\n# This script instructs TG to execute in the server or the sink mode<br \/>\n# in which it only receives packets and records the information in the<br \/>\n# binary log file. TG is initialized at time 15 secs from the start, and<br \/>\n# starting at 1.1 secs after initialization it waits for clients to<br \/>\n# send data. The 239.192.0.1 multicast address specification allows TG to<br \/>\n# receive multicast packets as well.\non 0:15 udp 239.192.0.1.4322 server<br \/>\nat 1.1 wait\n<h2><a id=\"qos\" name=\"qos\"><\/a>QoS<\/h2>\n<h3>Client(<a href=\"https:\/\/www.isi.edu\/proxy-postel-center\/wp-content\/uploads\/sites\/32\/2023\/07\/qos_client.tg_.zip\">qos_server.tg<\/a>)<\/h3>\n#<br \/>\n# Type of Service\/QOS field depends on the OS support for setting<br \/>\n# the TOS field in the IP header as specified in the RFC 791.<br \/>\n#(e.g., # SunOS 4.4.1 does not support setting TOS field). A subset<br \/>\n# of the bits from the original TOS field are currently used for<br \/>\n# supporting Differentiated Services. See RFC 2474<br \/>\n#<br \/>\non 0:15 udp 192.168.10.1.4322<br \/>\ntos 30<br \/>\nat 5 setup<br \/>\nat 6 arrival constant 0.01 length constant 576<br \/>\ntime 5\n<h3>Server (<a href=\"https:\/\/www.isi.edu\/proxy-postel-center\/wp-content\/uploads\/sites\/32\/2023\/07\/mcast_server.tg_.zip\">qos_server.tg<\/a>)<\/h3>\n# This script instructs TG to execute in the server or the sink mode<br \/>\n# in which it only receives packets and records the information in the<br \/>\n# binary log file. TG is initialized at time 15 secs from the start, and<br \/>\n# starting at 1.1 secs after initialization it waits for clients to<br \/>\n# send data.<br \/>\n#<br \/>\non 0:15 udp 192.168.10.1.4322 server<br \/>\nat 1.1 wait\n\n","protected":false},"excerpt":{"rendered":"<p>Sample Scripts UDP TCP Multicast QOS UDP Client (udp_client.tg) # This file specifies the following to TG: # 1. At 15 secs open a UDP socket to send packets to the server #waiting at 192.168.10.1 and port 4322 # 2. after 5 secs setup (times specified are relative to the start time &#8211; # 15&hellip;<\/p>\n","protected":false},"author":421,"featured_media":0,"parent":135,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"news_source":"","news_author":"","external_news_link":"","footnotes":""},"class_list":["post-140","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>TG Sample Scripts - Postel Center<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.isi.edu\/proxy-postel-center\/tg\/tg-sample-scripts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"TG Sample Scripts - Postel Center\" \/>\n<meta property=\"og:description\" content=\"Sample Scripts UDP TCP Multicast QOS UDP Client (udp_client.tg) # This file specifies the following to TG: # 1. At 15 secs open a UDP socket to send packets to the server #waiting at 192.168.10.1 and port 4322 # 2. after 5 secs setup (times specified are relative to the start time &#8211; # 15&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.isi.edu\/proxy-postel-center\/tg\/tg-sample-scripts\/\" \/>\n<meta property=\"og:site_name\" content=\"Postel Center\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-07T15:01:08+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.isi.edu\/proxy-postel-center\/tg\/tg-sample-scripts\/\",\"url\":\"https:\/\/www.isi.edu\/proxy-postel-center\/tg\/tg-sample-scripts\/\",\"name\":\"TG Sample Scripts - Postel Center\",\"isPartOf\":{\"@id\":\"https:\/\/www.isi.edu\/proxy-postel-center\/#website\"},\"datePublished\":\"2023-06-30T18:01:20+00:00\",\"dateModified\":\"2023-07-07T15:01:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.isi.edu\/proxy-postel-center\/tg\/tg-sample-scripts\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.isi.edu\/proxy-postel-center\/tg\/tg-sample-scripts\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.isi.edu\/proxy-postel-center\/tg\/tg-sample-scripts\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.isi.edu\/proxy-postel-center\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"TG Tool\",\"item\":\"https:\/\/www.isi.edu\/proxy-postel-center\/tg\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"TG Sample Scripts\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.isi.edu\/proxy-postel-center\/#website\",\"url\":\"https:\/\/www.isi.edu\/proxy-postel-center\/\",\"name\":\"Postel Center\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.isi.edu\/proxy-postel-center\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"TG Sample Scripts - Postel Center","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.isi.edu\/proxy-postel-center\/tg\/tg-sample-scripts\/","og_locale":"en_US","og_type":"article","og_title":"TG Sample Scripts - Postel Center","og_description":"Sample Scripts UDP TCP Multicast QOS UDP Client (udp_client.tg) # This file specifies the following to TG: # 1. At 15 secs open a UDP socket to send packets to the server #waiting at 192.168.10.1 and port 4322 # 2. after 5 secs setup (times specified are relative to the start time &#8211; # 15&hellip;","og_url":"https:\/\/www.isi.edu\/proxy-postel-center\/tg\/tg-sample-scripts\/","og_site_name":"Postel Center","article_modified_time":"2023-07-07T15:01:08+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.isi.edu\/proxy-postel-center\/tg\/tg-sample-scripts\/","url":"https:\/\/www.isi.edu\/proxy-postel-center\/tg\/tg-sample-scripts\/","name":"TG Sample Scripts - Postel Center","isPartOf":{"@id":"https:\/\/www.isi.edu\/proxy-postel-center\/#website"},"datePublished":"2023-06-30T18:01:20+00:00","dateModified":"2023-07-07T15:01:08+00:00","breadcrumb":{"@id":"https:\/\/www.isi.edu\/proxy-postel-center\/tg\/tg-sample-scripts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.isi.edu\/proxy-postel-center\/tg\/tg-sample-scripts\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.isi.edu\/proxy-postel-center\/tg\/tg-sample-scripts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.isi.edu\/proxy-postel-center\/"},{"@type":"ListItem","position":2,"name":"TG Tool","item":"https:\/\/www.isi.edu\/proxy-postel-center\/tg\/"},{"@type":"ListItem","position":3,"name":"TG Sample Scripts"}]},{"@type":"WebSite","@id":"https:\/\/www.isi.edu\/proxy-postel-center\/#website","url":"https:\/\/www.isi.edu\/proxy-postel-center\/","name":"Postel Center","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.isi.edu\/proxy-postel-center\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.isi.edu\/proxy-postel-center\/wp-json\/wp\/v2\/pages\/140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.isi.edu\/proxy-postel-center\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.isi.edu\/proxy-postel-center\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.isi.edu\/proxy-postel-center\/wp-json\/wp\/v2\/users\/421"}],"replies":[{"embeddable":true,"href":"https:\/\/www.isi.edu\/proxy-postel-center\/wp-json\/wp\/v2\/comments?post=140"}],"version-history":[{"count":0,"href":"https:\/\/www.isi.edu\/proxy-postel-center\/wp-json\/wp\/v2\/pages\/140\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.isi.edu\/proxy-postel-center\/wp-json\/wp\/v2\/pages\/135"}],"wp:attachment":[{"href":"https:\/\/www.isi.edu\/proxy-postel-center\/wp-json\/wp\/v2\/media?parent=140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}