<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kannan K on Medium]]></title>
        <description><![CDATA[Stories by Kannan K on Medium]]></description>
        <link>https://medium.com/@vkskans81?source=rss-99e579568298------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pY2pV72Sk4gozcm1C8lVuA.jpeg</url>
            <title>Stories by Kannan K on Medium</title>
            <link>https://medium.com/@vkskans81?source=rss-99e579568298------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 02:24:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vkskans81/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[SIM Register (Key Generation)Flow using AKAv1 with Milenage algorithm]]></title>
            <link>https://medium.com/@vkskans81/sim-register-key-generation-flow-using-akav1-with-milenage-algorithm-21617a697ef3?source=rss-99e579568298------2</link>
            <guid isPermaLink="false">https://medium.com/p/21617a697ef3</guid>
            <category><![CDATA[simulation]]></category>
            <category><![CDATA[key-generator]]></category>
            <category><![CDATA[telecommunication]]></category>
            <category><![CDATA[load-testing]]></category>
            <category><![CDATA[imsi]]></category>
            <dc:creator><![CDATA[Kannan K]]></dc:creator>
            <pubDate>Tue, 28 Apr 2020 14:31:03 GMT</pubDate>
            <atom:updated>2020-05-05T07:04:44.526Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>UE (Key Generation Flow) </strong>using <strong>AKAv1 with M</strong>ilenage algorithm</h3><p>This document illustrates and explains this process in great detail to allow developers and implementer’s to easily adapt their designs to the requirements. There is a running example used to illustrate each step in the process. The Appendix contains several examples of the end-to-end calculations.</p><p>Briefly, AKA operation proceeds as follows:</p><ol><li>The shared secret (K) is created and assigned to a SIM and the AuC.</li><li>The AuC produces an Authentication Vector (AV) based on K and a Sequence Number (SQN). The AV contains a random number challenge (RAND), Network Authentication Token (AUTN), an expected result password (XRES), and cryptographic keys for integrity checking (IK) and encryption (CK).</li><li>In response to a client (UE) registration request, the server (CSCF) creates an authentication challenge containing the RAND and AUTN parameters. The challenge is delivered to the client.</li><li>The client presents the challenge to the SIM which verifies the AUTN. If the verification is successful, the network has been authenticated. The SIM creates the password response (RES) and local versions of the keys (IK, CK).</li><li>The client creates the response from these parameters and re-attempts the registration. The server verifies the password for authentication of the UE to the network.</li></ol><p>AKAv1 are the same up to step 5, where there is a difference in password/response creation</p><p><strong>Creating a Shared Secret</strong></p><p>The shared secret (K) is created when a SIM (UICC) is manufactured. The secret is embedded in the SIM and is not visible to any device into which the SIM could be inserted. The secret is also distributed to the VzW authentication center managed by the Home Subscription Server (HSS) located in the core network. The secret is never directly exposed, but is used to create credentials which are then exchanged and compared using authentication and key agreement (AKA) protocols.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*cRuYHAYowq8EY_igVAK7gQ.png" /><figcaption>Figure 1 illustrates the process of SIM creation and distribution of authentication credentials</figcaption></figure><p>The essential data contents (for this discussion) of a SIM are a 4-tuple of unique values:</p><p>the ICCID — Integrated Circuit Card IDentifier,</p><p>IMSI — International Mobile Subscriber Identity,</p><p>SQN — a sequence number, and</p><p>K — the secret. Also, there is a set of message authentication and key generating algorithms f1, f2, f3, f4, and f5 embedded in the SIM and are the same as the corresponding functions at the AuC.</p><p><strong>IMSI Registration</strong></p><p>Registration is a process that serves several purposes. From a service perspective registration is the means for a UE to bind its public identities (MSISDN, IMSI) to a network location at which it can receive service. Another important function of registration is to exchange credentials so that each can verify the other’s identity. IMS follows the familiar SIP challenge-response message exchange with inclusion of the IMS AKA Digest method. Figure 2 is a message timeline indicating the order and important contents of the registration request-response sequence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*6ALB6e18x2GouSihu98WBQ.png" /><figcaption>Figure 2 Message Exchange on Initial IMSI Registration</figcaption></figure><p>The UE sends an initial SIP REGISTER request that includes its IMSI and waits for the challenge to be offered by the Registrar (CSCF). The initial registration request includes an Authorization: header containing username, realm, and domain uri parameters. These serve to identify the UE and the protection domain it wants to join</p><p><strong>1st request</strong> <strong>Header from Client-side</strong></p><p><em>Connected to XX.XX.XX.XX (XX.XX.XX.XX) port XX (#0)<br>&gt; GET / HTTP/1.1<br>&gt; User-Agent: <br>&gt; Host: <br>&gt; Authorization: Digest username=”</em><a href="/service/mailto:311111510000000@3gppnetwork.org"><em>311111510000000@3gppnetwork.org</em></a><em>”, realm=”bsf.3gppnetwork.org”, nonce=””, uri=”/”, response=””<br>&gt; Accept: */*<br>&gt;</em></p><p>The CSCF (Call Session Control Function) creates a request for the HSS Cx interface (Diameter) for one or more authentication vectors (AV) using the identifying keys supplied on the registration request. The AV contains the challenge values. After the CSCF receives the authentication vector response from the AuC it will code the challenge into the appropriate SIP headers and respond with a 401 Unauthorized SIP message</p><p><strong>Response Generation</strong></p><p>The CSCF creates a response for the UE using the RAND and AUTN parameters from the AV. The response, coded according to [<a href="https://tools.ietf.org/html/rfc2617">RFC2617</a>] and [<a href="https://tools.ietf.org/html/rfc3310">RFC3310</a>], will consist of nonce, algorithm, and qop parameters bundled into a WWW-Authenticate: header. A 401 Unauthorized status containing the challenge is returned to the client.</p><p><strong>1st Response header from Server-side</strong></p><p>HTTP/1.1 401 <br>* Authentication problem. Ignoring this.<br>&lt; WWW-Authenticate: Digest realm=”bsf.3gppnetwork.org”, qop=”auth-int”, algorithm=”AKAv1-MD5&quot;, nonce=”my+zBgLfkQh+u00YXszkuDX8qRtdKgAAngbc9vPmgVtic2YubW5jMDI4Lm1jYzkwMS5wdWIuM2dwcG5ldHdvcmsub3Jn”, opaque=”d3d01b2d580e9ef35ea63d7c6ad6f327&quot;</p><p>The nonce is a Base64-coded [<a href="https://www.ietf.org/rfc/rfc4648.txt">RFC4648</a>] concatenation of the RAND, AUTN, and some server-specific data. These are all binary values with well-defined lengths so each component may be readily extracted from a decoded byte string. Figure 3 illustrates this process for the example nonce.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*OEO9s2gwhGNj6VtKc63htg.png" /><figcaption>Figure 3 Challenge nonce decomposed into constituent RAND and AUTN parts</figcaption></figure><p><strong>Using GSM milenage algorithm and generated below RES, IK,CK values</strong></p><p>URL of online <a href="http://niviuk.free.fr/milenage.php">Milenage algorthim</a></p><p><em>Keyset # 1</em></p><p><em>ki: XXXXXXXXXXXXXXXXXXXXXXXXXX </em><strong><em>(SIM KI Value for IMSI </em></strong><a href="/service/mailto:311111510000000@3gppnetwork.org"><em>311111510000000</em></a><strong><em>)</em></strong></p><p><em>op: XXXXXXXXXXXXXXXXXXXXXXXXX</em><strong><em>(operator value)</em></strong></p><p><em>Auth Triplets:</em></p><p><em>rand: 9b2fb30602df91087ebb4d185ecce4b8 </em><strong><em>(RAND value from nonce)</em></strong></p><p><em>sres: 9e5d382c</em></p><p><em>kc: 026e823beeab1c3c</em></p><p><em>res: f852853e660fbd12</em></p><p><em>ik: 812deddc494207f421ab84f2612105d7</em></p><p><em>ck: 901e73d47497e5d832f698c1b25ffbc7</em></p><p><strong>Password/Response Generation and Verification of UE by Network</strong></p><p>The UE must now create a response to the CSCF to complete the exchange required by [<a href="https://tools.ietf.org/html/rfc2617">RFC2617</a>]. Using AKAv1 the RES value returned from the SIM through a successful AUTHENTICATE procedure is the password used in the response message of [<a href="https://tools.ietf.org/html/rfc2617">RFC2617</a>] (see [<a href="https://tools.ietf.org/html/rfc3310">RFC3310</a>]).</p><p>HTTP Digest is known to be vulnerable to man-in-the-middle attacks. Use of Digest AKAv1 should be limited to situations where the client is able to demonstrate that it possesses the AKA session keys (CK, IK). This is possible in the 3gpp IMS network if the client and server use the keys to create an IPsec security association for communication following registration.</p><p>If the HTTP Digest AKAv1 implementation does not use tunneled security protocols based on the AKA session keys CK and IK, it is not considered secure.</p><p>The response is an HTTP Digest seeded with cryptographic materials created by the SIM and parameter values from the SIP message that will be sent to the CSCF. Figure 4 illustrates the response generation process. The details of the HMAC calculation for AKAv1 implementations are found in following subsections. An example, including all of the function applications and bit-wise arithmetic is found in the Appendix</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*9Q92A15ZLvz3LDXKTf9W-A.png" /><figcaption>Figure 4 XRES to response and cnone value creation flow.</figcaption></figure><p><strong>Use of AKAv1</strong></p><p>The RES parameter created by the SIM is the password for the HTTP Digest response in AKAv1. The UE will create an IPsec security association before it returns a new registration request. The procedure using AKAv1 is to Base64-encode the RES parameter, and then supply that as the input password to the HTTP Digest Calculation.</p><p>The locally calculated session keys, CK and IK, are used to establish the IPsec security association. This protects the password exchange and ensures the security of subsequent signaling. The client following [<a href="https://tools.ietf.org/html/rfc2617">RFC2617</a>] creates an hash of the RES and all of the Authorization: parameters to protect them and sends a new Registration request to the CSCF through the IPsec tunnel.</p><p><strong>Derivation of TMPI</strong></p><p>Derivation of TMPI follows the same procedure as NAF specific key derivation in GBA and GBA_U. As the TMPI is stored in ME, for GBA_U the procedure for derivation of Ks_ext_NAF is followed. NOTE: This procedure was chosen to avoid any changes to existing UICCs in case of GBA_U. The BSF_Id defined in this clause consists of the full DNS name of the BSF as used for B-TID generation</p><p>Concatenated with the Ua security protocol identifier for TMPI as specified in Annex H. In GBA and GBA_U, the input parameters for the key derivation function to derive the TMPI shall be the following:</p><ul><li>FC = 0x01,</li><li>P0 = “gba-me” (i.e. 0x67 0x62 0x61 0x2d 0x6d 0x65) (Ks_NAF and Ks_ext_NAF),</li><li>L0 = length of P0 is 6 octets (i.e., 0x00 0x06).</li><li>P1 = RAND,</li><li>L1 = length of RAND is 16 octets (i.e. 0x00 0x10),</li><li>P2 = IMPI encoded to an octet string using UTF-8 encoding,</li><li>L2 = length of IMPI is variable (not greater that 65535),</li><li>P3 = the BSF_Id encoded to an octet string using UTF-8 encoding, and</li><li>L3 = length of P3 is variable (not greater that 65535).</li></ul><p>The Key to be used in derivation of TMPI shall be:</p><p>Ks (i.e. CK || IK concatenated) as specified in clauses 4 and 5. The TMPI is then computed as TEMP@tmpi.org where TEMP is the base64-encoding [12] of the 24 most significant octets of the output of KDF</p><p>Using below python logic pass the parameter rand, ck, ik, impi and bsf_id</p><blockquote>Calculate TMPI according to ETSI TS 133 220 V14.1.0 (2017–07) section B.4 Derivation of TMPI</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*eqWETieVkOLgcxOkJ7XPaQ.png" /><figcaption>Figure 5 TMPI Calculate</figcaption></figure><p><strong>2nd request Header from Client-side</strong></p><p>Connection: close</p><p>User-Agent:</p><p>Authorization: Digest username=”<a href="/service/mailto:HW6FJ6Us+PWC2HXJGLFBNGNPJewFOJkN@tmpi.bsf.3gppnetwork.org">HW6FJ6Us+PWC2HXJGLFBNGNPJewFOJkN@tmpi.org</a>”, realm=”bsf.3gppnetwork.org”, nonce=”my+zBgLfkQh+u00YXszkuDX8qRtdKgAAngbc9vPmgVtic2YubW5jMDI4Lm1jYzkwMS5wdWIuM2dwcG5ldHdvcmsub3Jn”, uri=”/”, qop=”auth-int”, nc=00000002, cnonce=”67ecd3226daaf3dd”, response=”4e02d61fecea992f640ffcf58e3a2b91&quot;, opaque=”d3d01b2d580e9ef35ea63d7c6ad6f327&quot;, algorithm=”AKAv1-MD5&quot;</p><p>Accept: */*</p><p><strong>2nd Response header from Server-side</strong></p><p>HTTP/1.1 200 <br>Authentication-Info: qop=”auth-int”, cnonce=”67ecd3226daaf3dd&quot;, nc=”00000002&quot;, rspauth=”f5f809ef0815f733e4f98537aebfa3c2&quot;, nextnonce=”bSmKtdjJ44t5bWueXIUv/QAu16kvuwAATEFHjjrr92xic2YubW5jMDExLm1jYzExMS5wdWIuM2dwcG5ldHdvcmsub3Jn”<br>Content-Type: application/vnd.3gpp.bsf+xml</p><p>Finally key generation successfully done and the 2nd response body BTID value for the key retrieval test flow.</p><blockquote><strong>Note</strong>: KI and OP values are prerequisite for the <strong>GSM milenage algorithm</strong></blockquote><p><strong>Examples</strong></p><p>Base64 Calculation (Nonce value to Rand, AUTN value)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Exnp_cH5ocnYmKQT3lTo9w.png" /><figcaption>Nonce to RAND</figcaption></figure><p><em>GSM milenage algorithm (RAND,KI,OP to CK,IK and RES)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*Rg_ZJ8W-z0znflC0TV8mEA.png" /><figcaption>CK, IK and RES generation</figcaption></figure><p>Sample test values from <a href="https://www.etsi.org/deliver/etsi_ts/135200_135299/135208/06.00.00_60/ts_135208v060000p.pdf">key set values</a> URL section 4.3.2</p><p><strong>Glossary of Terms</strong></p><p>AKA — Authentication and Key Agreement, a challenge-response –based mechanism that uses symmetric cryptography to implement a one-time password generation for use in Digest Authentication.</p><p>AuC — Authentication Center, Security component of the Home Subscription Server (HSS) that manages (K, IMSI, ICCID) and generates AVs to support authentication of UE.</p><p>Cryptographic and Authentication Parameters:</p><p>K — Shared Secret Key embedded in a SIM and distributed to the AuC (128bits)</p><p>RAND — random (number) challenge string created by AuC for a new AV (128bits)</p><p>SQN — sequence number; monotonically increasing structured value (48bits). Roughly, SQN is the index of an Authentication Vector over time for a particular user.</p><p>AK — Anonymity key used to conceal SQN; generated by f5 and generally f5 = 0 (48bits);</p><p>AMF — Authentication Management Field, a structured constant (16bits) with several possible uses: indicating what algorithm &amp; key were used to generate an AV; sequence number maintenance; track and limit the lifetimes of CK &amp; IK.</p><p>MAC — Message Authentication Code (64bits), constructed from SQN, RAND, and AMF. This code allows the user to verify that the SQN and AMF values are not compromised.</p><p>Cipher Key — key used to code message blocks and ensure confidentiality (128bits).</p><p>Integrity Key — key used to ensure that message contents have not been altered (128bits).</p><p>AUTN — Network Authentication Token constructed from an obscured SQN (XOR’d with the AK), an AMF, and MAC.</p><p>AUTS — Network (re-)Synchronization Token, created by the SIM when it determines that an SQN received as part of an AUTHENTICATE request is not within an acceptable range.</p><p>Authentication Vector — tuple of cryptographic and authentication parameters delivered from the AuC to a CSCF. Contents (RAND, XRES, CK, IK, AUTN).</p><p>CSCF — Calling Session Control Function, IMS term for Service-side SIP servers that implement UAS, Proxy, Registrar, and B2BUA functions.</p><p>Endpoint — a communicating node in a network.</p><p>f1, f2, f3, f4, f5 — Cryptographic functions used to create various parameters: f1 — Message authentication function used to compute MAC</p><p>f2 — Message authentication function used to compute RES and XRES</p><p>f3 — key generating function used to compute CK</p><p>f4 — Key generating function used to compute IK</p><p>f5 — Key generating function used to compute AK</p><p>HSS — Home Subscription Server, the EPC component that manages the services subscription information for individual endpoints.</p><p>IMS — Internet Protocol Multimedia Services, a 3gpp SIP-based architectural framework designed to support basic and advances communications services using Internet Protocol.</p><p>IPsec — IP Security, architecture designed to provide security services for traffic at the IP layer.</p><p>nonce — a one-use challenge parameter constructed by concatenating the RAND and AUTN components of an authentication vector and some server-specific data (all binary strings). The resulting 320bit string is coded using Base64 into a text string.</p><p>qop — Quality of Protection, a SIP authentication parameter that indicates what kind of protection scheme(s) may be used on a particular authentication challenge-response (generally qop=auth).</p><p>SIM — Subscriber Identity Module, securely stores service-subscriber identities and service information. This term is used interchangeably with UICC to denote the security component of 4G device.</p><p>UE — User equipment</p><p>UICC — Universal Integrated Circuit Card, the actual smart card that contains a SIM and other applications required for 4G security and services.</p><p>— — — — — — — — — — — — — END — — — — — — — — — — — — — — — —</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21617a697ef3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Learning Frameworks For DIGITS using Docker platform]]></title>
            <link>https://medium.com/@vkskans81/deep-learning-frameworks-for-digits-using-docker-platform-6fab928e45ad?source=rss-99e579568298------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fab928e45ad</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[gpu]]></category>
            <category><![CDATA[nvidia-docker]]></category>
            <category><![CDATA[cuda]]></category>
            <dc:creator><![CDATA[Kannan K]]></dc:creator>
            <pubDate>Mon, 11 Feb 2019 10:00:05 GMT</pubDate>
            <atom:updated>2019-02-11T10:00:05.095Z</atom:updated>
            <content:encoded><![CDATA[<p>Other platforms are not officially supported, but users have successfully installed DIGITS on Ubuntu 16.04, CentOS, OSX, and possibly more.</p><h3>Host Server Environment</h3><ul><li>Server Ubuntu 16.04</li><li>Plug in the NVIDIA device</li><li>Install Docker</li><li>Install Nvidia Docker</li><li>CUDA</li></ul><h3>Requirements</h3><p>Running a CUDA container requires a machine with at least one CUDA-capable GPU and a driver compatible with the CUDA toolkit version you are using.<br>The machine running the CUDA container only requires the NVIDIA driver, the CUDA toolkit doesn’t have to be installed.</p><p>NVIDIA drivers are backward-compatible with CUDA toolkits versions</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*xUMknA-4d6L8iVy9B3YgcQ.png" /></figure><h4>Installation of Docker CE</h4><p>Step 1 : Install using the convenience script</p><pre>$ curl -fsSL https://get.docker.com -o get-docker.sh<br>$ sudo sh get-docker.sh</pre><p>Step 2: If you would like to use Docker as a non-root user, Create / Add your user id to the “docker” group by following the below commands:</p><pre>$ sudo usermod -aG docker your-user<br>$ docker --version<br>Docker version 18.09.0, build 4d60db4</pre><h4>Installation of Nvidia Docker</h4><pre># If you have nvidia-docker 1.0 installed: we need to remove it and all existing GPU containers<br>$ docker volume ls -q -f driver=nvidia-docker | xargs -r -I{} -n1 docker ps -q -a -f volume={} | xargs -r docker rm -f</pre><pre>$ sudo apt-get purge -y nvidia-docker<br><br># Add the package repositories<br>$ curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \<br>  sudo apt-key add -<br>distribution=$(. /etc/os-release;echo $ID$VERSION_ID)<br>curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | \<br>  sudo tee /etc/apt/sources.list.d/nvidia-docker.list</pre><pre>$ sudo apt-get update<br><br># Install nvidia-docker2 and reload the Docker daemon configuration<br>$ sudo apt-get install -y nvidia-docker2<br>$ sudo pkill -SIGHUP dockerd<br><br># Test nvidia-smi with the latest official CUDA image<br>docker run --runtime=nvidia --rm nvidia/cuda:9.0-base nvidia-smi</pre><h4>Following are the steps for installing DIGITS</h4><pre>$ cd /root<br><br>$ git clone <a href="https://github.com/kansk/digits.git">https://github.com/kansk/digits.git</a><br><br>$ cd /root/digits</pre><pre># Building the gpu/digits-trainer:v1 image<br>$   sudo ./build_gpu_digits.sh</pre><pre># Running and testing the Digits and CUDA Docker based container<br>$ sudo nvidia-docker run — name digits -v /tmp/data:/data -v /tmp/s3-endpoint:/s3-endpoint — rm -dti -p 5000:5000 gpu/digits-trainer:v1<br></pre><h3>NVIDIA Container Runtime for Docker</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*tgu7ZI5jgmZs6oDiwk3F7g.png" /></figure><h3>Using the Webapp</h3><p>Open up a web browser and navigate to the home screen of DIGITS. The server should be at either http://localhost/ (if installed from Deb packages), or <a href="http://localhost:5000/">http://localhost:5000/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*43OvELgeyjZDztH3ZK2NqA.png" /></figure><h3>Logging in</h3><p>Click on Datasets &gt; New Dataset &gt; Images &gt; Classification. This will lead you to the login page:</p><blockquote><em>NOTE: there is no authentication — you don’t even need a password. This is a utility feature, not a security feature.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_H40cvqC7i8NCIIU_iaPBQ.png" /></figure><h3>Creating a Dataset</h3><p>After logging in, you will be brought to the “New Image Classification Dataset” page.</p><ul><li>Type in the path to the Flower training images</li><li>You can also add the folder of Flower test images as a “Separate validation images folder”, if you like. Don’t use the “test images” fields — test images are not used for anything in DIGITS yet.</li><li>Change the Image Type to color</li><li>Change the Image size to 256 x 256</li><li>Give the dataset a name</li><li>Click on the Create button</li></ul><p>Please find the below dataset screen shot</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HrPM1Q4rqfq-Lj9IK9D5nA.png" /></figure><p>Please find the below Trained DB screen shot</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yarZ1CuxWdR5xMKZHxlTMg.png" /></figure><p>Please find the below data model screen shot</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*T0-BAuda6pDxbMA-i6JXQA.png" /></figure><p>While training the model, you should see the expected completion time on the right side</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Us8TjDtgdkBa3DL3dfg6Fw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g7vuwWfPGm_5RQG5eZj9MA.png" /></figure><p>To test the model, scroll to the bottom of the page.</p><ul><li>Click on the Upload image button and choose a file</li><li>There are plenty to choose from in /home/flower_photos/</li><li>Or, find an image on the web and paste the URL into the Image URL field</li><li>Check the Show visualizations and statistics box</li><li>Click on Classify One</li></ul><p>At the top of the page, DIGITS displays the top 3 classifications and corresponding confidence values. DIGITS also provides visualizations and statistics about the weights and activation&#39;s of each layer in your network</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GqjUNGMSYYYnTSJdjHH8zw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fab928e45ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open Air Interface(OAI) for 4G/5G using Docker Platform]]></title>
            <link>https://medium.com/@vkskans81/open-air-interface-oai-for-4g-5g-using-docker-platform-c1adb4e2cbb0?source=rss-99e579568298------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1adb4e2cbb0</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[oai]]></category>
            <category><![CDATA[5g-wireless]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[docker-compose]]></category>
            <dc:creator><![CDATA[Kannan K]]></dc:creator>
            <pubDate>Wed, 06 Feb 2019 10:42:59 GMT</pubDate>
            <atom:updated>2019-02-08T09:49:55.658Z</atom:updated>
            <content:encoded><![CDATA[<h3>Open Air Interface(OAI) for 4G/5G Implementation using Docker Platform</h3><h3>Introduction</h3><p>The current generation of hardware/software for radio access network (RAN) consist of large numbers of proprietary elements that stifle innovation and increase the cost for the operators to deploy new services/application in an ever-changing fast paced cellular networks. Open source software running on general purpose processors (such as x86, ARM) can greatly simplify network access, reduce cost, increase flexibility, improve innovation speed and accelerate time-to-market for introduction of new services.There is already a movement going on within the industry on the development of Software Defined Networking (SDN) concepts to open the proprietary interfaces to control the RAN hardware/software. At the same time, open-source has made a very significant impact in the extremities of current networks, namely in the terminals due to the Android ecosystem and in cloud infrastructure due, in part, to the OpenStack ecosystem. We believe an open source implementation of fully real-time stack (eNB, UE and core network) on general purpose processors when combined with SDN, Network Function Virtualization (NFV) and OpenStack and bring significant efficiency in RAN design from both innovation and cost perspective.</p><p>4G (LTE) Wireless Network architecture is comprised of the following three main components:</p><ul><li>UE (User Equipment) / Mobile</li><li>E-UTRAN ( e-NodeB)</li><li>EPC ( Evolved Packet Core)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*_8eaG5ViVc99Fip0qKra3Q.png" /><figcaption>Wireless Network Architecture Diagram</figcaption></figure><ul><li>eNB: An eNB provides users with the radio interfaces. eNB main function is to provide Radio Resource Management functions such as dynamic resource allocations, eNB provision, eNB measurement configuration, radio admission control, connection mobility and radio bearer control and intercell interference coordination</li><li>EPC- has 3 components, MME, SPGW, HSS</li><li>MME — An MME is the main control entity for LTE U-TRAN. It communicates with HSS for User Authentication, Mobility management, signalling and bearer management</li><li>SP-GW has two components</li><li>S-GW terminates the interfaces towards an E-UTRAN. It serves as the local mobility anchor point of data connections for inter-eNB handover and inter-3GPP handover</li><li>P-GW provides a UE with access to a PDN by assiging an IP address from the address space of the PDN. The P-GW serves as the mobility anchor point for handover between 3GPP and non3GPP</li><li>HSS is the central database where user profiles are stored. It provides user authentication information and user profiles to the MME</li></ul><h3>Host Server Environment</h3><ul><li>Verify kernel version “Linux 4.15.0–36-generic #39~16.04.1 Version”</li><li>Plug in the Radio device (used B200)</li><li>Nokia, One Plus 5 mobile phones used for testing.</li></ul><h4>Execute the below command and load the gtp</h4><pre>$ sudo modprobe gtp</pre><p><strong>Note</strong>: While executing the eNB/EPC if there is a issue like gtp not found. please follow the below mentioned steps. This happens only in Version of Ubuntu server 16.04, upto kernel version 14.10. The lowlatency kernel can be found by searching the kernel module gtp.ko that is required to execute the gateway module. Follow the steps below to upgrade the kernel.</p><pre>$ apt-get install linux-image-4.15.0-15-lowlatency</pre><p>Beware if that particular kernel is no longer the primary boot image in grub.conf after an apt upgrade or manually pick the kernel on startup or change grub.conf to boot that particular image - example vi /etc/default/grub</p><p>Replace GRUB_DEFAULT as GRUB_DEFAULT=&quot;Advanced options for Ubuntu&gt;Ubuntu, with Linux 4.15.0-15-lowlatency&quot; to add command Restart the machine and boot into the Linux 4.15.0-15-lowlatency</p><p>In the Host Machine where the Lowlatency kernel is being executed. Check for gtp installation, follow these commands in the terminal.</p><pre>$ find /lib/modules/`uname -r` -name gtp.ko</pre><p>Output below shows that gtp.ko module is present: $ /lib/modules/4.8.0-30-generic/kernel/drivers/net/gtp.ko Load module gtp from kernel issuing command:</p><pre>$ sudo modprobe gtp</pre><p>if the above is successful, type in the below command and check for gtp and udp_tunnel displayed as below</p><pre>$ lsmod | grep gtp                 #&lt; Lists more information about gtp and related udp tunnel can be obtained:&gt;</pre><ul><li>gtp 28672 0</li><li>udp_tunnel 16384 1 gtp</li></ul><h3>Docker setup Automated Scripts Installation</h3><p>eNB and EPC entities can be a single container, however the logical scalable architecture perspective, it is better to be single EPC and many eNB containers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eW0LrJAP7bxf33lYoE1Gfw.png" /><figcaption>Docker-Compose Setup diagram</figcaption></figure><h4>Installation of Docker CE</h4><p>Step 1 : Install using the convenience script</p><pre>$ curl -fsSL https://get.docker.com -o get-docker.sh<br>$ sudo sh get-docker.sh</pre><p>Step 2: If you would like to use Docker as a non-root user, Create / Add your user id to the “docker” group by following the below commands:</p><pre>$ sudo usermod -aG docker your-user<br>$ docker --version<br>Docker version 18.09.0, build 4d60db4</pre><h4>Installation of Docker compose on Linux systems</h4><p>Step 1: Run this command to download the latest version of Docker Compose:</p><pre>$ sudo curl -L &quot;https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)&quot; -o /usr/local/bin/docker-compose</pre><p>Step 2: Apply executable permissions to the binary:</p><pre>$ sudo chmod +x /usr/local/bin/docker-compose<br>$ docker-compose --version<br>docker-compose version 1.23.1, build b02f1306</pre><h4>Following are the steps for installing Openairinterface5g (EPC &amp; eNB)</h4><pre>$ cd /root<br><br>$ git clone <a href="https://github.com/kansk/OAI.git">https://github.com/kansk/OAI.git</a><br><br>$ cd /root/OAI/oai<br><br>$ ./launch.sh</pre><p>After few minutes, Rx/Tx Lights in the B200 should glow.</p><p>During the installation if there is any issue as mention below, please follow the below commands</p><pre>enb    | got sync (eNB_thread_single)<br>enb    | [ERROR] [STREAMER] recv packet demuxer unexpected sid 0xffcc0081<br>enb    | D[PHY][E][recv] received 0 samples out of 15360<br>enb    | [PHY][E]ERROR_CODE_OVERFLOW (Out of sequence error)<br>enb    |<br>enb    | [PHY][E]rx_rf: Asked for 15360 samples, got 0 from USRP<br>enb    | /home/openairinterface5g/targets/RT/USER/lte-softmodem.c exit_fun() Exiting OAI softmodem: problem receiving samples</pre><pre>$ Ctrl + C</pre><pre>$ docker-compose rm</pre><pre>$ docker-compose up</pre><p>After few minutes, Rx/Tx Lights in the B200 should glow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*YGz42QV22fNLDs1HXTSEGw.png" /><figcaption>USRP 200</figcaption></figure><p><strong>Note</strong>:</p><p>If any changes are done to the IP address, Below mentioned configuration files needs to be updated(eNB, EPC). Follow the below procedure</p><p>/tmp/oai/conf/mme.conf</p><p>/tmp/oai/conf/spgw.conf</p><p>/tmp/oai/conf/enb.10MHz.b200</p><p>/openairinterface5g/oai/ vi docker-compose.yml ( line 20 : ipv4_address and line 37 : ipv4_address )</p><p>Verify the containers for OAI software components EPC &amp; eNB services are up and running.</p><p><strong>OAI SIM and SIM Reader/Writer</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*pSK_COhjusInXE3EXoKtyw.png" /><figcaption>OAI SIM</figcaption></figure><p>Smartphone: Nokia 6</p><p>You have to create a new APN profile in your smartphone according the one that</p><p>you will assign to the UE in the HSS database. So you have to go</p><p>Settings-&gt;Mobile network settings-&gt;Access Point Names-&gt; Add a new apn.</p><p>Give a name to this apn profile (e.g. eur). At the APN field write</p><p>the name that exists on the HSS database (e.g. ltebox). At the Bearer field check the option LTE.</p><p>Save the apn profile and then select it</p><p><strong>Known Issue (UE cannot browse Internet even though it is connected)</strong></p><p>Sometimes, the UE can not browse the internet if the MTU of its LTE interface is higher than 1428.</p><p>OAI EPC is transmitting a message at some point indicating the mtu size the UE should use for this interface, but some UEs ignore it and use 1500 mtu (that does not work).</p><p>From my tests:</p><p>Android 4.4.4 : mtu 1500, needs root. Android 5.0.1: mtu 1500, needs root. Android 6.0 : mtu 1428</p><p><strong>TESTED</strong>: Root the phone and manually change the MTU on the phone to 1428 using if config or any other utility once the phone is connected. This will work on Nokia 6 and One plus 5 phones.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1adb4e2cbb0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>