Cisco Customer Success - Video

Add Network Context to TWAMP Sessions with Telemetry Data in Crosswork Assurance

Playback confirmation!

Do you want to resume playing from last left location?

Chapter 1 Thumbnail
00:00
Welcome, introductions, and session overview
Chapter 2 Thumbnail
04:17
Demo: Web service slowness and topology overview
Chapter 3 Thumbnail
16:17
MDT fundamentals: YANG models, sensor paths, and subscriptions
Chapter 4 Thumbnail
28:08
Architecture: telemetry collectors, sensor collector, and default metrics
Chapter 5 Thumbnail
39:06
Deploying telemetry collectors: tokens, Docker setup, and log validation
Chapter 6 Thumbnail
57:03
IOS XE telemetry configuration and verification
Chapter 7 Thumbnail
01:02:41
IOS XR telemetry configuration and verification
Chapter 8 Thumbnail
01:06:16
Viewing telemetry in Analytics and enabling metrics ingestion
Chapter 9 Thumbnail
01:15:06
Live lab: enabling more devices and licensing considerations
Chapter 10 Thumbnail
01:26:00
Wrap-up: troubleshooting workflow and upcoming sessions

Transcript

I name is Marcus and I will be presenting today. I will be delivering the session for today.00:00And, it will start in a couple of minutes while we wait maybe two or 3 min for more people to join for those who will be late. In the meantime, let me introduce my peers that are with me in this session. We have David and we also have Jen. All of us were part.00:17Of the CSS team, we're in charge of.00:37Driving adoption of different products such as NSO, CNC or cross work assurance in my case. And, I've said cross work assurance and.00:43It's a good opportunity to remind everyone that growth work Assurance was previously known as PCA and before PCA it was known as accian Skylight, or even before that vision matrix. So it's, it's.00:58Had a lot of changes because it's been going through a lot, but the latest name is gross work Assurance just to reflect that it is part now.01:18Of the cross work family. There are many cross work products. Crosswork assurance is one of those. Remember in the session I will be referring to the platform as Crosswork Assurance cross work analytics or just analytics. But remember.01:29Is PCA is acceeding and Skylight is the same platform.01:49And with that, I will start the presentation. I will start sharing my screen and yes, let me share.01:54All of that. Okay, so the 1st session of the series will be enriching D one data with model driven telemetry from iOS XE and iOS XR devices.02:12In case you are not familiar with the analytics platform or with Crosswork assurance, let me give you just a one to minute summary of the platform. The analytics platform, its main role is to ingest data from monitoring sessions.02:31Coming from sensors.02:51Those monitoring sessions are frequently T one sessions and the sensors are either software sensors or hardware sensors, and by hardware sensors, I mean sfps. So within your network, you might have sfps installing your devices.02:53Figured with the one sessions or maybe you are using now.03:13Software sensors configured with the one sessions and the analytics platform is in charge of collecting the results of those tests, the results of those sessions. In a nutshell, that's the analytic platform.03:18Today we will see how we can enrich the data that we're already receiving from with additional data, with more data because the analytics platform is very powerful and it can ingest different types of data. We will see that.03:34Within today's session and also in the next session I will be expanding on the, on the topic. For today.03:54Again, the focus will be IOS XE and IOS XR data. All right, why did I stop sharing? Let me share again.04:02So to begin, I would like to show a troubleshooting scenario. Let me open this window, and let me open this VM.04:17Within this VM that I'm showing and if you at some point are not able to see the presentation, just give me a thumbs up or something and I'll check. But I'm showing here a VM with a web service running.04:34This is a web service, it's not a real one, but I want to show that there's some slowness within the web service. Notice how I refreshed the website, the web service, and it's taking forever to load. It's even showing something like this.04:53This.05:12Which is not the fully loaded website, the web service, so it's terribly slow. Something is happening to the web service. I don't know yet what is happening to it, but something is happening to it. Notice how slow it is. Now, the slowness might be a tri.05:14Attributed to maybe being this a VM, it could be attributed also to the the fact that we are using a Webex to share it and sometimes when we share it, things are slower.05:34But let me actually prove you that there's slowness within the website. For that, I'm showing here a, the platform. This is growth work Assurance analytics.05:52This is the analytics platform. This is the platform that we're going to be working with today. And I want to show you how in this platform I was able to capture the slowness experience by the web service and how is it that can I I can investigate more about what it is happening.06:07Let me 1st introduce the topology that we will be working with, today. So here, this is the topology that we will be working with today. We have a web client, which is the one that I show you in a.06:28A moment ago, our web client could be any customer.06:48Exper using our web service. Then we have a web service running a web server that appears to be running slow. Then we have a network. We have a series of devices, in this case.06:52For the purpose of the, of the demo and the presentation, I've chosen IOS XE and IOS XR routers. So we have, this is the path. This is the network path that the information is following from the web client to the web server. And we are collecting different types.07:08Type of metrics along the path.07:28We are collecting TWAMP measurements from the client to different points within the network. We're collecting T WAMP. We're collecting we will be collecting MDT data or telemetry data and this telemetry data is going to show.07:30There was, interface statistics such as the discards, the throughput, the errors.07:50Or the router CPU and memory metrics. I'm also collecting HTTP metrics towards the web service. This one I will not be covering today, how is it that I am collecting HTTP metrics? A couple of months ago I deliver a similar session.07:57Into this one in which I actually explain more about how to collect HTTP metrics.08:17I will be sharing the recording in case you want to, to watch the recording of the previous session, but also if you'd like to know more about the other type of sensor agents that exist within Crosswork analytics, at the end of the presentation, you will be seeing a survey.08:24And in the survey, one of the questions is if you'd like to be to to engage with my team, with the CSS team and my team can deliver sessions in which we cover other topics of work analytics that I will not be covering today. So if you'd like to work with us.08:42Feel free to answer the survey at the end. I'll request my team to engage with you and with your team. So this is the network path and the topology that we are going to be working with today. Let's explore the following. The following.09:01The following scena, the following dashboard that I have built in which I'm collecting different types of data. I'm collecting to begin with, I am collecting HTTP data.09:22And within the HTTP data, I have this part, the HTTP download time, I'm starting to notice a peak in here and the peak matches the behavior that I'm seeing in the website.09:37Which is being slow. I actually, before starting the meeting, I triggered the issue. So I know, so that's why we see a peak in here.09:57And I would like to mention or to show you that we're collecting different HTTP measurements such as, e.g., the HTTP response code of the website. The website is ok actually because it's responding back.10:07With a 200 ok message, 200 means the website is available. However, it's very slow. The total transfer time, notice how it starts to show a peak, and we are collecting additional HTTP metrics that I will not be covering today.10:23Right.10:43But let's move, let's move to the other widgets within the dashboard to actually investigate this further and I want to actually select a different time period, a different time period in which the issue happened again. Again, this is a lab.10:45So I've triggered the issue a couple of times now just to make sure that everything was working, that the lab was working. And here within this time period, I was also triggering the slowness on the web server. And I'm selecting this time period, so you actually see how the information starts.11:04Correlate with the rest of the measurements that I'm taking. Again, I start to see everything seems to be working fine until at some point something is happening with the download time of the website and I see a huge peak. Then I move down to the network experience part. The network.11:25Experience part is based on.11:45T one measurements. As I said, within my topology I am collecting T one measurements across different points to the routers, to the CSR routers, to the XR routers, and to the server. I'm collecting different measurements from those T one sessions such as packet loss, jitter.11:48The delay. Notice how the delay to the CSR router and to the server, to the web server increased. The the the the other the delay to the other endpoints is.12:08Low well the delayed the CSR one router and the server router is high, has increased. And, here just to help us visualize this, I used the, the red color. Notice how increased.12:24Here within the the the widget. Now, this will give us a good starting point already with the T one measurements. So already with the T one measurements, we have a good starting point, but we can do more and we can deliver more and we can investigate more.12:43So let me move down to the widget, and here well again just to compare for for comparison comparison I added some time series, they're showing the the delay of the interface and notice how the CSR one.13:02Device is the only one showing some delay. Again, at this point, we could already go to CSR one and start troubleshooting or trying to understand if something is happening to the CSR one router, but the analytics platform can help us even more. With the help of MDT.13:19Or with the help of telemetry, I am collecting interface statistics at this point and at this moment I'm only collecting interface statistics from the router.13:39Interfaces, the CSR one router and the XR one router. I'll I'll let me go back to the topology. So I'm only at this point I'm only collecting telemetry data from this router and from this router and from the two interfaces in use, of each router.13:51That's what I'm showing you here at the bottom, and I'm collecting different statistics from those interfaces such as input errors, output data rate, output discards, and the transmission rate. Notice how the interface, the CSR one interface gigabit internet.14:12One interface.14:32Is having output discards While the rest of the, of the other interfaces, the interfaces in the CSR router, the other interface in the CS, in the CSR router is clean of output discards and the same goes for the XR routers the two interfaces.14:33That i'm using, they're not showing any issues within the, within the.14:53Interface. Everything seems to be ok. There are NO input errors in none of the interfaces, output discards. The only one having an issue is the CSR one router gigabit internet one interface. And I see that here in the, in this dashboard that I have built. So.14:59At this point, the issue has been narrowed down even further. I, before going to the device and start sending a lot of troubleshooting commands, I already have a better starting point than just knowing that the CSR one router was the router with the issue. But now, now I know that.15:19CSR one interface has a problem. At this point, I have a better troubleshooting starting point. Okay, so how is it that we got to that part? How is it that we got to that point? We will see that today. Again, this is the.15:41The, the lab topology that I will be using for today. And what is the goal of the session? What is what I want you to take with you by the end of the session? I will start with MDT.16:00For you to understand what is model driven telemetry, and there are we will be covering some core concepts for MDT for all of us to have the same vocabulary when we're talking about telemetry.16:17Then we will see how is it that the MDT data reaches the analytics platform. What is that we need to configure? What is that we need to do for this data to reach the analytics platform? I'll show you this in detail and then how to verify. How is that we can then see this data within the.16:34Analytics platform. Okay, MDT, MDT stands for model Driven telemetry. And model driven telemetry, let us.16:54Collect structured operational data from a device. Rather than e.g. parsing the show output of a command, we have data within the network device, Cisco or any other vend vendor.17:12We have data that has been structured.17:32In a certain way, in a certain model. The data, in this case for the, for, for the for MDT has been structured according to something known as Yang. Yang is a schema.17:35And think of Yank as a tree. Within a tree, you have different branches. And in those branches, you will have then fields. E.g., if we look at the following schema.17:55At the following tree, we have one branch that is called interfaces. We have another branch that it is called CPU, and we have another branch that it is called memory. Within the interface branch, we have different fields that represent different.18:14Operational data such as, e.g., what is the status of the interface? What is the input errors of the interface? What is the.18:34Transmission rate of the interface and what the device is doing is it is populating those fields with values. So the data is structured following this schema, following this tree.18:45In that way, we don't have to build custom solutions and we don't have to build, we don't have to, to start from scratch e.g. creating scripts that will be parsing a show output. In this case, NO, we are using MDT, which is already.19:02Data that has been organized following a defined structure and within the, the, the, the young schema and within the branches, instead of calling them branches, we're going.19:20To be calling them sensor paths because this is actually when you configure MDT, you will see in the configuration that it says configure the sensor path that you want to be working with. In this case, we're going to be working with.19:40This sensor path of interfaces, but remember we have different sensor paths and this depends on the type of device, on the vendor that we're working with but this is the core concepts of MDT.19:55And sensor path.20:17Okay, but now we have selected the data. We know that we need, we want to send and we want to collect interface data. But how to tell the device where?20:20And when to send it. Okay, that comes next. Here we have something now called a subscription. A subscription will help us tell a device what do we need to send?20:36How often and where do we want to send it? So in the router, in the router or in the network device, we will be configuring a subscription. Within this subscription, we're going to be.20:53Configuring different commands and we will be defining different things. One of those is the encoding of the information. What is the payload that the router will be sending or the encoding of the payload that the router will be sending to the collector?21:13For IOSXC, the encoding that we will be using for to work with analytics with Crosswork Assurance is this encoding. Encode KVGPB. For XR devices, we're going to be using this encoding, self describing.21:33GBP. Within this subscription, we are also going to be defining the transport, the, the transport that it is going to be used to send the data from the router to the telemetry collector.21:53So the transport for the IOSXC devices will be GRPC over HTTP, meaning TCP, and for XR, TCP plain TCP. And then the data is sent from the router to the telemetry.22:10Tree using the encoding and the transport that we have configured and remember, the subscription within the subscription is that we define what is the data that we want to send, how often we are going to be sending and where we are going to be sending this data.22:30For the purpose of the lab, we are going to be sending the data every 60 s. And if at any point you have any questions about what I'm saying, feel free to answer the questions here in the chat.22:47And either me or Jan will be answering the questions during the presentation or at the end of the presentation. But feel free to drop your questions in the chat of the of the of the Webex. Okay.23:05I would like to mention at this point, a concept that if you know about MDT, if you've read about telemetry, MDT telemetry, probably you've seen this concept. Day allowed.23:26And dial in. Dial out and dial in refers to who initiates the conversation. Dial out is the network device initiating the conversation and then connecting to a platform and telling the platform.23:42He will be sending you this data.24:02Every so often and the data has the following encoding. So that's dial out. The network device initiating the conversation. But we also have dial in. Dial in, we have a platform connecting to the network device and telling the network device.24:04Guys, send me this data every once in a while, but I will define how often.24:24And, and send me those values. So with dial in, it is the collector initiating the conversation towards the network device asking the network device to send it data.24:31To the collector. Crosswork analytics, Crosswork assurance analytics supports both dial in and dial out. For the purpose of today's session, I will be covering dial out only, meaning.24:46The network device is going to be the one initiating the conversation and sending data to the analytics platform. So what it is happening is we need to select the sensor paths. Remember there are different sensor paths that define the branch.25:04Of the tree that we want to be sending data for. In this case we are going to be sending interface data.25:24We're going to be sending that data every 60 s according to a payload that we define for iOS XE and for iOS XR is different. And then this data will be sent to something known as a.25:31Collector. I will go into the details of the collector in a moment. And at this point, I would like to mention a common that a common concept that you will frequently see in the documentation when you are going to.25:46For the.26:06Information about cross work assurance and one of those is active and passive, Active monitoring passive monitoring. T one is considered active. It's even within its name, two way active measurement protocols.26:08Active.26:28Telemetry MEDT is considered passive. Why? Why is that? Or why T one is active? Well, T one is active because it is injecting probe packets into the network path. Those probe packets attempt to match.26:29The traffic that we want to monitor. So if there is an issue within the network, the.26:49Artificial traffic that we're injecting will be affected by this network issue and in turn, we will be able to detect the problem using a platform like Crosswork assurance. So this is active. Passive monitoring such as MDT, it is passive because it relies.26:56Is on the existence of traffic.27:15Traversing the device. Let's say that you enable MDT for an interface for an interface in a network device, and this interface isn't even wired, doesn't even have a connection. It will be collecting the data from the interface, but it will be all zeros because there's nothing to.27:18Report on, there is NO traffic. It needs traffic to be able to show statistics in the analytics platform, and that's why MDT is considered passive.27:38None is better than the other. T one is not better than MDT or MDT is not better than T one, they complement each other and they usually give us a better approach to troubleshoot issues.27:52Okay, so let's go and move to the architecture. What is the architecture that we need for cross work assurance analytics to be able to collect telemetry data? We will start at the network devices, IOSXC or iOS XR. The network.28:08Devices of course are the ones in charge of producing the telemetry data. We're going to be send the network devices are going to be sending this data to something known as the telemetry collectory.28:28The telemetry collectory, and this is what I will be detailing in a moment, will be received the data and will be transforming the data and sending this data to the sensory collectory. Again, I will be mentioning more about the sensory collector in a moment, and the sensory collector will forward.28:42Add this data to the product work Assurance analytics platform, the Crosswork assurance Analytics platform would allow us to ingest the data and to visualize the data.29:02IOSXC and iOS XR devices require a different type of telemetry collector built for either IOSXC or IOSXR, meaning if I want to send data from IOSXC and IOSXR devices, I will need two separate telemetry.29:16Telemetry collector.29:35This is because the telemetry collector Insurance Analytics out of the box has been pre configured to only understand either data from IOS XE and or IOSXR. The telemetry collector can be customized because the telemetry collects.29:37There is using something called telegraph.29:56So the telemetry collector can be customized and we can make the telemetry collector improve it and modify it in ways that will allow us to consume data that go beyond telemetry MDT. But for that we will be cover I will be covering that part in the session two.30:00Next week I will detail more about modifying the telemetry collector. Today, we are going to be using the telemetry collector as it is out of the box.30:20With NO custom changes to the telemetry collector. So in a nutshell, we have, this is a rough representation of the network path that we have today. We have CSR routers.30:32That that are running iOS XE, we have extra routers that are running.30:52Well, that are XRV nine K Each router are sending data to different collectors. The XE routers are sending data to the.30:58Telemetry collector for IOSXC, the XR router is sending data to the telemetry collector for XR. Notice that the only differentiator between the collectors is the port. What does this mean and what is this IP address? This IP address.31:15This represents the IP address of the machine where I'm running the telemetry collector.31:34And this represents the port. And why is it a port? Well, it is a port because the telemetry collector is actually a docker container running on a, on a machine, on a server. It doesn't have to be a server. It's running on a machine, it is a.31:42The docker container, so we will need Docker to be able to run the telemetry collectors.32:02And we can use one single machine to run as many collectors as we can, as we, as we want. In this case, I'm actually using the same machine to run the XE telemetry collector and the XR telemetry collector. The only differentiator between them is the.32:08Port that they're using, and you will see in a moment where it said this is defined.32:28And we also have another collectory. This is the s and we have the the collector known as the sensory collector, this one. The sensor collector, as its name implies, it collects.32:34All typed of data from different parts and different components of and of the Crosswork assurance solution. Mainly it collects data from the T one measurements, from the sensor agents, from the from the either software or.32:50The Hardware agents from, from the sfps Mainly that's its purpose. However, in this case, because we also want the sensor collector to collect data from telemetry devices, from, devices, network devices.33:09Producing telemetry data is that we need separate collectors. We need telemetry collectors because the telemetry collectors will transform the data to a format to a language that the sensor collector understands.33:27So I will not be covering the deployment of the sensory collector because if you are using Crosswork assurance, very likely you already have one or multiple sensory collectors within your network. You can use those collectors to also collect telemetry data, but know that you will need separate.33:44Collectors known as the telemetry collectors and neither neithers to say the IP addresses and the ports are examples you can use.34:04Of course other ports or IP addresses. No need to say that and ok as I said, out of the box, we don't really need to configure or to customize the telemetry collector needed neither for IOSXC.34:14Or for iOS XR. They support default metrics.34:34And let me actually show you that in the documentation here. In the documentation for Crosswork assurance, you will see this page that says default iOS XE and iOS XR metrics.34:41Here are the, the metrics that out of the box the telemetry collectors support. Notice there are a lot of metrics that both collectors support. You don't have to make anything, you don't have to modify the collectors out of the box. They will be supporting that.34:58Those type of metrics.35:19And so this is what it is mentioning here, IOSXC, IOSXR, they support default out of the box metrics. They, IOSXR support, e.g., as well IPSLA.35:24If configured and in the in the network device, so to to see the detail of the supported metrics out of the box, they're here in this part of the documentation.35:41Okay, so there are a couple of, checks that we need to go through, not our Andres not out of the box, we, but it is possible to do it. For that we will need to customize the collector and as I mentioned next week I will.36:03Be covering how to customize it. Out of the box, NO. Notice how here in the in the list.36:23For iOS XR, IPSLA is listed, but for iOS XE it is not. For iOS XE is only interface CPU, and memory. So next week I will be covering how is it that we can modify the collectors so they support more type of types of data.36:31Okay, so there are a couple of checks that we need to verify, to make sure that our architecture will work. One of those is the device itself. Verify the image that we're working with, either IOSXC or IOSXR.36:50Because depending on the version that you're running, the commands that will be supported by the the device probably differ are different from the ones mentioned in the guides. So make sure that especially if you're working with all the releases of the, of those iOS xe, iOS XR devices, verify the.37:10Supported commands and the sensory paths available for the specific image that you're running.37:30Of course, check the network, make sure that there is a communication from the network devices to the different collectors and the from the collectors or from the sensor collector to the analytics platform. Within the platform, within the Crosswork assurance platform, verify that.37:38You already have a sensor collector. Remember we need one, a sensor collector, that you have the permissions required to go to the page to add telemetry collectors. I'll show you that in a moment. And.37:58Licensing and capacity, I will go to back to this part later in the presentation, but this is something to check as well. And some best practices is to protect the baseline before you start to make any configuration changes to the devices such as.38:15Saving the configuration and having a rollback path in case something goes wrong, but it is MTT and usually it is harmless to configure in most devices.38:34Okay, so let's move forward and let's see how is it that we can configure, we can create telemetry collectors within the analytics platform. Remember that if you are planning to send data from IOSXC or from IOSXR, you will need to send.38:48You will need to create a different collector for each one of the platforms.39:06And one collector can collect data from multiple devices, meaning one IOSXC telemetry collector can collect data from multiple IOSXC devices and one IOSXR collector can collect data from multiple iOS XR devices as long as there's connectivity.39:12Between the devices and the collectors. So to add the collectors, the telemetry collectors, we come to this part in the platform that it is called sensors.39:31We see this page that says collectors depending on the version that you have, if you have an older release of the platform, you might actually see the telemetry collectors in a separate tab and it actually says telemetry collectors. In the latest release, they're all together meaning all of the.39:44The.40:03Sensor collectors and the telemetry collectors, they're all shown within the same page. So that's why I only have this section. In this section, I have the plus icon. When I click in the plus icon to add a collector, it will ask me what type of collector do I want?40:06I don't want a sensor collector, I want a telemetry collector, so I will choose.40:24Telemetry collector. Then it will ask me for a name. I'm gonna call it demo session. And here in the dropdown menu where it says configuration, I have.40:30For today, the, the, the two options that matter are these two, IOS XR, IOSXC. Here is probably when where we can make an error. If we choose the wrong one, it will not work. So make sure to choose the right one if you're working with XR or with XC.40:46Then it's asking us for the sensor collector IP address.41:07This is, it is asking us for the IP address of the sensor collector here, this one. So it's asking us for that IP address and it's asking us for, a port.41:13So I'm just gonna choose, well actually I'm gonna use the default, and then you click in the check mark here, the collector will be created and here at the bottom, you will need the token or a token. You click here where it's.41:28Says generate.41:49Authentication token. And then you will see this data. Let's see if I You will see this data, ok? I mentioned that the telemetry collector is a docker container. So once you have this data, once you have this piece of data, this.41:50This is known as a secret. Once you have it.42:10You will go to the machine where you want to install the telemetry collector. In this case, I'm using the same machine for both the IOSXC and the IOSXR collectors. Within the machine, you will have.42:14Two important files. Let me show you 1st, the one for, and actually the configuration is the same for both for iOS XE and for iOS XR. The only thing that that changes is that when you select in the analytics platform, make sure that you select the the right.42:31Type of telemetry collector, IOSXC or iOS XR. And the port, the port of course also changes because we need a way to differentiate between them. So I'm running the same, I'm running both collectors on the same machine, IOSXC, IOSXR.42:51I was saying that you need two files. One is a file known as the secret file. The secret file contains the information that I just showed you a moment ago, the secret of the, it's like the password of the collector.43:10So you will need to create this file, known as secrets YAML file, and then you will need to create another file. In this case, the name doesn't matter, it can be called whatever you want to call it if you if you want to call it xE.yaml X.43:28R.yaml. It doesn't matter, the name for the other file does not matter and neither for the secrets actually, but the names help you to identify what is the purpose of the files. So for that reason, I've called one comp one of the files I've called it compose.yaml, and the other one I have called it secret.43:48Dot yaml. And, so what matters is not the name, but the content. I already show you what's the content of the secrets file, which is I as I said, it's like a password, and what is the content of the compose file?44:08Let me show you. The content of the compose file is this and this is going to be exactly or almost it's exactly the same for both. Doesn't matter if it is iOS XE or IOS XR.44:25What is the, what is being defined within the, within the the the within this file? Couple of things. 1st of all is the IP address of the sensor collectory. This is the IP address of the sensor collector and the sensor collector has.44:46As a management port and here I have indicated what is the management port.45:06Of the sensory collector. What matters as well is where is the secret that I've shown you a moment ago? And here what and let me actually show you here in the screen.45:11Here I give it the path. I told it the secret, you will find it here and it is called secrets.yaml. So as I said, the name doesn't matter. All that matters is the content of the file. So here it could be called something else, but.45:29It actually helps to give it a name to actually understand what's the purpose of the file.45:48And, so here I indicated where it can find the secrets.yaml file. And the only the other or the additional difference that you will see within the collectors, let me open the other one.45:53It's here so here in the screen I've opened both. The 1st one is for iOS XE and the other one is for IOSXR. Notice.46:12That the configuration is very, very similar to the terminal. Sorry. Yes yes, sorry. Let me see where see ok back the back to the to the terminal. Apologies.46:29And let me recap, briefly. So what I'm I'm running both collectors in the same machine, in the same server. I'm running the iOS XE and the iOS XR in the same server.46:47Within this, within for each collector I need two pair of files. One of those files is the secrets.yaml file which contains this information. This information came from the analytics platform. Let me show it again.47:05And let let me actually share all of my, my, my whole screen. Okay, so what I did was to create the collector demo demo. Here I select whether I want iOS XE or iOS XR. Here I enter the.47:23The IP address of this sensory collectory, click check, and it will give me this option that says generate token. The generate token option will give me this. This is the information that I need to place inside the secrets file. So here is the secrets file. And I need to do this.47:43For each one of the collectors, for the iOS XE and for for the iOS XR collector. I need another file for each one of the collectors. The file is known as.48:03Compose.yaml. And as I said, the name actually doesn't matter, but it helped me to identify what is the purpose of the file. So I've called it compose.yaml, but you can call it whatever you want. And notice that the content of the files is very similar or almost the same.48:15Either for iOS XE or for iOS XR.48:34The, the changes that happen are the following. One is the port because we need a way to differentiate between them where the data will be going to? Well.48:38We do that with the use of a port. The container name, they cannot have the same name or Docker will complain. And the path to the secrets file.48:55In case we used different bytes paths for for each one of the files. So that's actually, and this is, this is these are the actual collectors that I'm using. So this configuration is working. I'm using different names for the containers, one is iOS xi.49:13The other one ISXR.49:31I'm using different ports. One is 57000. The other one is 57002. They are both sending data to the same sensor collector and I've indicated where that I put the secret for each one of the collectors.49:33So here is the full path. You can actually, you could copy and paste this and only modify this with the values in your own environment and this should work. Once you do that.49:53Once you, well, there, there are additional steps. Let me once you create those files, the compose file and the secret file, you need to run a series of commands. The 1st one, this one is not documented, but I recommend you run it.50:10Yeah, this command what it will do, it, it will validate the configuration of your docker container making sure that there are NO, typos or something that Docker does not understand. So I recommend running this command 1st.50:30Then you will need to create the container. You will need to tell Docker, I have a compose file, create a container using this definition. You, you run this command from the place where you have the compose file.50:48There's actually a way to, e.g., you can do something like this and you actually indicate that where is that the compose file is located or you can run it directly from where you actually have the the com.51:08Compose file. You run this command. This will start the.51:27The container and then you can run this command pseudo docker compose PS, to verify the status of the container. Here you see that I have the IOSXC collector.51:34That it is active, well it's up and the port that it that it is listening at, and if I go to the other section when I have the XR.51:49Collector and I run the same command, this one, you will see the information for the XR collector that it is also up and that it is listening in port, 57002, so they're both listening at their different ports.52:05If they're up, good, because the the collector the docker container creation process worked, NO issues, and they're healthy, they're showing here. I I recommend also.52:26Running this command in here that it will show the logs over the past 5 min because I've created these containers a couple of days ago.52:43The logs that are going to be shown is only telling me data that it is being received, the amount of data that it is being received. But here in the presentation, I mentioned that when you run this, after you install or after you create the containers.52:58Look for these type of messages in the containers. If you see this type of messages in the containers, it means that the container not only came up but also will be ready to start receiving data. You will see, authentication messages. Let's see, e.g., if I.53:17Can still I can still see the logs because it's been several days, maybe they have been overwritten. So I will see.53:36Well, a lot of logs, and I have to go all the way up yes. So here you see the the logs from the very beginning and you will start to see different type of messages and I recommend looking up for the follow up.53:53Doing messages that will confirm that it worked. Let's see if I can find. Here e.g., you will see that the container is trying to collect, to connect to the sensory collector.54:13And then when it succeeds, it brings another message, this one, this one is very important. You need to see this message, the authentication successful. So here the container was trying to communicate with.54:33With the sensor control and it worked. If you keep seeing this message over and over, it means that it is something is wrong within the communication between the container and the sensor collector between your telemetry collector and your.54:51And your sensor collector. There's also other type of messages that I, let's see if I can find it, these ones as well.55:11Here it's, if you see this, it means that the docker containers, the one that says loading config, loading config, starting telegraph. Remember that I told you about the telegraph component of the containers? If you see these type of messages, it means that it, it worked.55:30If you don't see these type of messages, maybe you made a typo in the name of the image that you're using. The name of the images are documented and, but maybe you made a typo and this is not loading because it was not able to write the, the, the.55:50The right image. And, if it all worked at the very beginning, at the 1st time that you create the container or the telemetry collector, you will see this in zeros.56:09Because at this point likely you will not be sending any data to the telemetry collectors. But once you start to see data, another way to see if this is working once you start sending data is because you start to see that there's.56:30Numbers. Instead of showing you zero, it's showing you the number of, the amount of bytes being received by the collectors. So once you start to see numbers, it means that the collectors were able to receive the data from the network devices.56:47So I, here I mentioned try to search for those type of message messages that I just showed you such as receive data, the authentication, and that telegraph was loaded. The messages that I show you within the, the, the logs. How do you see those?57:03Logged using this command and just change this by the name of the container that you created.57:23Okay, now that we have the telemetry collectors configured, what is next is to configure the devices to send data to the telemetry collectors. How do we do it?57:34Here I'm showing you 1st the configuration that you need for IOS XE. This configuration was retrieved from the Crosswork Assurance documentation. So this is according to the best practices and this is the configuration that I'm actually using in my devices. Remember that I.57:49Mention what is a subscription, what it does, a subscription basically tells what, where, and how often.58:09The type of encoding. IOSXC remember uses this type of encoding, the sensor path or the branch of the tree that I want to send. So this is the I want for now I just want to send interface data. The stream, I will not go into details, but for iOS X.58:17See yank push.58:37There are other ways, but for now young push. How often every 60 s, where? Well, he, to this IP address, to this port. What is this IP address? This is the IP address of the.58:39Telemetry collectory and this is the port. Notice the port that I mentioned in the compose file.58:57This is the port, ok? Don't get confused with the ports and the IP addresses just this one in the router, we're telling the router what is the IP address of the telemetry collector and what is the port. And then we tell.59:13The transport.59:32For IOSXC, we're using this type of transport GRPC, TCP. And then we enable netconf. So again, the subscription is telling me what, how, and where. Here I have added some verification commands that are useful to run in the devices.59:34That I will actually run right now in the in the network device in the I and the iOS XE device and yeah, let me open the device. It's this one, this is the XR.59:55So this is the CSR router, and let me run the verification commands that I recommended. So here you will see the, this is the CSR one device. I just pasted the command that I recommend to run. You will see that the subscription is.01:00:13Figured and valid this showing me the IP address of the telemetry collector along with the port and the protocol.01:00:33If I run this one, this other verification command, it will show me that the status of the, of the subscription is connected. Pay attention to this message in here because you might start, you might see other type of status or other type of states.01:00:41It has to say.01:01:01Connected. If it doesn't say connected, give it a couple of minutes because at 1st try, it can take a couple of minutes and after some time, couple of minutes, it should change to connected.01:01:05In this router, in this IOSXC router, let's see, in this router I'm only sending.01:01:23Statistics about memory and interface. But here in the presentation, I'm also sending.01:01:42CPU statistics and let me actually copy paste this and put them in the router. So now I've configured the router to also send CPU statistics to the analytics platform.01:01:49It wasn't before, so let me scroll up. In the past it was only sending memory statistics and interface statistics. Now we will also be sending CPU statistics. In a moment we will see that in the analytics platform, but see the configuration it was the same for all of those sensory paths.01:02:08The only thing that changed was the sensor path CPU memory or interface.01:02:28Okay, so this is for iOS XE and then you can run these commands to verify that the configuration has worked. For IOSXR, the configuration is a little bit different. For iOS XR, they use something called destination groups. So you have to create.01:02:35Create 1st a desk destination group in which you will define the IP address of the telemetry collector, the port of the telemetry collector where this data is going to be sent to. The type of encoding. Remember for iOS XR, this is the type of encoding self describing.01:02:54GPB, protocol TCP. Then you enable the sensor paths that you want to work with.01:03:14In my case, I'm sending all three. I've enabled them already in the iOS XR router, so I'm sending interfaces, data, CPU data, and memory data. Come on.01:03:24Mistakes that can happen, e.g., if between iOS XE and IOSXR is using a different type of encoding. If you use a different type of encoding, it might not work, so try to use the one that it is recommended in the documentation. Of course the IP addresses and ports.01:03:40They might.01:03:59Failed if you if there's a typo or the sensory paths maybe different if you are running especially old releases of iOS XE or iOS XR, the sensory paths maybe different. So just verify those type of details. And for the iOS XR, then you need.01:04:01Need to.01:04:20Correlate the subscription with the sensor groups and how often do you want to send this data? This data will be sent every 60 s. And then here I've shown a couple of commands that you can actually run in the XR devices to verify that.01:04:23Telemetry is working, so let me go ahead and open the devices here. This is the XR router. Let me run the 1st command that I suggest to run. Here you can see some useful data about telemetry.01:04:42You can see what's the IP address of the sensor, of the telemetry collector. What is the port? What is the encoding? You can see that the group, the destination group is active.01:04:59And then you can see the type of data that we are sending, we are sending CPU, memory and interface. Those we're sending all of them from the XR routers.01:05:17Okay. Now, let's say that you reach the point in which you are sending data from the iOS XE routers and from the iOS XR routers. You verify the logs in here you see that the bytes are increasing for both.01:05:35The IOSXC telemetry collector and the iOS XR telemetry collectory. You verify the devices, the CSR, the XR routers, you run the command that I suggested, and you still see NO counters. You still see NO data.01:05:55That might happen. It's not common, but it might happen. Why? I'll show you that right now. Out of the box, the platform, the analytics platform should start to show the data that you are sending right away.01:06:16If it, if it is not doing it, then we duplicate this tab, then open my platform, if it is not doing it, check what I'm going, what I will be telling you in a moment. Before showing you that.01:06:35Let me actually show you, well here you will see all type of sessions configured in my platform. I have D one sessions, telemetry sessions, HTTP sessions, I have many type of sessions in here, but I want to show you.01:06:53Remember that in a couple of minutes ago I enabled CPU for the, for the CSR router CPU metrics. I ran the, I ran the, these commands to enable CPU metrics or CPU MDT data to be sent to.01:07:09The analytics platform. I've gave it a couple of minutes, so let I should see now CPU metrics coming from CSR one. Let's see if that's the case. So.01:07:29Yeah, here they are. CSR one CR was not lying you and well, I still don't see the values in here. I will need probably to wait.01:07:46More minutes, but once you actually see that the session is listed in here, very likely you will already start to see the metrics. Just give it a couple of minutes and we should see them. They should appear in here.01:08:01By the end of the presentation, very likely we will have them in here. Just hold on but what if they don't appear here? What if you actually don't see not even this, not even, I don't know CPU, 5 min 5 s, what could be happening?01:08:17Well, the analytics platform is very powerful, this platform that I have here open. It can collect dozens of metrics. However, not all of them are enabled at once.01:08:38Because it could cause just an information overload and become very cumbersome to, to, to handle the platform. So not all of the metrics are enabled at once. For that, you need to come here to settings.01:08:55Within settings, there's a section that says ingestion and here locate the type of ingestion that you're dealing with. In this case, I'm dealing with telemetry data.01:09:12And I want interface because that's the one that we're working with. Notice the huge list of metrics that can be ingested out of the box without any type of custom customization.01:09:28All the type of metrics that can be ingested by the analytics platform, but if I enable this, check, I only have these ones enabled. So if I actually go to the platform and open one of the interface.01:09:44Sessions that I have here, and then I come here to the metric that I'm collecting, my advice received. This list, the list that I see here matches what I have enabled in here.01:10:02And let's say that I'm expecting more metrics because, because I went to the list and I saw that out of the box I was also supposed to receive broadcast packets and I don't see them, right? And I'm like, they lied to me, I don't see them here, but I was supposed to have them out of the box why I don't.01:10:20Can see them. Well, it's because very likely they're disabled. So just come here once again settings, ingestion.01:10:40And then locate the type of measurement that you're dealing with. In this case, we're dealing with interface statistics and noticed a huge list of metrics that can be received out of the box and notice that we have here some.01:10:49I don't know, broadcast metrics that are disabled, and so if you don't see the metric that matters to you in this list, one 99 % for sure is because it's disabled, so just come here.01:11:06Enable it. I don't know I'm gonna enable this one just randomly and then just click here in the save changes and see now it is enabled, and if it has a value.01:11:22It will appear in a moment, in here. Again, every time that you make a change, every time that you start sending new data to the analytics platform, give it a couple of minutes, 05:10 minutes before you start to actually think that it didn't work, so.01:11:38It won't happen right away. We have to wait. Let's open the CPU session and let's see if we already have data or we have to wait longer. See?01:11:58I went again I was in line to you. Now the CSR one is sending CPU data and I'm already starting to see values in here and and the graph and the values will continue to come as time passes.01:12:15Okay, so go back to the presentation here. So again, receive data does not mean visible data yet because you might need to modify the Enable the metrics within the inventory for the information to appear in the platform.01:12:30Okay, and here is a couple of checks. If you want to troubleshoot, if you have already configured everything and you still see nothing or if something is not working, here are a couple of checks that you can make to make sure that, everything is.01:12:51Is it's working or should be working as expected from the CLI in the devices verify what I said. Verify the image that you're running, the supported commands in the in the in the image that you're running.01:13:08The path, the sensory paths available for the image that you're running IOSXC or ISXR because they might differ depending on the on the version. Verify the network path.01:13:24From the router to the telemetry collector from the telemetry collector to the sensor collector and to the from the sensor collector to the analytics platform that the ports, the required ports are open, that their firewalls, if any are available for ready to forward the.01:13:40The traffic and that.01:14:00The network is ready to put this traffic from the one place to another. Routers byte sent. This is something that you can check in the in the in the in the network devices with the command that I shared before. The.01:14:03Collectory statistics, the collectory.01:14:23Metrics statistics. This is something you can check in the in the boxes itself. With the command to show the logs, you'll hear see numbers increasing or numbers appearing, meaning data is being sent.01:14:27By the devices are received by the collectors. This is important. If you keep seeing zeros, like, at the very beginning here, it means that NO data, NO telemetry data is coming to the collector, to the telemetry collector. You know.01:14:45Need to actually see counters coming here. I show you the logs for the XE.01:15:05Docker container, but the the logs for the other container are, should be exactly the same. I need to verify if I show you the logs for one container.01:15:14Yeah, ok. Let me actually show you the logs for the other container. So you actually see that they're the same. Oops.01:15:30Type the wrong password. Okay, yeah. So here I have the other container.01:15:46So I show you the logs for the XR container. Let's see the logs for the XE container and notice that the logs are showing what I said. They're showing bytes received by the collector. If you don't see this, if you see zeros, something.01:16:05Is is isn't right. Very likely the device configuration, maybe the wrong IP address or the wrong port was typed. So that's why the data is not reaching the telemetry collectors.01:16:22So here are some of the points where you can check and verify this path. And now let's go ahead and in my lab, I only enabled telemetry for these two devices, the XR router.01:16:38And the CSR router, but I have other two. I have a CSR router in here and then it's a router in here.01:16:58None of them are running telemetry. Let me actually show you. None of them are configured with telemetry. So what I would be doing is I'm going to configure them. I have.01:17:04The configuration already available for me.01:17:24And now you see what it is defined within the configuration. You see that it is encoding, the sensory path, how often, and where. I will be only sending interface data from this router from the CSR router. So I go ahead and configure.01:17:30With this.01:17:50And I will run the verification commands that I suggested in here. Let's see what's the status once I run the verification commands, ok, this one says configure and state invalid. Let's, as I said, we should.01:17:52Eight.01:18:11So minutes because it takes some time. See, it says disconnected and remember that I showed you in the other one that it said connected. So let's wait and it can take several minutes.01:18:12So while I ok connecting, good, it's changing and if you have any questions in the meantime while I wait for this to come up, let me know, feel free to send them in the chat. Well, in the meantime, actually, while I wait for this.01:18:34Just to connect. I want to mention something very important that I wanted to.01:18:55Mentioned by the end of the presentation and it is this find the here. I said that there are some prerequisites when you want to do the configuration of telemetry.01:19:02And, one of those and one very important prerequisite is licensing. It does require a separate license. The Crosswork assurance platform requires a separate license to be able to work.01:19:21Just telemetry data from iOS XE or IOSXR devices.01:19:40And, let's see if I have it in here within the documentation.01:19:47This is something that you can do right now, right after the meeting or whenever you have a chance. If you want to make the your platform, your cross work assurance analytics platform available for telemetry data, what you can do is to install the telemetry collector, the telemetry collector that I show you.01:20:04You?01:20:24The IOSXC or IOSXR, IOSXR ISXE, you can go ahead and install them, but running in a mode that it is called the licensing mode. What this will do is this will deploy the collectors in a mode that will allow you to.01:20:27To measure and the.01:20:47How many licenses you will need to be able to ingest the data that you want to ingest into the analytics platform? And here it shows how you can do it. See that the, that the definition of the compose file is very similar to the one.01:20:50But I show you the name of the image, the name of the connector.01:21:10But it includes here some additional data, one of those data, one of those pieces of configuration is telling the container to run in licensing mode. Once you run this in licensing mode.01:21:15And you start sending telemetry data to the analytics platform, the collector will give us a number of licenses that you need for telemetry to work in your platform.01:21:31So this is of course important and then you can work with your account team to, for the licensing part of of this, which, I cannot help much on the on the licensing side, but I'm sure that if you are interested in trying this out.01:21:47You can agree with something with your accounting, but that's a different conversation. But you can already test this, what I'm showing you by running the telemetry collector in the licensing mode and the licensing mode will tell you how many licenses do you need to be able for the cross work assurance.01:22:07To receive telemetry data. Let's see if the change for this has changed. Well, it says connecting. Let's see, because it can take several minutes for the.01:22:27For the sessions to to start and to connect to the telemetry collectors. But let's go ahead and do the same for the XR router. I'm gonna go ahead. I I already have the the configuration needed for the.01:22:43IOS XR router. Here it is. So I'm just gonna copy and paste ok NO errors in the commit, so I'm not gonna end this and let me.01:23:00See what's the status of the configuration. It's also trying to resolve, and NO con NO counters yet.01:23:16Let's, but ok, but now telemetry is also configured in the XR router. Let me go back to the XE router and let's see if now the code, the connection is ready. Connecting.01:23:36Well, now it says configured and valid, but yes, but I also need this to say connected, like in the other one. Once it says connected in the analytics platform to see the data.01:23:57Let me open the analytics platform. You will see it here. What I showed you is under sessions and each type of session will create a different category of session based on the sensory path that you're sending. So notice here how I.01:24:15Have different categories now. I have the XE CPU, XE interface, XE memory. For XR I have interface and I have environment. XR sends CPU and memory together. So that's why I only have one sensor, one category for a CPU and memory.01:24:35But e.g., for CPU interface, let's open interface for IOSXC. Here I have different routers sending data to, to my platform. Here I have the CSR router, which is the one that I've been working with. I'm going to.01:24:55Opennet and here within the performance section of the router, I see the different metrics. Same goes for the XR one.01:25:15And this is called XR. One, I have the different interfaces because I enabled all of them in the XR router. So I'm gonna open just this one.01:25:28The XXXR 0000 interface, and notice here how I have a lot of metrics coming from the interface statistics from that router. So let's see.01:25:43Oh It will take several minutes for it just to connect and once it connects it will also take more time for the analytics platform to actually show the the metrics.01:26:00But notice that the configuration that I used here show run the telemetry, this is the configuration of the CSR router in here on the left.01:26:17Is identical to the configuration running on this other device, which is the one that I have been working with from the very beginning. The only difference is that for this one I have.01:26:34Enabled CPU and memory already. And for the other one I've only enabled interface as of now. And but again we are reaching the the end of the session and I just want to.01:26:53Close this by, explaining once again what I did in the initial demo in which I followed one event window. Remember that we started with HTTP metrics, then I moved to T.01:27:12One metrics and then I moved to MDT metrics and this helped us narrow down the issue.01:27:31To answer what, where and how. Let me change the time frame that I used in here and let me change this, which is a problematic timeframe. So notice HTTP, interface, and.01:27:39MDT data, they're all showing something wrong with the MDT data, I can isolate the issue to this being something happening on CSR 1 gb ethernet one interface. So this helped us narrow down.01:27:55For a troubleshooting starting point. We know that there's something wrong with this interface, and then we can proceed and investigate. In the upcoming session next week, I'll show you how the telemetry collector can be used to.01:28:10Ingest 3rd party data into the analytics platform, basically inject almost any type of data that you can imagine into the analytics platform. Of course, I will be giving you the details and the limitations, but.01:28:28With that, I will close this session. I hope that you you learned something today and remember if you are, if you want to receive a more deep dive session from.01:28:46One member of my team, feel free to contact your account team and or answer the survey at the end of the presentation. There is a question asking you if you want to have additional sessions being delivered by us to your team. With that, thank you everyone for joining today's.01:29:01Session. I hope to see you next week when where we will continue with this. And I didn't mention, but in the 3rd part of the, of the series, we will see how is it that work Assurance connects with Splunk.01:29:21And or troubleshooting scenario gets even richer, but that will happen until the 3rd session. In 2nd session, it will be just 3rd party data being ingested into analytics. So thank you everyone, I wish you a good day and I'll see you next week.01:29:39Thank you.01:29:59

About this Video

Author : Cisco Customer Success

Uploaded : November 19, 2026

Service ProviderCrosswork Network Controller
AI summary icon

AI summary

This recording shows how Cisco Crosswork Assurance Analytics enriches active TWAMP with Model-Driven Telemetry from Cisco IOS XE and Cisco IOS XR to accelerate troubleshooting across the data path. It details the architecture and steps to deploy Telemetry Collectors (Docker and Telegraf), connect to the Sensor Collector, configure dial-out subscriptions, and enable interface, CPU, and memory metrics in ingestion settings. The walkthrough demonstrates verification methods, common pitfalls, and how licensing mode estimates telemetry capacity. It highlights out-of-the-box metrics and practical dashboards that correlate HTTP, TWAMP, and MDT, valuable for teams using Cisco Crosswork Network Controller within the Crosswork portfolio.

  • Learn how to enable Model-Driven Telemetry on Cisco IOS XE and Cisco IOS XR with correct encoding, transport, and sensor paths.
  • Learn how to deploy Telemetry Collectors on Docker, connect to the Sensor Collector, and verify data flow and ingestion settings.
  • Learn how to troubleshoot subscriptions, validate metrics in dashboards, and estimate licensing needs using licensing mode.