1 00:00:00,000 --> 00:00:00,800 Hello, everybody. 2 00:00:00,800 --> 00:00:01,740 Thank you for coming. 3 00:00:02,140 --> 00:00:07,260 This is There and Back Again, which is all about discovering OT devices across protocol gateways. 4 00:00:07,620 --> 00:00:08,900 My name is Rob King. 5 00:00:09,040 --> 00:00:11,100 There's my face if you want to see it twice. 6 00:00:11,300 --> 00:00:12,280 It's right there. 7 00:00:13,220 --> 00:00:16,460 So let's talk about how did we get here? 8 00:00:17,840 --> 00:00:35,480 So when we talk about OT, we talk about ICS, we talk about SCADA, we often think about these super cool looks like from the 1990s or maybe 80s with a good budget sci-fi thing with a control room and uniforms and bleepy things and all that. 9 00:00:35,480 --> 00:00:37,500 And that is part of it and it's super great. 10 00:00:37,640 --> 00:00:44,440 This is a control room from I think it's a refinery in Germany, but it's from Wikimedia, so very nice of them. 11 00:00:44,860 --> 00:00:55,000 But what we're really talking about as well and what we tend to kind of abstract away from as security practitioners is the fact that we're still talking about these machines that actually do things in the real world. 12 00:00:55,000 --> 00:01:01,360 They spin, they pump, they flap, they poke, whatever it is they do. 13 00:01:02,240 --> 00:01:06,300 And so we need to talk about how we actually control those devices. 14 00:01:06,600 --> 00:01:10,760 And by the way, we've got 43 slides to get through in 25 minutes, so I believe in you. 15 00:01:10,860 --> 00:01:12,900 So we're going to go fast. 16 00:01:13,200 --> 00:01:15,100 So industrial control technology. 17 00:01:15,560 --> 00:01:29,140 So it started with, you know, somebody having to stand there and push a button and pull a lever and read things off, you know, read symbols off things and then type or whatever, which is a horrible job that no one should ever have to do. 18 00:01:29,520 --> 00:01:32,380 And so we thought maybe we should automate this a bit more. 19 00:01:32,660 --> 00:01:36,440 So we came up with this concept of simple electronic logic. 20 00:01:36,440 --> 00:01:39,060 So we say, okay, that's a major improvement. 21 00:01:39,060 --> 00:01:47,940 We can have things that aren't just simply repeated over and over, but you can have a little bit of, you know, if then or do this three times and then do something else and it's all great. 22 00:01:48,140 --> 00:01:54,360 But those devices, those controllers were connected to the machines that were being controlled. 23 00:01:54,360 --> 00:02:01,900 If you needed to change something or check on something, you had to physically walk over there and, you know, like a pilgrim and touch things, right? 24 00:02:01,900 --> 00:02:03,380 Push buttons, do all that. 25 00:02:03,620 --> 00:02:07,000 Still a major improvement, but not particularly efficient. 26 00:02:07,800 --> 00:02:14,280 And then so someone had this great idea of what if we make the wires that connect those controllers longer? 27 00:02:14,520 --> 00:02:19,840 And we put all of the controls and the dials and everything all in one spot. 28 00:02:19,860 --> 00:02:22,620 This was the concept of distributed control systems. 29 00:02:23,020 --> 00:02:27,820 And so you put everything in one room and so you can check on the state of your factory in a glance, right? 30 00:02:27,960 --> 00:02:29,500 And this was great. 31 00:02:29,500 --> 00:02:30,360 This was much more efficient. 32 00:02:30,360 --> 00:02:36,280 You still had to occasionally go out and check on things, but it made it easier to get an overview of the whole process. 33 00:02:37,140 --> 00:02:47,200 But it was still a problem in that each one of those, you know, dials or switches or gauges or whatever was linked more or less to one specific device, right? 34 00:02:47,200 --> 00:02:49,680 So you still had a lot of wiring and a lot of cabling. 35 00:02:50,500 --> 00:02:53,280 Cats and dogs living together in a mass hysteria, you know, all that. 36 00:02:54,700 --> 00:03:07,320 If you ever watched, if you're of a certain age, if you ever watched The China Syndrome, Jane Fonda, Jack Lemmon, both of them nominated for Oscars, great movie, a little alarmist, there was a problem where one of these mechanical gauges got stuck and we almost had a nuclear meltdown. 37 00:03:07,740 --> 00:03:10,620 The movie was released just before Three Mile Island, it was very prophetic. 38 00:03:10,620 --> 00:03:16,800 Anyway, so we're like, hey, what if we started putting things like these newfangled computers in there? 39 00:03:16,800 --> 00:03:20,040 Well, now I see your problem, there's a computer in there. 40 00:03:20,040 --> 00:03:30,180 But what happened was we started coming up with the idea of using this newfangled computer intelligence technology to make buses. 41 00:03:30,180 --> 00:03:43,500 So instead of having tons of wires running everywhere, there was enough intelligence in the end devices and the controller devices to send signals, multiplex signals over a single set of cabling, a single set of wires, right? 42 00:03:43,660 --> 00:03:53,260 This is actually, this is an example of the Hewlett Packard instrument bus, which this was back when Hewlett Packard made laboratory equipment and not printers that made you sad. 43 00:03:53,660 --> 00:04:04,320 And also fun note, this was adapted to be the bus for like the Commodore 64, Commodore PET, was also HPIV, just kind of adapted and slower. 44 00:04:04,320 --> 00:04:08,540 So you were doing lab science work every time you used your Commodore 64. 45 00:04:08,880 --> 00:04:19,540 But what was neat about this is there was enough intelligence that you could say, okay, I'm going to send a message and I want it to go to device number 8 or 7 or whatever. 46 00:04:19,540 --> 00:04:22,540 And the other devices knew not to respond to that message, right? 47 00:04:22,540 --> 00:04:25,100 And you only had to have one bit of wiring. 48 00:04:25,780 --> 00:04:37,260 Now, HPIV was, it was designed more for like bench scenarios, like laboratory equipment, oscilloscopes, cool stuff, science, but not large industrial things. 49 00:04:37,520 --> 00:04:40,100 There was a fairly short maximum cable length, that sort of thing. 50 00:04:40,100 --> 00:04:42,720 Wasn't designed for particularly noisy environments, all that. 51 00:04:42,840 --> 00:04:49,320 So Modicon came up with the idea of Modbus, which you've all heard of, and if you haven't, you're about to. 52 00:04:49,820 --> 00:04:56,980 And so that was actually the first Modicon PLC, which Modicon got bought out by, was it Schneider Electric? 53 00:04:56,980 --> 00:04:57,820 Somebody tell me. 54 00:04:57,820 --> 00:04:59,080 Schneider Electric, I think. 55 00:04:59,580 --> 00:05:01,200 Either that or Siemens, Schneider. 56 00:05:01,240 --> 00:05:07,860 Anyway, and the standard protocol for Modicon, Modbus, became controlled by an industry consortium. 57 00:05:07,860 --> 00:05:16,240 So it's kind of an open standard now, very simple, but allowed this concept of a bus architecture in an industrial environment. 58 00:05:16,240 --> 00:05:21,260 So you could say, okay, and this is a little bit more modern, this is talking about Modbus TCP, but the principle is the same. 59 00:05:21,260 --> 00:05:29,140 You can talk to lots of different devices by their address using a common protocol and more or less a common set of physical media. 60 00:05:29,560 --> 00:05:32,140 Made things a lot more efficient, a lot easier. 61 00:05:32,480 --> 00:05:38,620 But then, as time marches on, we started converging on IP and Ethernet. 62 00:05:38,620 --> 00:05:58,440 All of these protocols either predate IP and Ethernet becoming standard or predate them entirely, you know, take your pick, or predate them even becoming useful in the kinds of environments that industrial situations involve, like noisy electrical environments and vibration and things like that. 63 00:05:58,760 --> 00:06:03,400 So we started doing industrial Ethernet because it's a commodity, right? 64 00:06:03,400 --> 00:06:09,460 Ethernet, IP, commodity software, commodity technology, it's cheaper, it's easier to use, it's easier to integrate. 65 00:06:09,740 --> 00:06:16,180 This is fantastic, but it does lead to now you can have your industrial systems connected directly to the Internet, which is a bad thing. 66 00:06:16,180 --> 00:06:19,000 You really shouldn't do that, but this was just an example. 67 00:06:19,000 --> 00:06:20,480 I'm not going to harp on this too much. 68 00:06:20,480 --> 00:06:29,540 Other people have talked about IP convergence and security and OT, but just for the record, I really should not see these sorts of things when I do a public scan of the public Internet, but I do. 69 00:06:29,540 --> 00:06:31,280 So you should fix that. 70 00:06:32,480 --> 00:06:37,240 But the advantages of this convergence are undeniable, right? 71 00:06:37,240 --> 00:06:41,340 It makes it much easier to work with, makes it much easier to integrate into existing systems. 72 00:06:42,160 --> 00:06:47,280 But now that they're all connected, I want to discover these devices. 73 00:06:47,280 --> 00:06:49,380 I want to find them on the network. 74 00:06:49,500 --> 00:06:55,520 I've spent most of my career searching for devices, trying to find them, trying to fingerprint them. 75 00:06:55,520 --> 00:06:56,200 I love it. 76 00:06:56,200 --> 00:06:57,860 It's super fun. 77 00:06:57,940 --> 00:06:59,280 I'm a lot of fun at parties. 78 00:06:59,520 --> 00:07:05,840 So this is Modbus when they took Modbus and adapted it to TCP. 79 00:07:06,180 --> 00:07:19,380 So what they did quite literally was just put a framing header on the front so you knew how long the message was going to be and then they took the core of the Modbus protocol and shoved it on top of TCP and it works. 80 00:07:19,380 --> 00:07:20,320 It works fine. 81 00:07:21,180 --> 00:07:26,320 But it's not ‑‑ it was never designed to really be supporting discovery. 82 00:07:26,400 --> 00:07:30,740 They kind of assumed that if you've got your factory, you should know what's in your factory, right? 83 00:07:30,740 --> 00:07:38,160 Well, factories have gotten bigger, technology has gotten bigger, shadow IT, we now have shadow OT, so it's good to know what's actually going on. 84 00:07:38,620 --> 00:07:43,740 And then this is just to give you an example, this is literally explaining how they're shoving it into the TCP data segment. 85 00:07:43,740 --> 00:07:46,720 It's just the entire Modbus message plus some framing. 86 00:07:46,720 --> 00:07:48,840 It's treated as a normal TCP stream. 87 00:07:49,080 --> 00:07:50,160 There's no magic. 88 00:07:51,480 --> 00:07:55,920 But Modbus as a protocol is very simple, which is not surprising. 89 00:07:55,920 --> 00:08:02,960 It was created in, I think, 1978, so it's about as old as I am and I'm, you know, not very smart. 90 00:08:03,200 --> 00:08:06,320 So it can do things like read a register. 91 00:08:06,320 --> 00:08:10,540 Please give me the number that's in register, you know, 2 or whatever. 92 00:08:10,920 --> 00:08:11,900 And you get that back. 93 00:08:11,900 --> 00:08:12,860 But that's all you get. 94 00:08:12,860 --> 00:08:18,360 There's not a lot of meta information, there's not a lot of self‑describing data, and that was on purpose, right? 95 00:08:18,360 --> 00:08:21,180 They don't want to waste the bandwidth. 96 00:08:21,180 --> 00:08:23,980 They don't want to waste the bits on the wire. 97 00:08:24,520 --> 00:08:27,360 It was much more important to have that maybe be error correction or something like that. 98 00:08:27,360 --> 00:08:30,600 So how do we identify a Modbus device? 99 00:08:30,600 --> 00:08:37,280 Well, this is the list, I know you're all like, wait, wait, there's one more, and I was like, yes, there is, but next slide. 100 00:08:37,280 --> 00:08:43,080 This is a list of all the possible ‑‑ all the standard function codes in Modbus. 101 00:08:43,180 --> 00:08:45,820 And you're like, okay, well, you know, maybe one of these can work. 102 00:08:45,820 --> 00:08:48,760 Like there's that report server ID down there, that seems useful. 103 00:08:48,840 --> 00:08:50,540 That only works on Modbus serial. 104 00:08:50,740 --> 00:08:52,860 Or occasionally on TCP, but it doesn't tell you much. 105 00:08:52,860 --> 00:08:55,680 It's just, yeah, my unit ID is 3. 106 00:08:55,680 --> 00:08:56,820 Which is, you know, great. 107 00:08:56,820 --> 00:08:58,140 I now know that your unit ID is 3. 108 00:08:58,140 --> 00:08:59,300 I still don't know what you are. 109 00:09:00,320 --> 00:09:12,720 Well, Modbus 1.1 in 2004, 6, something like that, gave us the idea of the encapsulated interface transport. 110 00:09:12,720 --> 00:09:28,080 So just like how they took Modbus and they shoved the entire thing inside TCP with some framing, they then shoved this entire sort of additional protocol that's much more complex entirely in the Modbus frame, the Modbus payload. 111 00:09:28,080 --> 00:09:31,240 Using opcode 2B, or not 2B. 112 00:09:31,840 --> 00:09:38,100 And one of the extended operations that they can do is read device identification. 113 00:09:38,540 --> 00:09:49,780 And read device identification, you can say, hey, you can see here that the function code is encapsulated interface transport, and then suddenly there's this new additional secondary opcode, MEI type, read device identification. 114 00:09:50,600 --> 00:09:53,520 And what that gets us back is much more information. 115 00:09:53,520 --> 00:09:57,440 Vendor name, product code, all sorts of useful things. 116 00:09:57,440 --> 00:10:04,600 And in fact, this is if your device supports MEI, it's required to at least support vendor name, product code, major or minor revision. 117 00:10:04,920 --> 00:10:09,260 Most devices also support vendor URL, product name, model name, all that good stuff. 118 00:10:09,360 --> 00:10:20,460 It's all exposed as objects because it was 2004 and everything had to be object oriented and there was probably, you know, somebody made a lot of money saying, oh, yes, object oriented Modbus, but it is, and it's kind of nice. 119 00:10:20,520 --> 00:10:28,440 So you can do that, and you can get all sorts of information automatically when you do this, which is very nice for discovering Modbus. 120 00:10:29,160 --> 00:10:37,380 But now let's talk about the second worst named, second most confusingly named protocol in this talk, which is distributed network protocol 3. 121 00:10:37,380 --> 00:10:40,620 Does anybody, just show of hands real quick, does anybody use DMP3? 122 00:10:40,620 --> 00:10:42,920 It's not super, okay, yeah, all right. 123 00:10:42,960 --> 00:10:54,100 So distributed network protocol 3 is a standard industrial protocol, but it's only, I don't want to say only, it's primarily used in utility distribution. 124 00:10:54,100 --> 00:10:56,780 So electricity, water, things like that. 125 00:10:56,780 --> 00:10:59,680 Super useful, I like having power, I like having water. 126 00:11:01,040 --> 00:11:07,000 DMP3 was designed later than Modbus, and so it has a much richer set of semantics. 127 00:11:07,000 --> 00:11:17,480 This beautiful diagram explains the level of, depending on how you want to look at it, complexity or sophistication of DMP3. 128 00:11:17,760 --> 00:11:26,240 DMP3 has its own framing, it has its own checksumming, it has its own transport layer, it has its own addressing scheme that's much more complicated than Modbus's addressing scheme. 129 00:11:26,240 --> 00:11:35,160 Modbus was just, hey, unit 23 on the shared bus, whatever, do this thing, maximum of 255 devices. 130 00:11:35,660 --> 00:11:37,860 This supports much, much more. 131 00:11:37,860 --> 00:11:47,960 But just like with Modbus where they took the Modbus protocol and just kind of plopped it on top of TCP, they really did that with DMP3. 132 00:11:47,960 --> 00:11:59,060 So DMP3, they didn't just take the user application layer or the transport layer or anything, they took the whole shebang, the whole kit and caboodle, and just plopped it on top of TCP. 133 00:11:59,440 --> 00:12:06,680 Which is great in that you can have a shared implementation and if you're wanting to talk across different physical media, it's all the same code and that's fantastic. 134 00:12:06,800 --> 00:12:11,160 But it also makes discovery of these devices a little problematic. 135 00:12:12,000 --> 00:12:22,920 So DMP3 devices, if they're on an IP network or they're speaking through an IP protocol gateway, they will have an IP address, as one does, but they will also have a DMP3 address. 136 00:12:23,160 --> 00:12:30,360 And also, also, on the gripping hand, they will only talk to their designated primary device. 137 00:12:30,360 --> 00:12:42,760 So when you configure a DMP, I mean, usually, it weighs around everything, but usually when you configure a DMP3 device, you say your primary is, you know, at DMP3 address 7 or whatever. 138 00:12:42,780 --> 00:12:44,860 And then it will only talk to that device. 139 00:12:44,860 --> 00:12:51,360 So if you connect to a DMP3 device via TCP, you will get basically nothing. 140 00:12:51,360 --> 00:12:54,880 You'll just get sort of an empty, you know, session, empty channel. 141 00:12:55,260 --> 00:13:09,920 And if you want to ask that device, you want to query that device for any information, you have to then construct an entire DMP3 transport layer message and application layer message and then send that across the wire with the appropriate destination address for the device you're talking to, 142 00:13:09,920 --> 00:13:12,800 but also you have to spoof the primary address. 143 00:13:12,840 --> 00:13:16,940 So that's a problem because there's, you know, 65,000ish, there's a couple of reserved ones. 144 00:13:16,940 --> 00:13:19,380 Addresses, it would take a long time to guess those. 145 00:13:19,860 --> 00:13:21,620 So what can we do about that? 146 00:13:22,020 --> 00:13:24,380 Well, I just said all that. 147 00:13:24,380 --> 00:13:27,920 Well, what we can do is there's banner sniffing for DMP3. 148 00:13:27,920 --> 00:13:34,180 Not a guarantee, and there's what's sad is the fallback is that you do have to enumerate the address space, but I'll cover that in a second. 149 00:13:34,440 --> 00:13:48,860 But most DMP3 devices, not all, not all, but most, when you connect to them via TCP, will send what's called an unsolicited response, which if you didn't solicit it, it's not a response, it's just a message, but I digress. 150 00:13:49,340 --> 00:13:57,220 But it will say, okay, you know, yeah, my clock is out of sync or here's the flags that have changed since the last time we talked or whatever, but the important thing is that's a full DMP3 message. 151 00:13:57,220 --> 00:14:04,880 It's got the entire transport layer in there as well, including the device's own address and the device that it's talking to, which is its primary. 152 00:14:04,960 --> 00:14:14,100 So you can say, oh, okay, well, great, now I know your address is whatever, because it's the source address, and I should pretend to be whatever the destination address was. 153 00:14:14,100 --> 00:14:15,240 Super useful. 154 00:14:15,320 --> 00:14:17,040 Doesn't always work. 155 00:14:17,120 --> 00:14:19,260 They don't always send these unsolicited responses. 156 00:14:19,260 --> 00:14:23,300 Sometimes they'll send them only if they haven't talked to the primary for five minutes. 157 00:14:23,300 --> 00:14:24,240 Sometimes they send them every time. 158 00:14:24,240 --> 00:14:25,520 Sometimes they never send them. 159 00:14:25,660 --> 00:14:30,780 But if you're doing DMP3 device discovery, sometimes you luck out and you just get one and it's great. 160 00:14:31,180 --> 00:14:40,720 But otherwise you have to go and enumerate the entire address space, which would take a really, really long time, because there's, you know, 65,000 possible combinations on the one end and the other end. 161 00:14:41,020 --> 00:14:49,800 The good news there is that most of those devices or most networks, they tend to put addresses at the lower end of the range. 162 00:14:49,800 --> 00:14:52,640 So really you're only talking about maybe the first 1,000 or so. 163 00:14:52,640 --> 00:14:54,200 You'll get at least a few hits. 164 00:14:54,480 --> 00:14:55,660 But it's not a guarantee. 165 00:14:56,140 --> 00:15:05,220 But anyway, once you've got that connection, once you've got that address guessed or determined or sniffed or spoofed or whatever, you can then get these DMP3 attributes. 166 00:15:05,220 --> 00:15:07,960 They're not quite standard, but they're pretty standard. 167 00:15:07,960 --> 00:15:13,420 And you can say, hey, give me your software version, your hardware version, your host name, all that good stuff. 168 00:15:13,500 --> 00:15:15,540 And there is, in fact, what you get. 169 00:15:15,860 --> 00:15:17,940 By the way, this was a lot of fun to set up. 170 00:15:17,940 --> 00:15:21,160 And when I say fun, I mean that I hated my life. 171 00:15:21,160 --> 00:15:22,280 But I got it working. 172 00:15:22,620 --> 00:15:25,420 So the lab was a mess, but I got it working. 173 00:15:26,020 --> 00:15:28,620 And you can discover DMP3. 174 00:15:29,180 --> 00:15:31,580 But now, let's move on. 175 00:15:31,780 --> 00:15:39,060 I said DMP3 was the second most confusingly named protocol we're going to talk about. 176 00:15:39,340 --> 00:15:44,880 The first most confusingly named, if you come from an IT background, is Ethernet IP. 177 00:15:45,320 --> 00:15:48,900 Because the IP does not stand for Internet protocol, it stands for industrial protocol. 178 00:15:48,900 --> 00:16:00,220 So when we talk about Ethernet IP, we are talking about Ethernet IP on top of IP on top of Ethernet and the two IPs means something different and one of the Ethernets doesn't actually mean Ethernet. 179 00:16:00,220 --> 00:16:01,680 So it's kind of a problem. 180 00:16:01,840 --> 00:16:04,300 But anyway, super fun. 181 00:16:04,300 --> 00:16:05,440 It's a very pretty protocol. 182 00:16:05,440 --> 00:16:06,200 I really like it. 183 00:16:06,200 --> 00:16:10,500 But I really like writing protocol parsers like I would do it if they didn't pay me. 184 00:16:10,500 --> 00:16:12,640 But they do pay me, which is great. 185 00:16:12,640 --> 00:16:13,880 So please keep paying me. 186 00:16:14,780 --> 00:16:15,440 Ethernet IP. 187 00:16:15,440 --> 00:16:21,480 So Ethernet IP is an adaptation of SIP, which is the common industrial protocol. 188 00:16:21,480 --> 00:16:32,520 Used to be an information protocol from Rockwell, but just like Modbus is now controlled by a consortium of whatever, SIP is now controlled by a consortium of whatever. 189 00:16:32,520 --> 00:16:36,360 I still don't know what ODVNA stands for. 190 00:16:36,360 --> 00:16:38,560 I cannot find it, but that's the name of the consortium. 191 00:16:38,560 --> 00:16:40,700 I'm assuming A is association, but I don't know. 192 00:16:40,700 --> 00:16:44,740 Anyway, SIP is an abstract protocol. 193 00:16:44,980 --> 00:16:47,640 Much like SNMP defines lots of encodings. 194 00:16:47,640 --> 00:16:51,500 You can use dir and bur and sir and all those. 195 00:16:52,260 --> 00:16:56,400 Which everyone out there who's ever worked with SNMP is like, no, no, please, stop talking about SNMP. 196 00:16:56,540 --> 00:16:57,500 ASN1, no. 197 00:16:57,500 --> 00:16:58,600 It's terrifying. 198 00:16:58,880 --> 00:17:01,920 But SIP has different adaptations to different protocols. 199 00:17:02,040 --> 00:17:07,060 So Ethernet IP is the SIP adaptation for IP networks, right? 200 00:17:07,060 --> 00:17:10,820 But there's also standard adaptations for combo net, control net, device net. 201 00:17:10,820 --> 00:17:14,520 There's one for CAN bus, you know, all this, right? 202 00:17:14,740 --> 00:17:20,880 But the point is, once you get there, you're talking this abstract protocol, which is defined as objects and messages, right? 203 00:17:20,880 --> 00:17:26,300 SIP defines the standard set of objects and messages and attributes on those objects. 204 00:17:27,700 --> 00:17:31,560 And so, but Ethernet IP is the lower level, right? 205 00:17:31,560 --> 00:17:33,280 You want to connect, or for an IP network. 206 00:17:33,280 --> 00:17:36,340 So you want to connect to a device that speaks SIP. 207 00:17:36,340 --> 00:17:40,680 You connect on an IP network via using Ethernet IP, and then you start talking SIP. 208 00:17:40,680 --> 00:17:44,360 But before you start talking SIP, you're talking Ethernet IP. 209 00:17:44,360 --> 00:17:52,160 And Ethernet IP provides a full device discovery mechanism right out of the box, super nice, it's great, called list identity. 210 00:17:52,360 --> 00:18:04,680 So list identity is, you can see it here, it's command list identity, and, oh, I want SIP identity, and then you get back, you know, Rockwell automation, Alan Bradley, program a logic controller, blah, blah, blah, blah, which is great. 211 00:18:04,680 --> 00:18:10,160 And you can send that via TCP, you can actually do that as a UDP broadcast, and devices will just respond and say, here I am. 212 00:18:10,320 --> 00:18:11,440 And that's great. 213 00:18:11,480 --> 00:18:12,480 Problem solved, right? 214 00:18:12,480 --> 00:18:13,740 We're Ethernet IP done? 215 00:18:13,740 --> 00:18:14,860 No, I say. 216 00:18:14,860 --> 00:18:16,920 Oh, and here's what it looks like when you connect. 217 00:18:17,080 --> 00:18:18,760 There's the devices you can pull. 218 00:18:18,920 --> 00:18:25,400 But I don't want just that device, because remember, we're talking about protocol adaptation. 219 00:18:25,400 --> 00:18:31,440 We're talking about multiple devices being adapted or having gateways to IP networks, right? 220 00:18:31,440 --> 00:18:47,360 What if we're talking about one of these racks where you've got an Ethernet IP adapter, and in that rack you've got a PLC and a motor controller and a thermal monitor and a spline reticulator and all that, and they're connected via some other back plane or some other transport protocol. 221 00:18:47,780 --> 00:18:57,760 Well, what I can do is I can connect via Ethernet IP to that Ethernet IP adapter, and one of the objects in SIP is a connection object. 222 00:18:58,080 --> 00:19:01,320 And another object in SIP is a connection manager object. 223 00:19:01,320 --> 00:19:04,260 And another object in SIP is an identity object. 224 00:19:04,460 --> 00:19:17,760 So if I just connect straight to the Ethernet IP adapter, and I say, hey, I want all of the attributes off of your identity object, I'll get back more or less what I got back from the list identity, just via Ethernet IP. 225 00:19:17,760 --> 00:19:23,820 But now I'm at SIP, it's a higher level of semantic meaning, whatever, but it's still more or less the same thing. 226 00:19:23,820 --> 00:19:38,720 But the magic that comes in is that you can then say, hey, connection object, please, or connection manager object, please get me a connection to the device at this other address, right? 227 00:19:38,720 --> 00:19:39,640 And what do you get? 228 00:19:39,640 --> 00:19:48,820 Well, now you can say, okay, it'll hand you back, it'll say, okay, great, here's a connection to this other device, or I can't make a connection , you know, whatever, there's an error. 229 00:19:49,200 --> 00:20:06,080 But you can now say, okay, I want you to forward this request to get all the identity attributes to this other object through that connection, and it will do so, and it will actually forward that theoretically recursively all the way down to this other object and then relay everything back up to you. 230 00:20:06,220 --> 00:20:09,500 And so now you can discover everything in the rack. 231 00:20:09,940 --> 00:20:17,180 It does use sort of, if you remember source routing, you actually do have to construct a path to get there. 232 00:20:17,600 --> 00:20:19,760 So how am I doing on time? 233 00:20:19,760 --> 00:20:20,020 Okay. 234 00:20:20,020 --> 00:20:33,020 So you can say, okay, I want to get all attributes from the identity object, you can see here, get attributes all, instance one, there's only ever one instance of an identity object. 235 00:20:33,200 --> 00:20:34,500 Port segment. 236 00:20:35,400 --> 00:20:43,040 So I'm trying to get slot 12 of this Rockwell RS links device on its back plane, please give me that. 237 00:20:43,420 --> 00:20:46,820 And what you get is voila, you get this. 238 00:20:46,820 --> 00:20:53,440 So what we have here is, here's the Ethernet IP adapter, and the PLC, and there's all these other devices. 239 00:20:53,440 --> 00:20:58,640 I want to discover all these other devices, because I'm not satisfied with just talking to this device, I want to know everything, right? 240 00:20:58,780 --> 00:20:59,900 And so that's what you get. 241 00:21:00,040 --> 00:21:08,440 You can say, hey, please walk through, please enumerate everything on the back plane recursively, give me a connection to this identity object, get all its attributes. 242 00:21:09,380 --> 00:21:13,220 Cycle through, give me a connection to that identity object, get all its attributes, on and on and on. 243 00:21:13,400 --> 00:21:23,680 Theoretically, even recursively, you have multiple connections, like one of these things could be another Ethernet IP adapter connecting to another rack, and you could still forward that on, and it might not be speaking Ethernet IP, it might be serial, 244 00:21:23,680 --> 00:21:24,300 it might be whatever. 245 00:21:24,300 --> 00:21:41,460 In fact, as you can see, down there at the bottom, you've got an RS232 connector, you've got a 24 volt DC magic thing that's probably making something cool happen in the real world, but the point is, you can use this to recursively discover everything in a SIP network. 246 00:21:41,760 --> 00:21:45,740 And I think I actually managed to finish on time. 247 00:21:45,760 --> 00:21:47,200 So thank you. 248 00:21:47,880 --> 00:21:50,020 If there's any questions, please, I'll be right here.