<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-35259639</id><updated>2008-11-06T08:13:05.562-08:00</updated><title type='text'>Lynn's Industrial Protocols over IP</title><subtitle type='html'>Discussing my adventures in "IP-Enabling" commercial devices that don't always appreciate being liberated from serial or Ethernet. I have been Ethernet-enabling serial devices for over a decade.  However my current job involves putting Ethernet devices up on cellular (as in cell-phone) machine-to-machine data plans. I currently have a public demo site with with Rockwell, Modbus, GE, Siemens, DNP3 and other industrial PLC/devices up on cellular.</subtitle><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default?start-index=26&amp;max-results=25'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://iatips.com/blog/atom.xml'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>54</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-35259639.post-5278322795141761709</id><published>2008-08-07T07:05:00.000-07:00</published><updated>2008-08-07T08:23:13.512-07:00</updated><title type='text'>Creeping Firewalls and Change</title><content type='html'>Summary: Network infrastructure changes can create unexpected havoc (surprised?)&lt;br /&gt;&lt;br /&gt;We had a customer come in with a complaint recently about some old products - a 4-port terminal server (a TS4) running &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;Modbus&lt;/span&gt; bridging firmware.  Things had gone on smoothly for years, but suddenly they started having problems which power-cycling the units solved ... obviously it's a &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;Digi&lt;/span&gt; problem, right?&lt;br /&gt;&lt;br /&gt;Well, I'm not going to run through all of the issues, but I'll highlight one which will affect more and more people over time.  Remember the old days - first you had dumb &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;dialup&lt;/span&gt; modems, then you had to pay a lot for various error-detection standards, and now all analog modems have a big chip which does a hundred different standard things and you &lt;span style="font-weight: bold; font-style: italic;"&gt;CANNOT buy any low-cost analog dial-up modem which is any dumber than state-of-the-art.&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;Such creep occurs in Ethernet switches also - once hubs were cheap and switches cost a king's ransom.  Now even the "cheap" $19 home switches purchased in big-box stores are auto-sense, auto-cross, auto-&lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_3"&gt;everything&lt;/span&gt;.  The same things happens - once the features are rolled into software or firmware, future revs of the product inherit such features for free ... said another way, it is often cheaper to sell lots of one powerful model than handle the marketing and support costs of a dozen models of various power and feature-set.&lt;br /&gt;&lt;br /&gt;Well, &lt;span style="font-weight: bold; font-style: italic;"&gt;this customer had been upgrading their wide-area-network infrastructure&lt;/span&gt; - a tangle of routed &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;IP&lt;/span&gt;-based leased lines, old analog lines, radio/microwave links and so one, and as part of the improvement the various router/PPP end-points had added &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;stateful&lt;/span&gt; awareness of packets ... part of an increase in US government security demands for utilities.  After all, when you have hundreds of raw Ethernet ports scattered across rural American protected with little more than a padlock and chain-link fence, one has to consider the possibility of someone trying to 'jack' back into the 100% private network from a remote location.&lt;br /&gt;&lt;br /&gt;The issue with such an addition is that routers with firewalls commonly default to a 5-minute &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;TCP&lt;/span&gt; life rule.  Every &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;stateful&lt;/span&gt; firewall creates a table entry for every &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;TCP&lt;/span&gt; or &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;UDP&lt;/span&gt; activity going "out" from a safer network and into a wilder, less safe network - your home &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;DSL&lt;/span&gt;/Cable router does the same thing.  NAT (etc) is optional, but bottom line is the firewall needs to understand and agree to the context of every packet trying to pass through.&lt;br /&gt;&lt;br /&gt;For a &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;TCP&lt;/span&gt; socket this usually means at least 1 packet (data or &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;ACK&lt;/span&gt; or &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;Keepalive&lt;/span&gt;) must move every 5 minutes to refresh the context and inform the firewall that the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;TCP&lt;/span&gt; socket is still authorized.  If no packets are seen, the fire wall discards the context and the socket is now ignored and 100% blocked without comment.  Of course both &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;TCP&lt;/span&gt; peers might think the socket is alive and well, but they will never be able to use it again.&lt;br /&gt;&lt;br /&gt;So back to our TS4 off in some remote field - a host computer has 4 &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;TCP&lt;/span&gt; sockets open to it through various routed &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_17"&gt;subnets&lt;/span&gt; and for whatever reason the host doesn't send any new packets for 6 minutes.  The TS4 has no reason to talk since it is connected to &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_18"&gt;Modbus&lt;/span&gt; slaves.  So 6 minutes later the host issues 4 &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_19"&gt;Modbus&lt;/span&gt; requests on 4 sockets, which hit the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_20"&gt;stateful&lt;/span&gt; firewall.  The firewall looks up the context (called forwarding or trigger rules in some systems) and discovers there is no existing context for these &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_21"&gt;TCP&lt;/span&gt; packets.  Well, once upon a time the firewall would just assume since these were safe since they came from the safe side, and thus auto-create a new context, yet modern &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_22"&gt;stateful&lt;/span&gt; firewalls might NOT do this since it was a common hacker exploit to fool firmwalls to move malformed packets.  Thus modern security demands that the first packet of any new &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_23"&gt;TCP&lt;/span&gt; socket be a [SYN] packet.  All four packets are silently discarded as unknown (&lt;span style="font-style: italic;"&gt;note: this is a configurable behavior in most firewalls - to auto-recreate a context for an 'old' &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_24"&gt;TCP&lt;/span&gt; socket continuing or to only allow this for new &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_25"&gt;TCP&lt;/span&gt; sockets.&lt;/span&gt;)&lt;br /&gt;&lt;br /&gt;The TS4 never sees the four new request; the host sees neither an [&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_26"&gt;ACK&lt;/span&gt;] nor a [&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_27"&gt;RST&lt;/span&gt;] of the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_28"&gt;TCP&lt;/span&gt; socket, so it retries after 3 seconds, then 6 and so on.  Eventually it comprehends the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_29"&gt;TCP&lt;/span&gt; socket has died and opens four new &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_30"&gt;TCP&lt;/span&gt; sockets.  These are allowed through the firewall since they contain the correct TCP state as being new sockets.  The TS4 sees the four new socket requests and now has eight (8) sockets connected.&lt;br /&gt;&lt;br /&gt;Now you might say "What a minute - the four old sockets were closed!".  Well, yes - the HOST knows they are dead and closed them, but the TS4 does not know this.  Six minutes later, the same is repeated and the TS4 now has 12, then 16, then 20 sockets open.  Eventually the TS4 runs out of resources, and the customer's open recovery option is a hard reboot of the TS4.  This is of course worse if the host only &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_31"&gt;occasionally&lt;/span&gt; takes longer than 5 minutes to poll, since the increase in TS4 sockets could take an unpredictable amount of time to build up.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;How to solve this problem?&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;The first line of defense in the modern &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_32"&gt;IP&lt;/span&gt; age is to always, ALWAYS enable &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_33"&gt;TCP&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_34"&gt;keepalives&lt;/span&gt; with an aggressive 4 minute 30 second idle time in any product you install.  Even if you don't have &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_35"&gt;stateful&lt;/span&gt; packet inspection within your &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_36"&gt;IP&lt;/span&gt; network today, that doesn't mean the next time someone replaces a router or serial &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_37"&gt;PPP&lt;/span&gt; end-point you won't gain one.  Unfortunately the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_38"&gt;Digi&lt;/span&gt; products usually default to a 2 hour &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_39"&gt;TCP&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_40"&gt;Keepalive&lt;/span&gt; - which is also disabled (for historical reasons).  Yet having a 4.5 minute keepalive would have saved the TS4 because the first time the host delayed longer than 4.5 minutes to poll, the TS4 would have sent a &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_41"&gt;TCP&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_42"&gt;keepalive&lt;/span&gt; packet back through the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_43"&gt;stateful&lt;/span&gt; firewall, which the host returns and the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_44"&gt;firewall's&lt;/span&gt; context for this socket is refreshed.  Thus when the host does finally send the next &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_45"&gt;Modbus&lt;/span&gt; poll after 6 minutes (1.5 minutes after the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_46"&gt;TCP&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_47"&gt;keepalive&lt;/span&gt; exchange) the firewall is &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_48"&gt;satisfied&lt;/span&gt; with the packets and forwards them out to the TS4.  Everyone is happy.  Plus even if the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_49"&gt;TCP&lt;/span&gt; socket has been aborted by the firewall, the TS4's &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_50"&gt;TCP&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_51"&gt;keepalive&lt;/span&gt; will be &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_52"&gt;silently&lt;/span&gt; discarded and the TS4 will retry and &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_53"&gt;eventually&lt;/span&gt; comprehend that the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_54"&gt;TCP&lt;/span&gt; socket is no longer valid.  This is the purpose of TCP Keepalive - to allow a TCP peer with no data to move to test (and refresh) the health of an idle connection.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;The second possibility is unique to the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_55"&gt;Digi&lt;/span&gt; IA/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_56"&gt;Modbus&lt;/span&gt; application.  You can enable a setting &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_57"&gt;referred&lt;/span&gt; to as "&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_58"&gt;idletimeout&lt;/span&gt;" on incoming client or outgoing server connections.  Unlike the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_59"&gt;TCP&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_60"&gt;Keepalive&lt;/span&gt; which create traffic and keeps an idle socket open, the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_61"&gt;idletimeout&lt;/span&gt; literally just aborts an idle socket without giving it any chance to prove it is healthy.  So setting a 5 minute idle timeout in the TS4 would cause it to just assume any incoming &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_62"&gt;Modbus&lt;/span&gt; client (master) connection which has NOT sent a new request is bad.  This setting would also have saved the TS4, forcing the four old sockets to be aborted before the TS4 had a chance to build up a herd of dead sockets.&lt;/li&gt;&lt;/ol&gt;So understanding TCP Keepalive is a critical skill for all modern industrial Ethernet users, after all more and more facilities are breaking their floors and functional area into distinct subnets with stateful firewall protection to keep the Accountants from changing the color of the widgets being produced - and to keep the production engineers from printing on the accounting departments laser printer which uses red ink :-).&lt;br /&gt;&lt;br /&gt;&lt;a href="http://tldp.org/HOWTO/TCP-Keepalive-HOWTO/overview.html"&gt;More complete discussion of TCP Keepalive is here&lt;/a&gt; (one of dozens of web site you can find in a web search).</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/5278322795141761709/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=5278322795141761709' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/5278322795141761709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/5278322795141761709'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2008/08/creeping-firewalls-and-change.html' title='Creeping Firewalls and Change'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-695717031308817233</id><published>2008-08-01T09:51:00.000-07:00</published><updated>2008-08-01T10:06:21.254-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Device Access'/><category scheme='http://www.blogger.com/atom/ns#' term='Cellular'/><category scheme='http://www.blogger.com/atom/ns#' term='Serial'/><title type='text'>Tunneling Serial Data over Cellular</title><content type='html'>&lt;span style="font-size:130%;"&gt;Tunneling Serial Data over Cellular&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Question&lt;/span&gt;: you have a Windows-based application which expects to talk over normal serial ports - how can you connect to a remote serial device over a cellular-IP link?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Products&lt;/span&gt;: works with Digi Connect WAN, WANIA or WANVPN, Digi ConnectPort VPN, X4 or X8&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Answer&lt;/span&gt;: Our Digi RealPort driver for Windows 2000/XP/Vista dated Nov 2008 now supports a nice low-overhead "UDP: Serial Data Only" mode. This will cost a fraction of what normal TCP-mode Realport or competitors TCP redirectors will cost.&lt;br /&gt;&lt;br /&gt;Here is a web page explaining how to install RealPort for UDP mode (DDNS names can be used!)&lt;br /&gt;&lt;a href="http://digitips.wikispaces.com/Digi+Realport+with+UDP"&gt;http://digitips.wikispaces.com/Digi+Realport+with+UDP&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here is a web page explaining how to set the WANIA to UDP Sockets.&lt;br /&gt;&lt;a href="http://digitips.wikispaces.com/Digi+UDP+Sockets+WAN"&gt;http://digitips.wikispaces.com/Digi+UDP+Sockets+WAN&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I set this up yesterday and have been polling a Modbus/ASCII serial slave on my CPX4 using RealPort and UDP mode. Responses take from 2 to 3 seconds to return … in part because I am polling so slowly that the modem PARKS in between every poll and I wait 30 seconds for a response timeout. I see perhaps 0.25% error / no response timeout but then my SIM doesn’t have the best signal where my product sits.&lt;br /&gt;&lt;br /&gt;However, I still believe people need to be realistic – even in the situations where the slave response times out I’d suggest NOT retrying immediately since the retries have a higher than normal probability of failing as well. Missing a few polls a day is better than needlessly paying more for data plans.</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/695717031308817233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=695717031308817233' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/695717031308817233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/695717031308817233'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2008/08/tunneling-serial-data-over-cellular.html' title='Tunneling Serial Data over Cellular'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-8715486721615699400</id><published>2008-07-23T12:28:00.000-07:00</published><updated>2008-07-23T13:29:46.692-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Device Access'/><category scheme='http://www.blogger.com/atom/ns#' term='Industrial'/><category scheme='http://www.blogger.com/atom/ns#' term='Cellular'/><title type='text'>Evolution of Data Plan Billing</title><content type='html'>&lt;span style="font-weight: bold;font-size:130%;" &gt;Summary: the big three have moved away from unlimited data, towards limited data.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It is interesting - I once (as in last year) had a talk with a potential partner who'd been at some European conference and was convinced the world was on the verge of low-cost (sub-$20/month) unlimited cellular data plans.  We were discussing the creation of report-by-exception  tools to reduce SCADA costs, and this partner's strong faith in this belief caused them to eventually bail out of the talks, saying "&lt;span style="font-style: italic;"&gt;In a year or two, no SCADA company will care about how much cellular data they use&lt;/span&gt;."&lt;br /&gt;&lt;br /&gt;Yet as of the summer of 2008 the world of cellular data is moving in the opposite direction.  Last year the big three (AT&amp;amp;T/Sprint/Verizon) offered "Unlimited Data" for personal users with the Service Terms listing a VERY narrow list of permitted activities - mainly email and web browsing, with many common things like file download/upload, media-streaming prohibited.  So when ever one of the big three would &lt;span style="font-weight: bold; font-style: italic;"&gt;cut off a user for moving too much data on an "unlimited plan"&lt;/span&gt;, the service provider would fall back on the "&lt;span style="font-style: italic;"&gt;You are doing prohibitted things, thus impacting our network, thus take your business elsewhere&lt;/span&gt;".  What a way to cause bad feelings, eh?  &lt;span style="font-style: italic;"&gt;Note that this change is CONSUMER plans - machine-to-machine have always been limited, priced by the MB/month without rollover, plus with charges for data overages.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now all three have dropped the price from the $80/month range down to $60/month range ... but added a hard limit of 5GB per month.  Isn't free &amp;amp; vigorous market competition wonderful?&lt;br /&gt;&lt;br /&gt;Sounds reasonable - 5,000 megabytes of data is a lot, yet this doesn't mean 5GB of data transfer.  It means 5GB of metered activity, with many activities I've studied including up to 95% overhead.  Thus someone only moving 20-30MB of real data in small packets per month might hit pretty close to their 5GB limit!  My experience with normal wide-area-network traffic hints that a real PC user doing simple email and web-browsing once a day would probably move 1-2GB of data before hitting the 5GB total activity limit.&lt;br /&gt;&lt;br /&gt;To paraphrase the wireless data service terms for all three:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Data transport is always measured in full kilobytes&lt;/li&gt;&lt;li&gt;Actual transport is always rounded up to next full-kilobyte at "end of session"&lt;/li&gt;&lt;li&gt;Network overhead and resend requests caused by network errors can increase measured kilobytes.&lt;/li&gt;&lt;li&gt;2 of 3 mention always rounding up to nearest kilobyte every hour period.&lt;/li&gt;&lt;li&gt;All warn that you will NOT receive an itemized detail of how your charges are calculated; you will NOT see which services were used or during which time periods the charges were inccurred under.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;So if I send a single 50 byte UDP/IP packet, is that a full session and billed as 1024 bytes?  Could be under this language since UDP is 'sessionless'.&lt;br /&gt;&lt;br /&gt;Hmm, the term &lt;span style="font-weight: bold; font-style: italic;"&gt;session &lt;/span&gt;is pretty ambiguous.  Perhaps it means per "time you enable your PC-based cellular data card."  That seems likely - plus if you left your device on twenty-four hours a day then the once per hour round-up would catch you.&lt;br /&gt;&lt;br /&gt;I'm afraid I haven't offered any new answer here, other than to suggest you understand that &lt;span style="font-weight: bold; font-style: italic;"&gt;low-cost unlimited data plans ARE NOT just around the corner&lt;/span&gt; ... at best we left them behind last year and I don't foresee them ever returning.  I suppose all three now understand that huge new profits are to be made with these 5GB limits, which will cause many "super-salesman" using their cellular data plan daily to spend an extra $50 to $500 in monthly overage charges.</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/8715486721615699400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=8715486721615699400' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/8715486721615699400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/8715486721615699400'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2008/07/evolution-of-data-plan-billing.html' title='Evolution of Data Plan Billing'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-7241515663779141487</id><published>2008-07-11T09:56:00.000-07:00</published><updated>2008-07-11T10:13:13.801-07:00</updated><title type='text'>Lower Cost Cellular to Rockwell AB PLC</title><content type='html'>&lt;p&gt;I have several customers now working through how to manage cost-effective cellular access to Rockwell PLC such as ControlLogix, CompactLogix, Micrologix 1100 and so on.  Unfortunately the most straight forward way to link using Ethernet/IP is fairly costly.&lt;br /&gt;&lt;/p&gt;First, a personal recommendation from me – a free tool which I find very useful and think you will too.  Today, you can buy 2GB USB flash drives for $15 – if you're old like me, you remember when an entire Windows computer only had 0.020GB of hard drive space!  &lt;span style="font-weight: bold; font-style: italic;"&gt;Did you know you can literally install and run many Windows applications from these portable USB drives?  &lt;/span&gt;This means any Windows computer you plug this USB drive into has your applications, your settings, and your data files.  I've used one of these for over a year and it is invaluable - all free open source code too!   You can run &lt;a href="http://portableapps.com/apps/office/openoffice_portable"&gt;OpenOffice&lt;/a&gt; (which can read/write MSOffice 2003 files and is much faster than the MSOffice 2007 we use at Digi), &lt;a href="http://portableapps.com/apps/internet/firefox_portable"&gt;Firefox web browser&lt;/a&gt;, plus a dozen other tools. &lt;a href="http://portableapps.com/apps/utilities/keepass_portable"&gt; Take a special look at KeePass&lt;/a&gt;, which I use daily from my USB drive to securely hold all of my hundred-plus account names and passwords.&lt;br /&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;a href="http://portableapps.com/about/what_is_a_portable_app"&gt;Portableapps.com - What is a Portable App?&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Okay, back to work.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:180%;"&gt;Periodic PLC Access from RSLogix&lt;/span&gt;&lt;/p&gt;Customers who want to peek into a single PLC at a remote site for an hour or two can use RSLinx to connect to either an IP or DNS name, then see the PLC via cellular.  The catch is RSLinx will create from 12MB to 200MB of background traffic per month.  So you need to create a new Ethernet Driver (not Ethernet/IP!) JUST for this one-time use, configure in your details, connect and do your work.  When you are done you need to turn browsing off, then delete the comm driver.  Why not just delete the IP or DNS name?  Unfortunately once RSLinx has seen a device, it can be like a bad rash to get rid of it.&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:130%;"&gt;Data polling – at Central Office&lt;/span&gt;&lt;/p&gt;Customers with an OPC server speaking DF1, CSPv4, or even Ethernet/IP can poll PCCC-type data through a &lt;a href="http://www.digi.com/products/serialservers/digioneiaphaz.jsp"&gt;Digi One IAP&lt;/a&gt;, which converts the polls into &lt;a href="http://iatips.com/rockwell.html#common"&gt;DF1 Radio Modem&lt;/a&gt; under UDP.  Tests have show using DF1 Radio Modem every few minutes accomplishes the same data movement as Ethernet/IP with only 5% the data cost (or Ethernet/IP uses 2000% more data bytes).  One unit of Digi One IAP can poll up to 60 remote IP or DNS names.  If your OPC server can encapsulate DF1 Radio Modem directly into UDP/IP, then you won't need the Digi One IAP to act as your host.&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:180%;"&gt;Data Polling – at Remote Site&lt;/span&gt;&lt;/p&gt;If you have an &lt;span style="font-weight: bold; font-style: italic;"&gt;AB PLC which speaks DF1 Radio Modem&lt;/span&gt; directly, then any Digi cellular router can be configured for UDP Sockets, with shuttles UDP data received to the serial port.  Make sure you use the latest Digi firmware so it can just return UDP responses to last sender without explicit address configuration.&lt;br /&gt;&lt;p&gt;If your &lt;span style="font-weight: bold; font-style: italic;"&gt;AB PLC doesn't speak DF1 Radio Modem&lt;/span&gt;, or you want to use an Ethernet link, then using a Digi cellular router with Python support allows a simple script which accepts DF1 requests and uses a local Ethernet/IP session to query responses from the PLC's PCCC Object.  This Python code even runs on a PC under Windows or Linux.  As soon as I have a link or web page explaining how to get and use this code, I'll edit this post to add it here.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/7241515663779141487/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=7241515663779141487' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/7241515663779141487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/7241515663779141487'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2008/07/lower-cost-cellular-to-rockwell-ab-plc.html' title='Lower Cost Cellular to Rockwell AB PLC'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-4867409261614114943</id><published>2008-07-10T14:54:00.000-07:00</published><updated>2008-07-10T15:05:06.917-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ethernet'/><category scheme='http://www.blogger.com/atom/ns#' term='Rockwell'/><title type='text'>Quick Data Comms to AB PLC</title><content type='html'>One of my readers was asking for a quick way to talk via Ethernet to a Rockwell AB PLC.&lt;br /&gt;&lt;br /&gt;You can actually talk to a ControlLogix by only understanding TWO (2) different packets, each with a response, so four packets I guess.  The problem is this uses "UCMM" style communications, which the PLC has very limited resources for.  Said another way, the CIP Connected Messaging or I/O production both include an inherent allocation of resources, while the UCMM is designed to be used ONLY to setup such pre-allocated resources.&lt;br /&gt;&lt;br /&gt;So yes, you can use the information below to create a literal quick-n-dirty solution, and if you talk more than a few times a second you might start to interfer with other communications to the PLC (which is not a good thing!)  However you could treat this as a proof of concept, and then work to do the communications more fully per the ODVA specs.&lt;br /&gt;&lt;br /&gt;Here is the PDF of &lt;a href="http://iatips.com/digiwiki/quick_eip_demo.pdf"&gt;how to read/write to the PCCC Object in a Logix Processor&lt;/a&gt; here.</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/4867409261614114943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=4867409261614114943' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/4867409261614114943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/4867409261614114943'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2008/07/quick-data-comms-to-ab-plc.html' title='Quick Data Comms to AB PLC'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-8695516226911618707</id><published>2008-05-30T07:06:00.001-07:00</published><updated>2008-05-30T07:42:33.059-07:00</updated><title type='text'>Public Internet Risk in Common Tools</title><content type='html'>Two months ago a SCADA customer asked me to enable FTP (File-Transfer-Protocol) on a test RTU they'd sent me to put online for them.  It was on a DSL link and although I warned them it was a bad idea they said it would be okay because the RTU had username/password protection and the RTU had nothing important on it.&lt;br /&gt;&lt;br /&gt;The punchline is that a few days later the customer sent me an email saying they couldn't FTP into the RTU anymore, so couldn't check the log files.&lt;br /&gt;&lt;br /&gt;I looked, and the RTU now had 3 TCP sockets open (all the sockets allocated for FTP on this RTU) to some FTP client at an IP address registered in Korea.  All 3 were just slowly walking through a dictionary attack of username/passwords (user &lt;span style="font-weight: bold;"&gt;bill&lt;/span&gt;, pass &lt;span style="font-weight: bold;"&gt;honda14 &lt;/span&gt;... user &lt;span style="font-weight: bold;"&gt;billk&lt;/span&gt;, pass &lt;span style="font-weight: bold;"&gt;12tomes &lt;/span&gt;...)  No doubt the IP and FTP client belonged to some university student running kiddy-scripts obtained on the Internet.  No doubt the kid probably didn't even care if the odd device he or she had never seen before was not a computer (&lt;span style="font-style: italic;"&gt;FTP servers always announce what and who they are when you connect&lt;/span&gt;).  No doubt this attack wasn't costing them anything, as either the university or parents were paying for the Internet connection - or the IP and connection belonged to some patsy whose home computer had been compromised.&lt;br /&gt;&lt;br /&gt;So okay, it was not causing any real harm,  &lt;span style="font-weight: bold; font-style: italic;"&gt;except it defeated the purpose of enabling FTP since the end user no longer had access to FTP.&lt;/span&gt;  I suppose you could call it a denial-of-service attack, yet I'm sure that was NOT the intension of the '&lt;span style="font-style: italic;"&gt;attacker&lt;/span&gt;'.  The student was probably just hoping to be able to post a message on some forum saying '&lt;span style="font-style: italic;"&gt;I hacked a computer at this IP address in the USA, and here is the FTP user name and password I created for you to access.&lt;/span&gt;'  The fact that the RTU only contained a dozen binary log files would be irrelevant.&lt;br /&gt;&lt;br /&gt;Do I have a moral to this story?  Hmm, not really - other than industrial users have to understand that what is NOT interesting to them might be interesting to others for very different reasons.&lt;br /&gt;&lt;br /&gt;If this user had allowed me to change the FTP port to some random value like TCP port 38207, then it is very likely this particular student would NOT have found it.  Since true port-scans are so easy to detect, the student's tool probably had a list of a few dozen TCP ports commonly used by FTP servers, then it would randomly try them over a few weeks at any single target IP.&lt;br /&gt;&lt;br /&gt;The same story could be true for web servers on TCP port 80 (or 8000 or 8080).  Digi ships our cellular products with the web server enabled on port 80 because that is what customers expect.  Sure, they add a username and password, but what will happen to their data plan bill if their 3MB per month plan moves 3-GigaByte because some scripts are trying dictionary attacks on the login of home web page?&lt;br /&gt;&lt;br /&gt;I've had to always mention that 3GB part (meaning a $500+ bill for a month) since every time I mention to such users not to leave port 80 setup as a web browser, the industrial customer's answer is invariably '&lt;span style="font-style: italic;"&gt;... it'll be okay because the unit has username/password protection and it has nothing worth trying to see on it ... &lt;/span&gt;'</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/8695516226911618707/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=8695516226911618707' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/8695516226911618707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/8695516226911618707'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2008/05/public-internet-risk-in-common-tools.html' title='Public Internet Risk in Common Tools'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-4501052569202497675</id><published>2008-05-22T09:34:00.000-07:00</published><updated>2008-05-22T10:05:04.704-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='zigbee'/><category scheme='http://www.blogger.com/atom/ns#' term='Cellular'/><title type='text'>Cellular to Wireless Zigbee</title><content type='html'>An interesting new market we are moving into is cellular access to wireless mesh (Zigbee as example).  In some sense it's a supply-chain dream come true.  Imagine you supply a product to customers and EVERYONE (except the customer's IT department) want you to be able to see what the stock level is and auto-schedule deliveries.&lt;br /&gt;&lt;br /&gt;The customer benefits because they can treat the product as a 'utility' - turn the tap and there it is.&lt;br /&gt;&lt;br /&gt;You benefit because you can minimize emergency truck-rolls - no more angry, panicked customers demanding you send a truck over two-thirds empty because someone forgot to schedule a special delivery because the customer needed to use 60% more product for two days.  Of course as a supplier the cost of the truck, fuel, and driver are critical parts of your margin/profit.  You desire to only send out full trucks which return gracefully empty!&lt;br /&gt;&lt;br /&gt;So we are now working with several of the largest chemical suppliers in the world to enable:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;drop in a powered cellular unit at the customer site&lt;/li&gt;&lt;li&gt;drop in powered or battery tank sensors&lt;/li&gt;&lt;li&gt;log levels hourly, for the supplier to upload daily (reduces cellular data charges)  The supplier uses this as their 'secret-sauce', their own proprietary value-add to predict when trucks need to roll to maximize efficiency&lt;br /&gt;&lt;/li&gt;&lt;li&gt;enable alarm call-out if the levels hit unexpected low-low levels&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;How this works varies by suppliers.  The one I'm working with is using Modbus/TCP to pull up the logs daily.  Some other suppliers are having SMTP clients push emails back to the supplier with XML formatted reports.  The next supplier I might work will wants the binary logs to be compressed (ZIP'd) and then pushed upstream once a day by FTP, where their accounting system will convert from binary to XML to import and issue bills on product usage per MINUTE.&lt;br /&gt;&lt;br /&gt;Of course key to all of this is the &lt;a href="http://www.digi.com/products/wirelessdropinnetworking/"&gt;wireless drop-in-network concept&lt;/a&gt;.  The supplier doesn't want to invest thousands of dollars pulling wires through SOMEONE ELSE'S PLANT - especially when the supplier's contract might end in a few months. &lt;br /&gt;&lt;br /&gt;Wireless sensors aren't new; cellular data access isn't new; supply-chain systems which auto-detect product levels aren't new.  What is new here is the merger of many technologies which reduce infra-structure costs, and thus increase ROI.</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/4501052569202497675/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=4501052569202497675' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/4501052569202497675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/4501052569202497675'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2008/05/cellular-to-wireless-zigbee.html' title='Cellular to Wireless Zigbee'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-6149794360626282447</id><published>2008-03-14T07:42:00.000-07:00</published><updated>2008-03-15T09:40:33.293-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DF1'/><title type='text'>PCCC Protected Typed Logical Write with Mask</title><content type='html'>Someone asked about the "&lt;span style="font-style: italic;"&gt;DF1 Supplement for SLC500&lt;/span&gt;" from 1995 which was online at ab.com for a short period, then was pulled - probably because it is a very poor quality optical scan.  However, I had it ... then lost it ... then found it stashed away on one of my ftp sites. &lt;br /&gt;&lt;br /&gt;So here is the original AB PDF (which I downloaded from ab.com last year)  &lt;a href="http://iatips.com/docs/DF1%20Protocol%2017706516%20Suppliment.pdf"&gt;Grab it here while it survives&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The masked write is on page 11 and the first data-word is the mask and all data following has the SAME mask applied.  So [0x0001,0x0000] would clear the LSBit and so on.  It doesn't offer mask-data pairs - just one mask and N words.  Thus this command is mainly for use with 1 word element writes ... unless you have three or four consecutive N-file words you wish having the same mask applied.</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/6149794360626282447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=6149794360626282447' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/6149794360626282447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/6149794360626282447'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2008/03/pccc-protected-typed-logical-write-with.html' title='PCCC Protected Typed Logical Write with Mask'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-4779672731597054757</id><published>2008-03-07T09:27:00.000-08:00</published><updated>2008-03-07T09:40:26.233-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cellular'/><category scheme='http://www.blogger.com/atom/ns#' term='Modbus'/><title type='text'>Optimizing Modbus for Cellular</title><content type='html'>&lt;h2 id="toc1"&gt;Goal: lower your data costs&lt;/h2&gt;  How nice it would be if you could take your Ethernet applications and just move them to cellular (or satellite).  Well, of course you can ... but you'll pay through the nose for this.&lt;br /&gt;&lt;br /&gt;At the moment I'm in the process of creating intelligent cellular gateways accessible by Modbus/UDP (aka Modbus/TCP form in UDP) which support data logging, report-by-exception and other cost-saving goodies.&lt;br /&gt;&lt;br /&gt;A few Facts:&lt;br /&gt; &lt;ol&gt;&lt;li&gt;You are charged for all IP, TCP, and UDP overhead - the cellular system moves your TCP/IP packet as raw payload encapsulated in mobile-IP or other transports. So to them the 40-52 bytes TCP/IP header as NOT DISTINGUISHED from your data. ( &lt;a class="wiki_link_ext" href="http://iatips.com/blog/2007/01/cellular-costs-bytes-you-pay-for-each.html" rel="nofollow"&gt;My Blog entry on this&lt;/a&gt; )&lt;/li&gt;&lt;li&gt;Thus Modbus/UDP (aka Modbus/TCP in UDP/IP) will save you from 60 to 90% of your data costs. It is a single one-shot request followed by a single one-shot response. In contrast TCP/IP might require up to 400 bytes of socket open &amp;amp; close overhead, plus TCP acknowledge packets.&lt;/li&gt;&lt;/ol&gt; &lt;br /&gt;So if you are concerned about cost, you should first make sure your DATA POLLING can be done with Modbus/UDP - not TCP. No sweat if you need to use Modbus/TCP to reprogram or monitor your RTU or PLC short-term, just make sure your 24/7 repetitive data polling in via UDP. ( &lt;a class="wiki_link_ext" href="http://blog.iatips.com/2007/08/truth-about-cellular-ip.html" rel="nofollow"&gt;Is UDP reliable enough?&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So I've defined a few extensions (read as 'heresy' to many).  &lt;a href="http://iatips.wikispaces.com/Optimizing+Modbus+TCP+for+Cellular"&gt;Full Details are Here at iatips.com:&lt;/a&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;I allow use of the full Modbus/TCP header - so one can read 500 registers in a single request.  This greatly reduces charges for header overhead&lt;/li&gt;&lt;li&gt;I allow returns LESS than data than requested when the context is appropriate.  This saves having to pay for data padding, plus not having to poll a status register to see how much logged data is waiting&lt;/li&gt;&lt;li&gt;I allow use of data compression like ZLIB.  Bottomline, 'ZIP' compression of small data sucks, but since I can return 500 registers (1K bytes) ZLIB starts showing value.&lt;/li&gt;&lt;li&gt;I allow packing multiple Modbus-ADU below a single header, which (unlike pipelining) signals the gateway to return multiple responses in a single packet.&lt;/li&gt;&lt;li&gt;I am looking at support for simple AES encryption, not as true 'security', but as a good-enough means to support Modbus without making development difficult.&lt;/li&gt;&lt;/ol&gt;If you are interested in the details, I have more discussion on &lt;a href="http://iatips.wikispaces.com/Optimizing+Modbus+TCP+for+Cellular"&gt;my wiki site&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/4779672731597054757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=4779672731597054757' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/4779672731597054757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/4779672731597054757'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2008/03/optimizing-modbus-for-cellular.html' title='Optimizing Modbus for Cellular'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-1284733540117655559</id><published>2008-03-07T09:21:00.000-08:00</published><updated>2008-03-07T09:26:17.491-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cellular'/><title type='text'>Lost My SIM</title><content type='html'>Well, I've been quiet for awhile - lost my "free development SIM" as part of Cingular's reorg into AT&amp;amp;T.  Thus my collection of PLC with free demo access are off-line.  Is interesting to support cellular without a SIM ... not that my boss is ignoring this, but there are 'plans in the works' which involve several companies ... plans which just keep moving out.&lt;br /&gt;&lt;br /&gt;However, I am working on Cellular gateways with intelligence now.  Goal is to allow a Modbus client/master to come in once per day and upload time-stamped logs; plus if certain events occur use Modbus to call for help.</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/1284733540117655559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=1284733540117655559' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/1284733540117655559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/1284733540117655559'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2008/03/lost-my-sim.html' title='Lost My SIM'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-4483555301326173387</id><published>2007-10-05T10:28:00.000-07:00</published><updated>2007-10-05T10:41:27.007-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Device Access'/><category scheme='http://www.blogger.com/atom/ns#' term='Cellular'/><title type='text'>How Exposed in Public Cellular IP</title><content type='html'>One of the concerns about having a &lt;span style="font-weight: bold;"&gt;PUBLIC IP&lt;/span&gt; address for cellular is your exposure to public hackers probing public IPs for services.  In theory, you pay for all of these attempts since the mobile IP system encapsulates and transports them all on your behalf.&lt;br /&gt;&lt;br /&gt;I'm happy to report that after logging such attempts for many months my cellular devices receive less than 4 probes in any one day and &lt;span style="font-weight: bold; font-style: italic;"&gt;likely under 20 total per month&lt;/span&gt;.  So many days pass with no probes at all and it appears to stay under 2-3K per month.  This compares to perhaps &lt;span style="font-weight: bold; font-style: italic;"&gt;200 probes per day on my DSL&lt;/span&gt; router/firewall.&lt;br /&gt;&lt;br /&gt;I am not sure why the difference, although I'd guess it has to do with the high initial latency in contacting a cellular IP.  So any "script-kiddie" tool scanning IP address ranges probably is not willing to wait up to 5 seconds for cellular devices on busy towers which need "unparking" to respond.&lt;br /&gt;&lt;br /&gt;What kinds of probes are they?  Mainly those looking for MS-SQL servers, with a rare access to FTP and the remainder of accesses aimed to seemingly random, unnamed ports - likely associated with trojans or zombie networks.</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/4483555301326173387/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=4483555301326173387' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/4483555301326173387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/4483555301326173387'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2007/10/how-exposed-in-public-cellular-ip.html' title='How Exposed in Public Cellular IP'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-589976063347310106</id><published>2007-08-22T06:19:00.000-07:00</published><updated>2007-08-22T11:22:41.938-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cellular'/><category scheme='http://www.blogger.com/atom/ns#' term='WAN'/><category scheme='http://www.blogger.com/atom/ns#' term='Ethernet'/><category scheme='http://www.blogger.com/atom/ns#' term='Rockwell'/><title type='text'>The Truth about Cellular IP</title><content type='html'>I have been very busy analyzing real-world telemetry traffic over cellular IP, and unfortunately I am now 100% convinced that &lt;strong&gt;&lt;em&gt;you cannot effectively use most (any?) off-the-shelf "Ethernet" software tool to talk to remote Ethernet devices over cellular IP&lt;/em&gt;&lt;/strong&gt;. Bottom-line is that - unless your host app is custom written to be data cost and time delay sensitive - your data costs will be bloated due to the nature of the tool. Even something as "obvious" as adding compression doesn't solve the problem because telemetry packets tend to be too small for effective compression. For example: an 8-byte Modbus/RTU request becomes 12-bytes after ZIP-style compression. Plus this doesn't reduce the 104-bytes of TCP overhead nor 28-bytes of UDP overhead. None of the cellular providers allow use of RFC-class TCP header compression, since it requires all of the infra-structure to maintain&lt;br /&gt;copies of headers etc.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;So I have been working on "reduction" solutions - how to obtain the effect of moving "X" IP packets but only moving "X-minus-a-bunch" of actual IP packets.&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;&lt;/strong&gt;&lt;span style="font-size:130%;"&gt;Tunneling TCP thru UDP&lt;br /&gt;&lt;/span&gt;The most promising and generic form of &lt;strong&gt;&lt;em&gt;reduction&lt;/em&gt;&lt;/strong&gt; is to tunnel TCP/IP via UDP/IP over cellular. So the host application talks TCP/IP to a local proxy, which acts as the TCP end-point. All of the TCP SYN, ACK and Keepalive traffic is limited to the local Ethernet. The local proxy then initiates a UDP "session" with a remote proxy over cellular &amp; &lt;strong&gt;&lt;em&gt;we instantly see a 60-90% reduction in data costs&lt;/em&gt;&lt;/strong&gt;. The remote proxy initiates a TCP/IP connection to the remote Ethernet device, which again isolated the extra TCP overhead to the remote Ethernet.&lt;br /&gt;&lt;br /&gt;The reaction of non-IA network engineers to this idea is predictable and a bit humorous after a while. They immediately say "You cannot do that!!! UDP/IP is unreliable!!! You'll break something!!! &lt;strong&gt;&lt;em&gt;You are committing a mortal Sin!!!&lt;/em&gt;&lt;/strong&gt;" But in reality none of the IA protocols leverage the reliability of TCP anyway. For example, Rockwell RSLogix doesn't send a program block to a ControlLogix and blindly assume it was successful after the TCP Acknowledge from the peer is processed. Instead, RSLogix sits (blocks literally) and waits for a successful CIP response on a single CIP Connection. So if the local proxy returns a TCP-ACK to the RSLogix host and the CIP request is lost within the UDP/IP tunnel ... eventually RSLogix times out the CIP connection and the application (and/or user) will restart.&lt;br /&gt;&lt;br /&gt;Fortunately, cellular is very reliable - all of my tests sending 10,000 UDP packets rarely even lost 1 packet and I'm not sure if such a rare loss is due to cellular or just my test script hiccupping &amp;amp; dropping a packet. Plus cellular tends to have only &lt;strong&gt;&lt;em&gt;very bursty error problems&lt;/em&gt;&lt;/strong&gt;. In other words, you won't lose 1 packet per 10,000; instead you'll lose all packets for 5 minutes or just 5 random packets out of a group of 10 sent. This shotgun-damage tends to confuse TCP/IP state machines to the point that they abort the connection anyway. In truth, in all of my Wireshark/Ethereal trace reviewing I have never seen a single situation where a TCP retry did anything but add data cost; every TCP retransmission just results in a "Duplicate ACK" showing up a few packets below in the trace &amp; a doubling of the cost of that block of data.&lt;br /&gt;&lt;br /&gt;So overall, anyone planning to use cellular should first investigate if they can use UDP/IP instead of TCP/IP.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;TCP Problem #1 - added cost for pointless ACK&lt;/span&gt;&lt;br /&gt;As mentioned above, real-world analysis of telemetry use of TCP shows the TCP ACK isn't useful; but worse, Embedded TCP devices tend to sub-optimize the ACK timing to "speed up" data transmission and recovery. Almost universally moving an IA protocol via TCP/IP results in 4 TCP packets instead of the idealized 3.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Your app sends a TCP request (request data size + 40-52 bytes of overhead)&lt;/li&gt;&lt;li&gt;800-1100 msec later your app receives a TCP ACK without data (another 40-52 bytes of overhead)&lt;/li&gt;&lt;li&gt;10-40 msec later your app receives the protocol response (response data size + 40-52 bytes of overhead)&lt;/li&gt;&lt;li&gt;Within a few msec, your app sends the TCP ACK without data. &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;So what would have been a 2-packet transaction with only 56 bytes of overhead under UDP/IP, or what should have been a 3-packet transaction with 120-156 bytes of overhead under ideal TCP/IP usually becomes a 4-packet transaction with 160-208 bytes of overhead. Yes, there exists a TCP socket option and the concept of "Delayed ACK Timer" to prevent the first empty TCP ack from being returned over cellular, but few embedded products use this since it adds code complexity, and it slows down overall data communications. At least in the IA world it seems everyone wants their Ethernet Product costing 2-4 times more than their serial product to appear lightning fast. So they ignore the TCP community's decades of hard-earned experience and "hack" their TCP stack to sub-optimize fast local Ethernet performance. &lt;/p&gt;&lt;p&gt;So this is where the instant 60-90% data cost savings of using UDP over TCP comes from. UDP has smaller headers and results in fewer packets being sent. Since the cellular IP system is "encapsulating" your TCP/IP packets in a manner similar to PPP, the entire IP header, TCP or UDP header, and your data is all considered billable payload. &lt;/p&gt;&lt;p&gt;There is also a myth propagated to this day that the TCP ack causes retry to occur more rapidly out in the wide-area-network infrastructure. The rhetoric goes, "If the 3rd and 4th router link is congested and the TCP data packet is lost, then the 3rd router will retransmit ... which is faster ..." Perhaps this was true back in the 1980's, but today the 3rd and 4th router (and all of the other 20 to 30 routers in a cellular end-to-end path) are just tossing IP packets upstream with no awareness of the packet functions. In reality, it is only the TCP state machines within your host machine and within your remote device that have any ability to retransmit anything. &lt;/p&gt;&lt;p&gt;&lt;span style="font-size:130%;"&gt;TCP Problem #2 - added cost for premature retry&lt;/span&gt;&lt;br /&gt;The TCP RFC includes many dynamic timers that automatically adjust themselves based on real-world performance. This is actually pretty neat. It means if the TCP ACK and response times tend to be longer than normal, then the TCP state-machine slowly increases the delay before retransmission. But I've seen 3 problems with this. &lt;/p&gt;&lt;ol&gt;&lt;li&gt;The most effective way to leverage auto-adjust is to &lt;strong&gt;include the 12-byte TCP header options that time-stamps all packets&lt;/strong&gt;. Linux system add this by default and installing one of many PLC engineering tools on your Windows computers causes Windows to also start always using this. The setting generally is global - you either have 40-byte TCP headers or 52-byte TCP headers forever. So for small telemetry packets, this adds a disproportionately large increase in data costs. &lt;/li&gt;&lt;li&gt;Many embedded devices (PLC, RTU and I/O devices) have &lt;strong&gt;"hacked" the TCP ACK sub-system to force connection failure to be faster than the standard 3-4 minutes&lt;/strong&gt;. For example, I worked with one large PLC company which expected TCP sockets failure in less than 1 second, so they forced TCP retransmission in hundreds of msec and without any normal exponential backoff between retries. This is totally unusable over cellular; you will end up with 30% to 90% of your data traffic being premature retries and responses to premature retries. I have literally seen Wireshark/Ethereal traces which are mainly black lines with red text - which is the default color used to show TCP "problems" such as lost-frag, retrans, dup-ack, etc. &lt;/li&gt;&lt;li&gt;The &lt;strong&gt;latency in cellular is abnormal by an order of mag&lt;/strong&gt;nitude. Even browsing the internet or doing a telemetry polling test over DSL/cable broadband averages latencies in the 100-150 msec range. This is what a Windows or Linux defines as "slow/bad" - not the 800 to 3500msec of cellular. So even watching a Windows or Linux TCP state machine auto-adjust the retransmission delay over time, you will not see it achieve a 100% effective setting which eliminates wasted TCP retransmissions. The delay seems to top out&lt;br /&gt;at about 1.5 to 1.8 seconds, which is just too close to the actual "normal" latency range.  So again, use of UDP/IP frees the use user from data costs associated with TCP legacy assumptions - both the main-stream MIS/IT market variety of assumptions and the misapplied IA vendors "speed-ups". &lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;span style="font-size:130%;"&gt;TCP Problem #3 - uncontrollable SYN/Socket Opens&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Given the way all cellular systems "park" inactive cellular data devices, it is exceedingly rare to ever see a host app open a new TCP socket without prematurely retrying/retransmitting the SYN packet. This is because one is virtually guaranteed that it will take about 2.5 seconds for the data device to be given active airwave resources and return the SYN+ACK response. This has NOTHING to do with the "always connected" feature Digi and others claim. The data device (even when parked) is fully connected by IP and fully authenticated by the system - it is "always connected". However, the local cell tower only has finite airwave resources, so any device (cell phone or data device) which is idle from 3 to 45 seconds is "parked" without having any preallocated airwave resources. Literally when the TCP "SYN" shows up, the cell tower has to use the control channel to inform the data device to request airwave resources, and after these are requested and allocated the data device can receive and response to the TCP socket open request. &lt;/p&gt;&lt;p&gt;But that's not the real problem related to TCP Socket Opens ... the real problem is yet another case of IA vendors sub-optimizing TCP behavior for fast local Ethernet performance. For example, I once had a customer who normally paid about $40 per month receive a $2000 bill one month. It turns out they had powered down the remote site for 3+ days and the off-the-shelf 3rd-party host application they used would try to reopen the TCP socket every 5 seconds!!! So Windows would send the initial TCP SYN to start the open, since the remote was off-line Windows would retransmit this TCP SYN a few seconds later. After a total of 5 seconds, the application would ABORT this TCP socket attempt and start a new one. So this host app was pushing 24 billable TCP packets per minute out to a remote site that was powered down. This was nothing the host app vendor documented, nor was it anything a user could configure or over-ride. The user could configure the host app to ONLY poll once per 5 minutes; but the user had no control over this run-away TCP SYN/Open behavior. &lt;/p&gt;&lt;p&gt;Tunneling TCP through UDP effectively decouples the TCP SYN/Open from cellular data charges. The first TCP Syn/Open request to the local proxy would succeed even if the remote IP site is offline. No retries would be required. Even if the host app attempts to retry the data poll every 5 seconds, this is something the UDP proxy can be configured to "resist". If the user truly wants data packets to only move every few minutes, that is something the UDP proxy can easily enforce. &lt;/p&gt;&lt;p&gt;&lt;span style="font-size:130%;"&gt;TCP Problem #4 - sub-optimized TCP keepalive&lt;/span&gt;&lt;/p&gt;&lt;p&gt;The final problem I'll discuss (but not by any means the "last" problem with TCP) is that many embedded IA devices have relatively fast TCP Keepalives hard-coded to speed up lost-socket detection. While this is an admirable goal, a Rockwell PLC sending out a TCP Keepalive at a fixed 45 second interval can create up to 6MB of monthly traffic by doing this. Siemens S7 PLC seem to issue TCP keepalive every 60 seconds - a bit better, but not by much. Maybe such a heart-beat is useful to know the remote is accessible, but given the reliability of cell phones (when the last time you had a dropped call or no signal ...) you'll obtain a lot of false-alarms if you treat every missed packets as something requiring maintenance's attention. &lt;/p&gt;&lt;p&gt;Again, tunneling TCP through UDP effectively eliminates the automatic, possibly uncontrollable use of TCP Keepalive. If your process can handle you talking to it once an hour, then the cost of TCP socket open and close, as well as any TCP Keepalive is all wasted investment. &lt;/p&gt;&lt;p&gt;Not only this, but the cellular providers do NOT want users who send a simple, rather empty packet every 30 to 60 seconds - this is literally the worst kind of customer, as this forces the cell tower to "waste" one of its very limited airwave resources with almost no income returned to the carrier. From what I hear, carriers either want customers who talk constantly and pay huge monthly fees (say $90 to $350/month); or they want customers who rare talk and pay a small fee (even just $5/mo) but cost the carrier virtually no direct expenses. &lt;/p&gt;&lt;p&gt;Putting this is "restaurant terms":&lt;/p&gt;&lt;ul&gt;&lt;li&gt;A cellular data device that talks constantly but pays for a large plan is like a restaurant patron who sits at a table, constantly ordering more food and paying a larger bill.&lt;/li&gt;&lt;li&gt;A cellular data device that rarely talks is like the restaurant patron who comes in once a month, sits at a table, orders a meal, pays and then vacates the table.&lt;/li&gt;&lt;li&gt;A cellular data device that keeps an idle channel open full time but rarely talks is like the restuarant patron who sits at a table in the resturant, reading the paper but rarely ordering food or paying a bill.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;In fact, in private chats with carrier account people, I have heard several times that they have been directly to prefer either customers who talk constantly on large plans or those who talk at most once an hour (better once a day)  on small plans. Customers planning to talk every few minutes have been defined as bad investments.  It may be fair to say that after years of building up the data-plan customer base, the cellular carriers have come to understand that the REAL cost of data plans is not the bulk data bytes moved; it is instead the percentage of time the device consumes (or squats on) 1-of-N scare airwave resources in proportion to the monthly fee they pay.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/589976063347310106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=589976063347310106' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/589976063347310106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/589976063347310106'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2007/08/truth-about-cellular-ip.html' title='The Truth about Cellular IP'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-2271500049443900931</id><published>2007-07-06T07:55:00.000-07:00</published><updated>2007-07-06T08:09:01.126-07:00</updated><title type='text'>Report-By-Exception? Maybe not</title><content type='html'>One of the PLC vendors I am just starting to deal with was bragging about the power of their report by expection abilities ... how wonderful for lower cellular data costs they claim. Unfortunately they only support TCP/IP - no UDP/IP. I'll cover this application (&amp; name the PLC) more after I have some time to work at it.&lt;br /&gt;&lt;br /&gt;However, the big problem with their "&lt;strong&gt;report-by-expection&lt;/strong&gt;" is that the PLC holds the TCP/IP socket open 24/7 and sends a TCP Keepalive every 1 minute. Sending a TCP Keepalive (2 x TCP packet headers with no data) every 60 seconds costs about 3.4MB per month! I have a hard time seeing that as "low cost". They would be better to just poll real data every 4 minutes and eliminate the TCP keepalives!&lt;br /&gt;&lt;br /&gt;Hopefully there is a setting in the PLC to change this behavior, which is why I need to look into this more. &lt;em&gt;&lt;strong&gt;I just want to point out that just because a system claims to only move data during exceptions ... that does NOT mean it has very low cellular data costs. &lt;/strong&gt;&lt;/em&gt;Don't forget that data costs include things you don't normally see - TCP socket open/close, TCP keepalive, TCP ack, and TCP retransmissions are all things you pay for.</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/2271500049443900931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=2271500049443900931' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/2271500049443900931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/2271500049443900931'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2007/07/report-by-exception-maybe-not.html' title='Report-By-Exception? Maybe not'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-6124547593969353944</id><published>2007-06-12T11:43:00.000-07:00</published><updated>2007-07-06T07:54:50.484-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cellular'/><category scheme='http://www.blogger.com/atom/ns#' term='Rockwell'/><title type='text'>Real World Cellular - ControlLogix PLC</title><content type='html'>Summary: Before I listed some real world numbers for Modbus polling. This time I walk through some of the costs and issues of using ODVA Ethernet/IP to talk to a Rockwell ControlLogix PLC.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;The Convoluted Path of Wide-Area-Networks:&lt;/span&gt;&lt;br /&gt;In general the magic of IP hides reality from us all. We tend to think "now I am browsing Google.com or iatips.com", but we don't really understand how COMPLEX and MIRACULOUS this really is. Your computer is NOT connected to either of these web servers; instead your computer uses the services of a dozen or more other computers/routers to get from "here" to "there". Every single data byte must be forwarded hop-by-hop through all of these cooperative peers.&lt;br /&gt;&lt;br /&gt;As example, here is a Trace Route (&lt;strong&gt;tracert&lt;/strong&gt;) of access from a computer within my test lab to a ControlLogix PLC sitting six (6) feet away. I am using public Internet access via a cellular Digi Connect WAN to the Ethernet (ENB) of the ControlLogix. Some of the public IP have "X" entered replacing the digits; you don't need to really know the exact IP value.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;&lt;strong&gt;My computer has private IP = 10.9.92.1&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;01 01 ms 10.9.1.1 (Digi's private Intranet)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;02 01 ms 10.10.11.10 (Digi's private Intranet)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;03 01 ms 10.254.254.2 (Digi's private Intranet)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;04 16 ms 66.77.x.x (Digi Co-Host/Internet Link)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;05 04 ms 69.8.x.x (Digi Co-Host/Internet Link)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;06 64 ms 66.77.x.x (Digi Co-Host/Internet Link)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;07 09 ms min-core-02.inet.qwest.net [205.171.128.110] &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;08 11 ms cer-core-02.inet.qwest.net [67.14.8.18] &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;09 12 ms cer-brdr-01.inet.qwest.net [205.171.139.62] &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;10 39 ms qwest-gw.cgcil.ip.att.net [192.205.32.97] &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;11 35 ms tbr2.cgcil.ip.att.net [12.123.4.254] &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;12 35 ms tbr2.sl9mo.ip.att.net [12.122.10.46] &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;13 75 ms tbr2.attga.ip.att.net [12.122.10.137] &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;14 31 ms 12.122.85.157 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;15 34 ms 12.86.140.146 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;16 * Request timed out. (Part of Cellular Infra-Structure)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;17 * Request timed out. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;18 * Request timed out. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;19 * Request timed out. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;20 1276 ms mobile-166-XXX-XXX-XXX.mycingular.net [166.XXX.XXX.XXX]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;&lt;strong&gt;Digi Connect WAN has private local IP = 192.168.196.80 (is 'gateway')&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;&lt;strong&gt;ControlLogix PLC has private local IP = 192.168.196.21 &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;These traces always amaze me - how something so seemingly trivial takes so much effort to really function. Notice how my lab PC has to route through 6 devices to even get out of Digi's company network, then through Qwest (our ISP), through AT&amp;T (my cellular SIM provider), through some unnamed hops of the cell system, and finally be port forwarded to the ControlLogix PLC. The packets may be passing through Minneapolis, Chicago, Detroit, Atlanta, and then finally returning to the PLC sitting right beside me.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Effect of NAT (Network Address Translation)&lt;/span&gt;&lt;br /&gt;Now lets look at what happens when RSLinx on my PC opens an ODVA Ethernet/IP socket to the ControlLogix PLC. Every TCP/IP packet requires 4 unique values which define a connection:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Destination IP (target device)&lt;/li&gt;&lt;li&gt;Destination Port (target application within device) &lt;/li&gt;&lt;li&gt;Source IP (return address to originator)&lt;/li&gt;&lt;li&gt;Source Port (likely random port, originator is waiting for responses here)&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;So we start out with the 4-tuple &lt;strong&gt;DST=166.x.x.x : 44818&lt;/strong&gt; and &lt;strong&gt;SRC=10.9.92.1 : 22256&lt;/strong&gt;. The 166.x.x.x IP is assigned by my cellular carrier. Port 44818 is ODVA's "well-known" port for Ethernet/IP. 10.9.92.1 is an internal Digi selected private IP. TCP port 22256 is the ephemeral (or random) port selected by RSLinx to listen for responses.&lt;/p&gt;&lt;p&gt;The first NAT effect is the Digi corporate firewall changes the request to be &lt;strong&gt;DST=166.x.x.x : 44818&lt;/strong&gt; and &lt;strong&gt;SRC=66.77.x.x : 22256&lt;/strong&gt;. My private IP of 10.9.92.1 is meaningless out in the Qwest or AT&amp;amp;T's networks, so something needs to swap this for a "real" world-unique IP leased by Digi. Our corporate NAT interface creates a record (with a lifetime of 5 minutes) that allows any responses to be correctly restored to 10.9.92.1&lt;/p&gt;&lt;p&gt;The second NAT effect is when the Digi Connect WAN forwards to the ControlLogix with another private IP. So the 4-tuple now becomes &lt;strong&gt;DST=192.168.196.21 : 44818&lt;/strong&gt; and &lt;strong&gt;SRC=66.77.x.x : 22256&lt;/strong&gt;. The ControlLogix thinks IP host 66.77.something is connected to it - not the real host IP of 10.9.92.1. Plus the ControlLogix has NOT CLUE that the RSLinx thinks the ControlLogix as IP of 166.something.&lt;/p&gt;&lt;p&gt;Now, to send a response the ControlLogix issues a TCP/IP packet with the flipped 4-tuple of &lt;strong&gt;DST=66.77.x.x : 22256&lt;/strong&gt; and &lt;strong&gt;SRC=192.168.196.21 : 44818&lt;/strong&gt;. The Digi Connect WAN restores (undoes) the NAT and changes this to &lt;strong&gt;DST=66.77.x.x : 22256&lt;/strong&gt; and &lt;strong&gt;SRC=166.x.x.x : 44818&lt;/strong&gt;. After passing back through AT&amp;T and Qwest, Digi's corporate NAT interface restores its own NAT and changes it back to &lt;strong&gt;DST=10.9.92.1 : 22256&lt;/strong&gt; and &lt;strong&gt;SRC=166.x.x.x : 44818&lt;/strong&gt;. &lt;/p&gt;&lt;p&gt;This understanding of NAT and IP is useful for understanding the capability and limitations of cellular access to certain devices with certain protocols.  A future entry will cover setting up RSLinx Classic and using RSLogix 5000 to download over cellular to a L5555 processor.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/6124547593969353944/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=6124547593969353944' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/6124547593969353944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/6124547593969353944'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2007/06/real-world-cellular-controllogix-plc.html' title='Real World Cellular - ControlLogix PLC'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-4619390280756043429</id><published>2007-05-31T12:23:00.000-07:00</published><updated>2007-05-31T12:46:52.456-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cellular'/><title type='text'>Unlimited Cellular Data - Revisted</title><content type='html'>As I go around dealing with large utility customers and hear feedback from Digi salespeople who survive large accounts, I hear some interesting but disturbing trends rising.&lt;br /&gt;&lt;br /&gt;First, there are the people (usually who are new to cellular) who claim any day now the age of cheap, unlimited cellular data plans means all my hard work to understand or offer reduced traffic are wasted effort. I especially hear this coming from European partners.&lt;br /&gt;&lt;br /&gt;Then there are the other people ... people I know work with very large, very powerful end users who fail to get the cellular plans they desire. Things I hear:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;I have heard of customers who pilot projects and hear promises of unlimited traffic, but when the time comes to sign the contract for 3000+ sites, the carrier decides that they cannot offer unlimited traffic ... period.  &lt;em&gt;Hmm, I guess this is the difference showing between the carrier's commissioned sales staff and the business managers who need to keep the cellular system profitable.&lt;/em&gt;&lt;/li&gt;&lt;li&gt;I have worked with large customers who do manage to get "unlimited deals" for a modest sized system - say 50 or 100 sites, but the carrier insists on adding the 2 clauses 1) the carrier has the right to artificially slow down the data communications (without detailing what this means) and 2) the carrier has the right to just stop all the customer's data traffic temporarily if the cell system gets busy (again, not details of this defined).  &lt;em&gt;Hmm, I have to kind of wonder what kind of control engineer agrees to such "clauses"? You'd think trying to get one's &lt;strong&gt;data under control&lt;/strong&gt; to avoid the need for unlimited data is a wiser design.&lt;/em&gt;&lt;/li&gt;&lt;li&gt;I have heard that overall the cellular carriers are starting to rethink the value of machine-to-machine data plans. Unlike DSL or cable, this is NOT an issue of bandwidth; it is an issue of the % of the time the device "hogs" 1 of N slots or resources on the tower forever.  Imagine having 10 or 20 such devices squatting there, locking up that tower resource.  So it is not even so much an issue of talking once per few minutes verse flat out unlimited traffic. In either case 1 of N finite tower resources is used, so long-term the only "good" data plan may be for a data system using the cellular resource every few hours or a few times a day.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;So overall it looks like my efforts to understand and reduce traffic is useful.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/4619390280756043429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=4619390280756043429' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/4619390280756043429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/4619390280756043429'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2007/05/unlimited-cellular-data-revisted.html' title='Unlimited Cellular Data - Revisted'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-5995110551426716422</id><published>2007-05-29T12:00:00.000-07:00</published><updated>2007-05-29T12:10:16.835-07:00</updated><title type='text'>I will give Webinar 31-May-2007</title><content type='html'>31-May-2007 (Thursday) I'll be giving a webinar related to outdoor use of IP-to-serial devices. While not directly related to my blog theme of "Industrial Protocols over IP", remote devices  frequently are in bad locations, where extended temperature ranges, conformal coating, and Class 1 Div 2 certs are desired.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Title: Connect Local and Remote Devices in Hazardous Environment SCADA Applications &lt;/span&gt;&lt;br /&gt;&lt;a href="https://digi.webex.com/mw0304l/mywebex/default.do?siteurl=digi&amp;service=6&amp;amp;main_url=%2Fec0509l%2Feventcenter%2Fmainframe.do%3Fmainurl%3Dhttps%253A%252F%252Fdigi.webex.com%252Fec0509l%252Feventcenter%252Fevent%252FeventAction.do%253FtheAction%253Ddetail%2526confViewID%253D242769927%2526siteurl%253Ddigi%26siteurl%3Ddigi"&gt;Register here: WebEx Link&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Date: May 31, 2007&lt;br /&gt;Time: 11:00am CDT (central zone)&lt;br /&gt;Duration: 1 hour&lt;br /&gt;Speakers:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Lynn Linse - Engineer, Digi International&lt;/li&gt;&lt;li&gt;Deb Smith - Business Development, Digi                    International&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;What you will learn&lt;/b&gt;&lt;br /&gt;This live webinar will illustrate              the value of using TCP/IP &amp; UDP/IP based communication over              wired and wireless networks to monitor and manage local and remote              devices. Topics include:&lt;/p&gt;             &lt;ul&gt;&lt;li&gt;Overview of requirements for robust, remote, outdoor                communication devices&lt;a href="http://www.elabs3.com/c.html?rtr=on&amp;amp;s=e5x,tmwk,4h24,16go,godj,8oz0,62hf"&gt;&lt;img alt="" src="http://www.digi.com/images/products/portservertshazmei.jpg" align="right" border="0" height="150" hspace="0" width="150" /&gt;&lt;/a&gt;                &lt;/li&gt;&lt;li&gt;Discussion of extended temperature, conformal coating,                hazardous certs                &lt;/li&gt;&lt;li&gt;Comparing features of IT-grade network devices to &lt;a href="http://www.elabs3.com/c.html?rtr=on&amp;s=e5x,tmwk,4h24,16go,godj,8oz0,62hf"&gt;Digi's                Haz product line&lt;/a&gt;                &lt;/li&gt;&lt;li&gt;Extending IP networks to remote serial and Ethernet                devices                &lt;/li&gt;&lt;li&gt;Moving serial communications through TCP/IP and                UDP/IP                &lt;/li&gt;&lt;li&gt;Migrating from analog Telco/POTS lines to IP-based broadband                &lt;/li&gt;&lt;li&gt;Real-world usage examples                &lt;/li&gt;&lt;li&gt;Implementation benefits&lt;br /&gt;- Real-time access to remote sites                and process data without site visits&lt;br /&gt;- Reduce                repair/replacement costs due to less-than ideal environments&lt;br /&gt;-                Options to reduce installation costs with wireless&lt;/li&gt;&lt;/ul&gt;             Please &lt;a href="http://www.elabs3.com/c.html?rtr=on&amp;amp;s=e5x,tmwk,4h24,8v42,5991,8oz0,62hf" target="_blank"&gt;register today&lt;/a&gt; and join us May 31st for this              informative webinar!&lt;br /&gt;Questions? Contact Deb Smith at &lt;a href="mailto:deb_smith@digi.com"&gt;deb_smith@digi.com&lt;/a&gt; or              952-912-3283.</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/5995110551426716422/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=5995110551426716422' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/5995110551426716422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/5995110551426716422'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2007/05/i-will-give-webinar-31-may-2007.html' title='I will give Webinar 31-May-2007'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-3323952332823814587</id><published>2007-05-04T12:53:00.000-07:00</published><updated>2007-05-04T14:13:24.552-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Device Access'/><category scheme='http://www.blogger.com/atom/ns#' term='Ethernet'/><category scheme='http://www.blogger.com/atom/ns#' term='Rockwell'/><category scheme='http://www.blogger.com/atom/ns#' term='Modbus'/><title type='text'>ODVA, Rockwell, and Modbus Get Smart</title><content type='html'>&lt;span style="font-style: italic;"&gt;Summary: next week an amazing joining of technologies will take place at ODVA in Ann Arbor MI as ODVA, Rockwell, and Schneider-Electric discuss how to integrate Modbus servers (slaves) into CIP Producer/Consumer systems&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;One of the fun things about being involved in "multi-vendor" solutions is when you recognize &lt;span style="font-weight: bold;font-size:130%;" &gt;moments of amazing sanity&lt;/span&gt; as they occur.  One such moment of amazing sanity is occurring next week when ODVA (aka Rockwell / Allen-Bradley) and Modbus supporters (aka Schneider-Electric / Modicon / SquareD / Telemecanique) sit down to discuss how to integrate Modbus devices into the ODVA Ethernet/IP and CIP network systems.  Of course there must be some interesting hidden politics behind this move - and I somewhat light-heartedly believe that perhaps French Schneider-Electric sees joining with the Americans (Rockwell/ODVA) as the lesser of two evils when compared to  joining with the Germans (Siemens/PNO).&lt;br /&gt;&lt;br /&gt;Check out: &lt;a href="http://www.odva.org/Home/tabid/53/ctl/Detail/mid/376/ItemId/121/Default.aspx"&gt;ODVA Call For Members: Modbus Integration JSIG&lt;/a&gt;  The kick-off meeting for the Modbus JSIG runs from Thursday, May 10, 11:00 AM to Friday, May 11, 04:00 PM&lt;br /&gt;&lt;br /&gt;Side-stepping the marketing fluff and platitudes of &lt;span style="font-style: italic;"&gt;a brighter future&lt;/span&gt; such meetings evoke, small third-party suppliers and the folks on the plant floor can expect the following benefits.  Regardless of the directly stated goals of ODVA, Rockwell, or Schneider-Electric, small vendors will implement solutions that include these abilities:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Vendors making Ethernet Modbus/TCP products will have a simpler "first step" to adding full ODVA/CIP support without the somewhat overwhelming task of 100% conversion of a word-array device model into hundreds (or thousands) of CIP objects.&lt;/li&gt;&lt;li&gt;ControlLogix PLC will be able to connect through Ethernet-to-Serial devices to multi-drops of Modbus/RTU slaves.  For example a user with a dozen small Modbus/RTU PID loop controllers will be able to add an Ethernet-to-Serial device to read via Modbus and cyclically produce a small block of word data from each loop controller over Ethernet.&lt;/li&gt;&lt;li&gt;HART, Bluetooth, ZigBee and other new technologies which offer Modbus interfaces will find a instant place as sensors and I/O within CIP and Rockwell systems.&lt;/li&gt;&lt;li&gt;Since Siemens, GE-Fanuc, Omron, Mitsubishi and most major PLC brands offer some method to act as Modbus slaves, users with any of these PLC will be able to integrate them within the CIP Producer/Consumer system.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Looking forward a year or two, I also can foresee some other secondary benefits evolving from this JSIG's work:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;I started working with ODVA Ethernet/IP almost 8 years ago and still as-of today the legacy &lt;span style="font-weight: bold; font-style: italic;"&gt;PLC5E, SLC5, and serial MicroLogix (the old PCCC-based PLC)&lt;/span&gt; don't have effective inclusion within CIP Producer/Consumer systems.  Since the device model of PCCC PLC shares much in  common with Modbus PLC, it is a very small enhancement to add a similar support for AB PLC - perhaps AB will actually extend this to future firmware updates to Ethernet-based PLC.  In fact, since my Digi One IAP code already allows Modbus masters to query DF1 and CSPv4 slaves as-if Modbus slaves, as soon as Digi adds Ethernet-to-Modbus support per this JSIG's output users of older AB PLC will gain access to CIP Producer/Consumer systems indirectly as honorary Modbus slaves.&lt;/li&gt;&lt;li&gt;Today legacy Modbus and Modbus/TCP systems lack any simple form of multicast producer/consumer exchange.  While the IDA protocol offers this, IDA is so many orders of magnitude more complex (and resource hungry) than simple Modbus as to become really an "unrelated" protocol.  Any specification that defines a "server interface" naturally implies a corresponding "client interface".  So although this ODVA JSIG is not planning to define how &lt;span style="font-weight: bold; font-style: italic;"&gt;Modbus "peers" could use multicast to exchange cyclic data&lt;/span&gt;, the end result will be a fairly natural and multi-vendor method to do this.  So while I doubt many pure Modbus/TCP products would implement ODVA protocols just to gain this multicast exchange, any products which add the CIP support anyway will naturally add the last few bits of code required to enable pure Modbus-to-Modbus multicast via the ODVA mechanism.&lt;/li&gt;&lt;li&gt;Taking the above point to its natural conclusion means Modbus/TCP masters which implement the Modbus JSIG's "server" function will also gain a mechanism to access CIP Producer/Consumer systems.  Even if the ODVA JSIG doesn't cover how to do this, natural methods will be inferred, produced, and copied by vendors to make this a fairly common new product feature.&lt;/li&gt;&lt;/ul&gt;And lastly, it will interesting to see what response PNO considers to likewise include Modbus slaves more formally into PROFINET.  Personally, I have always felt that the simpler PROFINET IO protocol would fit very naturally with multi-drops of Modbus slaves acting like plug in I/O modules ... each slave would be a module within the IO device.</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/3323952332823814587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=3323952332823814587' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/3323952332823814587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/3323952332823814587'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2007/05/odva-rockwell-and-modbus-get-smart.html' title='ODVA, Rockwell, and Modbus Get Smart'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-5001515885220701000</id><published>2007-04-25T10:09:00.000-07:00</published><updated>2007-04-25T11:12:38.806-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cellular'/><category scheme='http://www.blogger.com/atom/ns#' term='DF1'/><category scheme='http://www.blogger.com/atom/ns#' term='Rockwell'/><category scheme='http://www.blogger.com/atom/ns#' term='Modbus'/><title type='text'>Rockwell and Modbus Data Traffic</title><content type='html'>&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;Summary&lt;/span&gt;: I compare the data costs for four common off-the-shelf PLC protocols to a remote cellular site.  As a rule of thumb, even if you have an Ethernet-based PLC your lowest data costs for SCADA-style periodic polling are obtained using serial protocols via the PLC's serial port.  Their modern "Ethernet protocols" are very wasteful of cellular bandwidth.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;PLC Protocol Example:&lt;br /&gt;&lt;/span&gt;A simple but realistic SCADA scenario is to poll every 15 minutes and read 10 words of data and write 2 words of data.   This commonly requires 1 Read command and 1 Write command (I'll ignore the rarely supported Modbus command that reads &amp; writes within a single command.)&lt;br /&gt;&lt;br /&gt;While there exists special SCADA protocols and special products that optimize remote traffic, I am not looking at those protocols at the moment.  Instead, since cellular and satellite access to remote IP and Ethernet products has enabled people to use off-the-shelf PLC technology, I am looking at the more traditional PLC protocols.  These are things which affect users when they apply an Ethernet design to an IP-based wide-area-network system.&lt;br /&gt;&lt;br /&gt;I compare these 4 PLC protocols:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;AB/DF1 Radio Modem (RM) encapsulated in UDP/IP.  DF1 RM is basically DF1 Full-Duplex with no ACK/NAK and is supported by the SLC5 and MicroLogix line.&lt;/li&gt;&lt;li&gt;Modbus/RTU encapsulated in UDP/IP.  Modbus/TCP within UDP/IP is roughly the same size.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;AB/CSPv4 in TCP/IP as supported by SLC5/05 and PLC5E MSG blocks.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;AB/Ethernet/IP as moved by ControlLogix Explicit MSG blocks to PCCC-based remote PLC. Note that Ethernet/IP "I/O Messaging" does NOT work through NAT'd wide-area-networks since the protocol embeds IP information within the data packets and is thus is "broken" by NAT.&lt;/li&gt;&lt;/ul&gt;The &lt;span style="font-style: italic;"&gt;bytes per 15 minutes&lt;/span&gt; includes the IP headers, any PLC protocol overhead, and the actual data moved for each update (always 20 + 4 bytes).  The &lt;span style="font-style: italic;"&gt;MB per month &lt;/span&gt;is just defined by 30 days of such polling, or 2880 updates at once per 15 minutes.  The 2 serial protocol have been encapsulated into UDP/IP and I assume the remote IP end-point can handle connecting this to the PLC's serial port.&lt;br /&gt;&lt;br /&gt;&lt;table border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="font-weight: bold;"&gt;Protocol&lt;/td&gt;&lt;td style="font-weight: bold;"&gt;Transport&lt;/td&gt;&lt;td style="font-weight: bold;"&gt;Per 15 Min&lt;/td&gt;&lt;td style="font-weight: bold;"&gt;MB per month&lt;/td&gt;&lt;td&gt;Relative Cost&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Ethernet/IP&lt;/td&gt;&lt;td&gt;TCP/IP&lt;/td&gt;&lt;td&gt;1202 bytes&lt;/td&gt;&lt;td&gt;3.46 MB&lt;/td&gt;&lt;td&gt;100%&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;AB/CSPv4&lt;/td&gt;&lt;td&gt;TCP/IP&lt;/td&gt;&lt;td&gt;960 bytes&lt;/td&gt;&lt;td&gt;2.76 MB&lt;/td&gt;&lt;td&gt;80%&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Modbus/RTU&lt;/td&gt;&lt;td&gt;UDP/IP&lt;/td&gt;&lt;td&gt;166 bytes&lt;/td&gt;&lt;td&gt;0.48 MB&lt;/td&gt;&lt;td&gt;14%&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;DF1 Radio Modem&lt;/td&gt;&lt;td&gt;UDP/IP&lt;/td&gt;&lt;td&gt;194 bytes&lt;/td&gt;&lt;td&gt;0.56 MB&lt;/td&gt;&lt;td&gt;16%&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;The two Rockwell "Ethernet" protocols cost a lot more to use in part because they force use of TCP/IP, and therefore suffer the repeated cost of TCP socket opening and closing, plus extra TCP acknowledgment overhead.  They also suffer because they both involve connection registration and service functions that needlessly repeat every time the connection is reestablished. While the actual data packets of these protocols are roughly twice the size of the serial encapsulated protocols, the real burden they suffer is all the extra TCP/IP packets exchanged that do NOT directly involve field data update.&lt;br /&gt;&lt;br /&gt;Both the serial Modbus/RTU and DF1 Radio Modem benefit that they move no IP packets that don't relate to the field data update - no TCP/IP open or close or acknowledgement; no protocol "service function" overhead.  Each moves just 1 read request and 1 read response, plus 1 write request and 1 write response.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Discussion of Other PLC Protocols:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Most other PLC Ethernet protocols will either approach the costs of the AB/CSPv4 - or they won't work at all due to use of direct "Ether-Types" and lack of IP compatibility.  Most serial protocols with roughly either match the 2 show here or be twice the cost if protocol ACKs are used by the protocol.&lt;br /&gt;&lt;br /&gt;Modbus/ASCII will almost double the cost of Modbus/RTU since each data packet is roughly twice the size.  But this wouldn't increase the IP overhead any.&lt;br /&gt;&lt;br /&gt;Using DF1 Full-Duplex instead of Radio Modem would effectively double the cost over DF1 RM since DF1 Full-Duplex moves the protocol ACK/NAK, which doubles the IP header overhead also.  Using DF1 Half-Duplex would triple or even quadruple the costs since HD not only moves protocol DF1 ACK/NAKs, but the ENQ/EOT polling overhead.&lt;br /&gt;&lt;br /&gt;Most other protocols I am aware of - such as Omron Hostlink, GE-Fanuc SNPX, and Siemens PPI - would cost roughly 2 to 3 times more than Modbus/RTU or DF1 RM since they include protocol ACK, while a few even encode many parts of the message as ASCII or BCD form instead of as binary.</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/5001515885220701000/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=5001515885220701000' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/5001515885220701000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/5001515885220701000'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2007/04/rockwell-and-modbus-data-traffic.html' title='Rockwell and Modbus Data Traffic'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-6977995520450048929</id><published>2007-04-19T09:18:00.000-07:00</published><updated>2007-04-19T11:22:12.638-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cellular'/><category scheme='http://www.blogger.com/atom/ns#' term='Rockwell'/><title type='text'>Rockwell PLC5E and SLC5 over Cellular</title><content type='html'>Summary: Customers ask me "How much will cellular cost" - this blog post walks through some examples of SCADA-style periodic polling of AB/PLC5E or SLC5/05 using the CSPv4 protocol (aka AB/Ethernet to 3rd parties) over TCP port 2222.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;Real-World Numbers&lt;br /&gt;&lt;/span&gt;For a simple SCADA-style example assume we need to read 10 words of data (20 bytes) and write 2 words (4 bytes) every time period.  Obviously there would be simple optimizations to this, such as only writing data which changes or using PLC MSG blocks to push data from PLC to SCADA only when something changes.  However my goal in this blog post isn't to "tweak" a solution to minimize cost, but to examine the protocol impact of using Rockwell CSPv4 over IP.&lt;br /&gt;&lt;br /&gt;The table below shows the megabyte per month when polling once per second, per 5 seconds, per 1 minute, per 5 minutes, per 15 minutes, and per 1 hour.  There are lots of variables considered ... and many more ignored.  The traffic ranges from worst-case of 1005.0 MB for TCP/IP with larger header options polled once per second to best case of  0.2 MB for UDP/IP polled once per hour.  This assumes the use of the CSPv4 submode 7,  with local LSAP addressing and ignores that Rockwell PLC5E and SLC5/05 don't support CSPv4 within UDP/IP.  &lt;span style="font-weight: bold; font-style: italic;"&gt;Raw efficiency at moving the data bytes ranges for about 10% for UDP/IP to barely 1% for TCP/IP; &lt;/span&gt;&lt;span&gt;which means most of what you are paying for is not related to actual, meaningful field data.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;( Click this image to see a larger version )&lt;br /&gt;&lt;a href="http://iatips.com/blogimage/rockwell_cspv4_traffic.png"&gt;&lt;img alt="CSPv4 Poll Record" src="http://iatips.com/blogimage/rockwell_cspv4_traffic_thumb.gif" align="middle" height="258" width="388" /&gt;&lt;/a&gt;&lt;br /&gt;(is at &lt;a href="http://iatips.com/blogimage/rockwell_cspv4_traffic.png"&gt;http://iatips.com/blogimage/rockwell_cspv4_traffic.png)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;Notes on the Table&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Since this example reads and writes small amounts of data, it assumes a SLC5-style Protected Typed Read with 3-Address Fields and the corresponding SLC5 write.&lt;br /&gt;&lt;br /&gt;The smaller 40 byte TCP/IP header has no options attached; the larger 52-byte TCP/IP header includes the RFC 1323 Timestamp and Window Scale TCP options.  These appear to be the normal default for Linux and easily becomes enabled under Windows since all applications share a single setting in the Registry.&lt;br /&gt;&lt;br /&gt;The two time columns "15 min (Alive)" and "1 hr (Alive) assume a roughly 4 min 45 sec TCP keepalive to prevent the socket from closing.  This reduces the traffic by the extra open/close overhead in exchange for billable TCP Keepalive packets.  Keep in mind this ALSO requires the PLC to be properly configured to NOT close the idle sockets.  By default, my SLC5/05 seems to close the idle connections in a few minutes.&lt;br /&gt;&lt;br /&gt;The two time columns "15 min (Cls)" and "1 hr (Cls) assume the socket is closed after the a data polls, and the TCP socket and CSPv4 session must be reopened for teh next poll.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;Discussion&lt;br /&gt;&lt;/span&gt;Of course the standard costs of using TCP/IP verse UDP/IP apply:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;TCP/IP uses larger headers, ranging from 40 to 52 bytes per packet as compared to UDP/IP's smaller 28 byte of header.&lt;/li&gt;&lt;li&gt;TCP/IP involves the TCP Acknowledgments, which may result in separate, billable 40 to 52 byte packets moving frequently without any meaningful field data.&lt;/li&gt;&lt;li&gt;TCP/IP may require reopening a socket, costing 120 to 250 bytes per open, plus closing  costing from 160 to 400 bytes.  Exact sizes are hard to predict since both opening and closing of sockets tend to be "pushed" and result in excess retransmissions and retries when high network latency is true.&lt;/li&gt;&lt;li&gt;TCP/IP over unknown 3rd party wide-area-network infrastructure requires at least 1 TCP packet to move every 4 minutes 45 seconds to maintain health.  This means either a data packet or a TCP Keepalive with data.&lt;/li&gt;&lt;/ul&gt;It should be clear to see why using UDP/IP over cellular (which is very reliable) is much cheaper than using TCP/IP.  There are no socket open, close, acknowledgment, or keepalive costs.  Plus field experience has shown that rapid IP retries rarely succeed.  For example, a customer polling with UDP every 5 minutes with 3 explicit retries if no answer will likely have the original poll succeed or that poll and all 3 retries fail.  Again, cellular is very reliable in that packets almost always make it through unless there is a network or congestion issues and then only time (a few minutes) solves the problem.  So such customers have abandoned retries and just ignore 1 failed 5 minute poll and "retry" in 5 minutes.&lt;br /&gt;&lt;br /&gt;CSPv4 issues include:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Rockwell PLC and software tools do NOT support use of UDP/IP - my tests with UDP/IP have to be conducted with the &lt;a href="http://www.digi.com/products/serialservers/digioneiap.jsp"&gt;Digi One IAP&lt;/a&gt; which happily bridges CSPv4 between TCP and UDP (as well as to or from Ethernet/IP and DF1).&lt;/li&gt;&lt;li&gt;CSPv4 requires the exchange of a pair of 28-byte negotiation TCP packets when a new TCP socket is opened to inform the client (master) of a server (slave) assigned session handle.  This nearly doubles the overhead of an open-poll-close socket paradigm.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;The 28 byte CSPv4 header really contains little useful information; such excess bytes cost nothing tangible under Ethernet but cost cash in the form of requiring larger cell plans over cellar.&lt;/li&gt;&lt;/ul&gt;In conclusion, CSPv4 will be a rather poor choice for raw, periodic polling of remote AB PLC.  ODVA Ethernet/IP (as implemented by all vendors) is even worse.&lt;br /&gt;&lt;br /&gt;Your only effective solution at present is to carefully craft a set of MSG blocks to push data from the field in a report-by-exception paradigm.  Of course you also must include safe guards within your PLC to prevent rapid, repeated MSG block triggers during system failure that could cost you thousands of dollar ($$$) in a few days.</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/6977995520450048929/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=6977995520450048929' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/6977995520450048929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/6977995520450048929'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2007/04/rockwell-plc5e-and-slc5-over-cellular.html' title='Rockwell PLC5E and SLC5 over Cellular'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-7770392174981806209</id><published>2007-04-16T09:11:00.000-07:00</published><updated>2007-04-16T09:23:56.504-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DF1'/><title type='text'>DF1 Open Source for Visual Basic 2005</title><content type='html'>Archie has started a SourceForge project for his AB DF1 code running under VB 2005.  He has checked in a full first set of files (unlike many SourceForge projects which get created but NEVER have files :-\ )&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sourceforge.net/projects/abdf1/"&gt;http://sourceforge.net/projects/abdf1/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I haven't looked over his code yet, plus all I have is VB 2003 .NET.&lt;br /&gt;&lt;br /&gt;Hopefully Microsoft has STOPPED the old VB issue that each new rev of VB is neither 100% forward nor backward compatible ... one always need to "tweak" a few lines to make the port work. I've used VB 1.0, 3.0, 4.0, 5.0, 6.0 and now VB 2003 and none of these have liked old code being pulled forward.</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/7770392174981806209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=7770392174981806209' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/7770392174981806209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/7770392174981806209'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2007/04/df1-open-source-for-visual-basic-2005.html' title='DF1 Open Source for Visual Basic 2005'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-8738055365925559928</id><published>2007-04-09T12:05:00.000-07:00</published><updated>2007-04-16T09:37:17.507-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cellular'/><category scheme='http://www.blogger.com/atom/ns#' term='Rockwell'/><title type='text'>Cellular to Allen-Bradley SLC5/05 on TCP 2222</title><content type='html'>&lt;span style="font-size:130%;"&gt;The old CSPv4 protocol.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;The Rockwell/AB SLC5/05 and PLC5E natively speak an older "unpublished" protocol named CSPv4, although most third party vendors call it either AB/Ethernet or AB/TCP.  It moves only on TCP port 2222 - ODVA Ethernet/IP I/O Messaging is only on UDP port 2222, so they don't conflict.  The protocol consists (normally) of a 3-part packet:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;28-byte header&lt;/li&gt;&lt;li&gt;4 or 15-byte LSAP or end-point addressing packet&lt;/li&gt;&lt;li&gt;PCCC message which is basically what DF1 documents as an Application Packet&lt;/li&gt;&lt;/ul&gt;In general, the packets are fairly sparse and compressible (if you have the tools to do this).  The characteristics of CSPv4 which impact cellular (and wide-area-network) support:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Rockwell tools and PLC only support use of TCP/IP and port 2222; this greatly limits use of CSPv4 in NAT'd networks since the remote NAT router can only forward TCP port 2222 to a single remote PLC.&lt;/li&gt;&lt;li&gt;CSPv4 includes a single TCP packet exchange to "register a session" or connect. If you are polling faster than the PLC will hang-up on you, then this is not important.  However, if you poll slow enough that a new TCP/IP socket must be opened for each poll, then even ignoring the TCP socket open/close overhead this nearly doubles your traffic costs.&lt;/li&gt;&lt;li&gt;In tests, a SLC5/05 seems effective at including the TCP ACK response to the host within the CSPv4 data response packet, so you only have to pay for one empty TCP ACK, which is the host's acknowledgment to the PLC for the response.&lt;/li&gt;&lt;li&gt;TCP Keepalive could be an issue, since most hosts fail to issue it and the SLC5/05 I've tested against either doesn't issue TCP keepalives&lt;br /&gt; or does it very frequently.&lt;/li&gt;&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/8738055365925559928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=8738055365925559928' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/8738055365925559928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/8738055365925559928'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2007/04/cellular-to-allen-bradley-slc505-on-tcp.html' title='Cellular to Allen-Bradley SLC5/05 on TCP 2222'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-29965385467279281</id><published>2007-04-05T06:30:00.000-07:00</published><updated>2007-04-05T10:48:03.353-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Device Access'/><category scheme='http://www.blogger.com/atom/ns#' term='Cellular'/><category scheme='http://www.blogger.com/atom/ns#' term='WAN'/><title type='text'>Interested in Cellular? Setup a DMZ Lab</title><content type='html'>&lt;span style="font-style: italic;"&gt;Summary: Last post I suggested people interested in cellular data start by learning how to use their home cable router.  In this post I suggest the next step, of how to make your life easy at work once you're ready to start testing real cellular or satellite access by IP.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Your Second Step should be to set up a simple, isolated low-speed broadband link at work ... create your own DMZ lab.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Sigh - I waste so much time listening to customers complain about how difficult it is to get the IT department to give them custom firewall permissions.  Since modern "Security" wisdom is to block everything until proven safe, I waste more time asking customers complaining that their Modbus/TCP or Rockwell access not working to first talk to their IT group to make sure they aren't blocking unknown binary traffic by default.   I waste yet more time when customers struggle for days and finally have to formally get someone in IT to help study the corporate firewall logs to see if any traffic is getting through or not.  &lt;span style="font-weight: bold; font-style: italic;"&gt;An interesting epiphany occurs when I suggest they just look into paying roughly $50 per month for a private connection for this.&lt;/span&gt;  It is surprisingly cheap to do this and makes a lot of people's jobs 200% easier.&lt;br /&gt;&lt;br /&gt;So far the feedback from customers has been quite positive, with IT departments over-joyed at the idea (slight exaggeration :-] lessor-of-two-evils may be a better term).  This really makes sense; IT is charged with keeping the corporate system working and secure, so when you ask for yet another odd, unknown firewall hole to be opened, you ask them &lt;span style="font-weight: bold; font-style: italic;"&gt;to risk their jobs&lt;/span&gt;.  Plus trying to keep custom firewall settings updated for 50 different projects is an ongoing headache and ongoing risk for mistakes.  I know that Digi's IT group is very satisfied with their policy of not offering custom firewall rules on the corporate LAN but instead helping teams set up such private connections in a safe, isolated manner.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;Simple DMZ Lab Design&lt;/span&gt;&lt;br /&gt;The simplest lab design is little more than a copy of what you have at home: a computer or two, an 8 or 24-port Ethernet switch, and a simple &lt;a href="http://computer.howstuffworks.com/nat.htm"&gt;NAT router&lt;/a&gt; to "share" the internet connection with a dozen devices.  This allows you to freely set up a few OPC servers and Master PLC to test access to remote cellular and other wide-area-network based systems.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Locate an &lt;span style="font-weight: bold;"&gt;empty office or lab room&lt;/span&gt; for your new network.  Perhaps your IT people should pull out or disable the corporate Ethernet in this room.  You are going to create a small "DMZ"; a small isolated network that has limited security consequences if you goof up and let a hacker inside.  You'll want good security tool installed on your Windows and Linux computer used in here.&lt;/li&gt;&lt;li&gt;Arrange for a &lt;span style="font-weight: bold;"&gt;low-speed business broadband link&lt;/span&gt; with one fixed IP address.  256Kbps is more than enough for general PLC/SCADA testing and should cost in the range of $35 to $50 per month.  &lt;span style="font-weight: bold; font-style: italic;"&gt;Yes, just $35-50 per month!&lt;/span&gt;  I had one customer forced to &lt;span style="font-style: italic;"&gt;pay his IT department $100 per month&lt;/span&gt; to open one TCP/IP hole in the corporate firewall!!  Gee, he could install 2 DSL links for that.  Now, be patent when you talk to your carrier, as they are geared to sell the expensive primary access lines used for all corporate traffic including servers.  Keep stressing that you want a low-speed secondary line for use with some network testing and eventually you'll locate the low-cost plans you want.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Set up a DNS name for your DMZ lab.  Online dynamic DNS providers support &lt;span style="font-weight: bold;"&gt;user-selected DNS names&lt;/span&gt; for static IP addresses.  I use &lt;a href="http://dyndns.org/"&gt;dyndns.org&lt;/a&gt; for both my dynamic and static IP but there are many out there.   You won't need any form of DDNS update client since your IP never changes and you must enter the name manually anyway.&lt;/li&gt;&lt;li&gt;Unless you plan to implement large VPN systems, just buy a &lt;span style="font-weight: bold;"&gt;nice consumer-grade DSL/Cable Router&lt;/span&gt; ... the same kind you use at home is fine.  If you plan to set up a serious VPN infra-structure, then you'll just need to bite-the-bullet (&amp; suffer the learning curve) of buying a commercial IT-grade router with VPN server capability built in.  &lt;span style="font-style: italic;"&gt;Be warned that while many consumer-grade routers mention "VPN Support", they are in fact sub-optimized and documented only for home-office users who connect into a corporate Windows or Cisco VPN server.  Normal human beings will find them nearly impossible to set up for anything else!&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Do you &lt;span style="font-weight: bold;"&gt;want more than one public IP address&lt;/span&gt;?  You need to pay a monthly surcharge which varies greatly per carrier, but could be in the range of $25 per month for 8 IP addresses instead of just 1.  Plus you will need a larger IT-grade router since the consumer-grade routers won't support more than 1 public IP address.  Most users won't need more than 1 IP address.  However, having more than one IP address is helpful if more than 1 team shares the lab; this prevents them from trying to setup conflicting router configurations.  Also, a few extra IP are helpful if you want to place a PLC "online" for your customers or sales force to access during customer-site demonstrations in the field.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;If you need to access your corporate network from your DMZ lab, then you need to arrange some rules with your IT people.  Perhaps the rule is using a notebook computer with 802.11 wireless to the corporate network is Ok as long as the notebook is NEVER connected to the lab's Ethernet.  Remember, since your lab has it's own public IP address you can even use FTP or a VPN client to connect "legally" out your corporate network and back into your lab via the Internet.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:180%;"&gt;Fancier DMZ Lab Design&lt;br /&gt;&lt;/span&gt;Since Digi is basically a "communication company", the lab I get to use is much fancier.  It has 32 public IP addresses and even limited secure access from the corporate LAN.  Of course I have to share this lab with other teams, so I'm not owner of 32 IP.  As an example, here is how my lab is setup:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Digi's IT group maintains a Cisco PIX router (a mid-range $800 model) that manages the 32 public IP addresses.  Actually, this is NOT a complication since this router does not by default firewall any traffic; it merely distributes raw traffic based on public IP to one of many to internal IP addresses in an organized manner.  I was lucky enough to get in the lab early and to be assigned 2 of the 32 public IP addresses.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;My first IP address receives 100% raw internet traffic at an internal static IP I selected; so an external IP such as 70.x.x.140 forwards to my internal IP of 192.168.20.159.    Since the goal of the lab is to avoid burdening IT with TCP/UDP port forwarding chores, one could place a consumer-grade DSL/Cable router at this IP.   Placing 2 routes in series is NOT a problem - do a net-trace of how you access www.google.com and you'll see a dozen or more routers in series.  Instead of a pure hardware box I have a Ubuntu Linux machine running firewall and router tools at this IP.  This is where I forward Modbus/TCP to one PLC and Rockwell Ethernet/IP to another PLC.   I prefer the Linux box to the $39 hardware box because it gives me a richer view of traffic in and out, plus I can run an Ethernet sniffer such as &lt;a href="http://www.wireshark.org/"&gt;WireShark&lt;/a&gt; to see a complete trace of the 2-way conversation taking place.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;For my second IP address I had Digi IT setup the PIX router to just forward a simple, safe list of Modbus, Rockwell, Digi, and other industrial protocol TCP and UDP ports.  I normally have a &lt;a href="http://www.digi.com/products/serialservers/digioneiap.jsp"&gt;Digi One IAP&lt;/a&gt; (an industrial-protocol aware Ethernet-to-serial device) at this IP address, but I can safely swap in a Windows machine when a test requires use of Windows tools.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Just as your home router does, the main Digi IT-supplied PIX router does out-going NAT to the internet and internal DHCP address assignment.  So our DMZ lab has its own internal subnet of 192.168.20.x addresses.  Any device in the DMZ lab can access the Internet - with or without going through my Linux firewall/router.  Of course the other teams in the lab don't go through my router, but direct to the PIX router.&lt;br /&gt;&lt;br /&gt;Since i study cellular usage, I have have a &lt;a href="http://www.digi.com/products/cellulargateways/digiconnectwanfamily.jsp"&gt;Digi Connect WAN&lt;/a&gt; providing an Ethernet-based cellular router in the DMZ lab.  So I really have 3 potential routers to use - while it takes a bit of IP experience to not get confused, this allows me to have devices configured to selectively treat any 1 of the 3 routers as "the default gateway/router".&lt;br /&gt;&lt;ul&gt;&lt;li&gt;For example, I can have a Master/Client device connect out to a cellular-based Slave/Server using a route such as Master =&gt; out PIX+DSL =&gt; in Cellular =&gt; Slave.&lt;/li&gt;&lt;li&gt;For example, I can have a Master/Client device connect via cellular to a DSL-based Slave/Server using a route such as Master =&gt; out Cellular =&gt; in DSL+PIX =&gt; in Linux-Box =&gt; Slave.&lt;/li&gt;&lt;li&gt;In both of this situations I can see BOTH ends of the conversation, which is a huge help in testing, timing, or troubleshooting new applications.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;The bonus for having Digi's IT team involved is the PIX router also allows controlled, secure access into the DMZ lab from our corporate LAN.  Technically, the PIX runs a set of rules similar to those used by the main corporate firewall out to the Internet and it just treats the 192.168.20.x subnet as a miniature internet.  So I can sit at my desk and safely check on equipment running in the DMZ lab.  Of course this is limited to equipment treating the PIX as the default router - if you understand IP routing you'll understand why, but at least it lets me log into my Ubuntu Linux router from desk.</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/29965385467279281/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=35259639&amp;postID=29965385467279281' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/29965385467279281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35259639/posts/default/29965385467279281'/><link rel='alternate' type='text/html' href='http://blog.iatips.com/2007/04/interested-in-cellular-setup-dmz-lab.html' title='Interested in Cellular? Setup a DMZ Lab'/><author><name>Lynn August Linse</name><uri>http://www.blogger.com/profile/01534730541144544922</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35259639.post-9137632789781351314</id><published>2007-03-27T12:01:00.000-07:00</published><updated>2007-03-27T16:37:42.332-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Device Access'/><category scheme='http://www.blogger.com/atom/ns#' term='Cellular'/><category scheme='http://www.blogger.com/atom/ns#' term='WAN'/><title type='text'>Interested in Cellular? Do some homework</title><content type='html'>&lt;span style="font-weight: bold; font-style: italic;"&gt;Summary&lt;/span&gt;&lt;span style="font-style: italic;"&gt;: Unless you are a pro at IP routing, you'll save money and time by learning the basics of IP routing over your home Cable/DSL connection instead of a demo cellular account.  Bottom-line ... if you cannot succeed at using your office computer to poll a PLC placed at home via your Cable/DSL connection, then you will NOT succed trying the same trick over satellite or cellular connections.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;Homework - Work at Home&lt;br /&gt;&lt;/span&gt;When engineers first launch into a cellular data pilot it can be a bit like Christmas with the excitement of new toys, future trends and being "on top of it".  However,