<?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 Behiç Erdem on Medium]]></title>
        <description><![CDATA[Stories by Behiç Erdem on Medium]]></description>
        <link>https://medium.com/@behic.erdem?source=rss-ff00d1fdd8c9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UCs1sC9gOh_wimS3iVqFNA.jpeg</url>
            <title>Stories by Behiç Erdem on Medium</title>
            <link>https://medium.com/@behic.erdem?source=rss-ff00d1fdd8c9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 00:05:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@behic.erdem/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[Yeni MCP: Yapay Zekaya Nihayet Söz Dinletme Sanatı]]></title>
            <link>https://medium.com/@behic.erdem/yeni-mcp-yapay-zekaya-nihayet-s%C3%B6z-dinletme-sanat%C4%B1-fc05a3749a4d?source=rss-ff00d1fdd8c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc05a3749a4d</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[mcp-protocol]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Behiç Erdem]]></dc:creator>
            <pubDate>Mon, 03 Aug 2026 16:22:08 GMT</pubDate>
            <atom:updated>2026-08-03T16:22:08.269Z</atom:updated>
            <content:encoded><![CDATA[<p>AI lar hayatımıza girdikten sonra çok yüzeysel anlamda API lerin moderniteye uyumlanmış hali olan <a href="https://modelcontextprotocol.io/">MCP</a> lerle tanıştık. MCP dünyasında uzun süredir beklenen büyük revizyon nihayet 28 Temmuz 2026&#39;da resmen yayınlandı. Toplulukta “MCP2” ya da “MCP v2” olarak anılan bu güncelleme, aslında iki farklı şeyi aynı anda ifade ediyor ve baştan bu ayrımı netleştirmek işe yarıyor:</p><p>Protokol spesifikasyonu: MCP, sürümlerini “v1”, “v2” gibi değil, “YYYY-MM-DD” formatında tarihliyor. Yeni sürümün resmi adı “2026–07–28”, bir önceki “2025–11–25” revizyonunun yerini alıyor.<br>SDK’lar Python ve TypeScript SDK’ları bu revizyonla birlikte gerçekten majör versiyon atladı: mcp paketi v2&#39;ye, “@modelcontextprotocol/sdk” da yeni, bölünmüş paketlere geçti. Go ve C# SDK’larında ise böyle bir “v2” markası yok; aynı paket üzerinden yeni protokolü konuşabiliyorlar.</p><p>Yani “MCP2 geldi” demek pratikte doğru — sadece bunun bir spesifikasyon güncellemesi mi yoksa SDK majör sürümü mü olduğunu ayırt etmek, migration planlarken işe yarayacak.</p><h3>Baş Değişiklik: Protokol Artık Stateless</h3><p>v1&#39;de MCP, TCP bağlantısına benzer bir yaşam döngüsüne sahipti: istemci önce “initialize” çağrısı yapar, sunucu yetkinliklerini döner, ardından istemci “initialized” bildirimini gönderir ve bu noktadan sonra bağlantı bir “Mcp-Session-Id” başlığıyla izlenirdi. Bu model, sunucu tarafında sticky session yönetimi, paylaşımlı state store’lar ve session affinity olan yük dengeleyiciler gerektiriyordu — özellikle multi-tenant ortamlarda ciddi bir operasyonel yük. Amelelik işi yaptırıyordu kısacası.</p><p>Yeni güncelleme bu modeli tamamen kaldırıyor. Session ı başlattım başlatmadım el sıkışması ve “Mcp-Session-Id” başlığı protokolden çıktı. Bunun yerine her istek kendi kimliğini, protokol versiyonunu ve istemci yetkinliklerini `_meta` alanında taşıyarak “kendi kendini tanımlıyor”:</p><pre>POST /mcp HTTP/1.1<br>MCP-Protocol-Version: 2026-07-28<br>Mcp-Method: tools/call<br>Mcp-Name: search<br><br>{&quot;jsonrpc&quot;:&quot;2.0&quot;,&quot;id&quot;:1,&quot;method&quot;:&quot;tools/call&quot;,<br> &quot;params&quot;:{&quot;name&quot;:&quot;search&quot;,&quot;arguments&quot;:{&quot;q&quot;:&quot;otter&quot;},<br> &quot;_meta&quot;:{&quot;io.modelcontextprotocol/clientInfo&quot;:{&quot;name&quot;:&quot;my-app&quot;,&quot;version&quot;:&quot;1.0&quot;}}}}</pre><p>Bir istemci, sunucunun yetkinliklerini önceden öğrenmek isterse yeni server/discover RPC&#39;sini kullanabilir. Burada mimari açıdan kritik bir sözleşme detayı var: <strong>Sunucular bu endpoint&#39;i implemente etmek zorundadır (MUST)</strong>, ancak istemcilerin istek öncesi bu çağrıyı yapması <strong>opsiyoneldir (MAY) </strong>— istek, discover beklenmeden doğrudan gönderilebilir.</p><p>Sonuç: <strong>herhangi bir istek, herhangi bir sunucu örneğine düşebilir</strong>, paylaşımlı state gerekmeden. Düz round-robin bir yük dengeleyici artık yeterli. Eğer sunucu tarafında çağrılar arası state taşımanız gerekiyorsa (örneğin bir arama oturumunun sayfa numarası), bunu bir tool’dan açıkça bir “handle” üreterek yapmanız öneriliyor — modelin bu handle’ı görüp bir sonraki çağrıya argüman olarak geri geçirmesi bekleniyor. Yani state tamamen kalkmıyor, sadece transport katmanından uygulama katmanına, modelin görebileceği şekilde taşınıyor.</p><p>Tek bir MCP çalıştırılan ortamlarda çok da efektif bir geliştirme değil ancak, self hosted gateway/proxy işlemleri için doğrudan sizi ilgilendiriyor.Sticky session, paylaşımlı Redis tabanlı session store, pod-affinity gibi çözümler hedefleyen sunucular için artık gerekli değil; basit round-robin dağıtım yeterli oluyor. Statik, ölçeklenebilir bir pod mimarisi kuruyorsanız bu tam size göre bir kolaylaştırma.</p><h3>Sunucudan İstemciye İstekler: Multi Round-Trip Requests (MRTR)</h3><p>v1&#39;de “elicitation/create” (kullanıcıdan ek bilgi isteme), “sampling/createMessage” (sunucunun modelden tamamlama istemesi) ve “roots/list” gibi özellikler, sunucunun istemciye “geri” istek atabilmesi için açık kalan çift yönlü bir stream gerektiriyordu. Stateless bir protokolde bu artık mümkün değil.</p><p>Yerine gelen <strong>Multi Round-Trip Requests (MRTR)</strong> deseni şöyle çalışıyor: bir tool çağrısı sırasında sunucu ek bilgiye ihtiyaç duyarsa, normal bir sonuç yerine “resultType: “input_required” ” içeren bir yanıt döner ve hangi bilgilere ihtiyacı olduğunu listeler. İstemci bu bilgiyi (örneğin kullanıcı onayı-HITL) topladıktan sonra <strong>aynı çağrıyı</strong>, “inputResponses” alanında cevaplarla birlikte tekrar gönderir.</p><p>Basitleştirilmiş akış:</p><pre>// 1) İstemci tool&#39;u çağırır<br>{&quot;method&quot;: &quot;tools/call&quot;, &quot;params&quot;: {&quot;name&quot;: &quot;delete_records&quot;, &quot;arguments&quot;: {&quot;table&quot;: &quot;users&quot;}}}<br><br>// 2) Sunucu onay istiyor, açık stream tutmadan döner<br>{&quot;result&quot;: {<br>  &quot;resultType&quot;: &quot;input_required&quot;,<br>  &quot;inputRequests&quot;: [{&quot;id&quot;: &quot;confirm-1&quot;, &quot;prompt&quot;: &quot;42 kayıt silinecek, onaylıyor musunuz?&quot;}]<br>}}<br><br>// 3) İstemci aynı çağrıyı, kullanıcının cevabıyla tekrar yollar<br>{&quot;method&quot;: &quot;tools/call&quot;, &quot;params&quot;: {<br>  &quot;name&quot;: &quot;delete_records&quot;, &quot;arguments&quot;: {&quot;table&quot;: &quot;users&quot;},<br>  &quot;inputResponses&quot;: {&quot;confirm-1&quot;: {&quot;approved&quot;: true}}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xsfsIAvZLjw8h_zUfAQsHg.jpeg" /><figcaption>MCP v1 ve v2 MRTR mimarisi karşılaştırması</figcaption></figure><p>Bunun güzel yanı: artık maliyetli bir işlem öncesi onay isteyen ya da eksik bir parametreyi kullanıcıya soran tool’lar, sunucu tamamen stateless kalsa bile çalışabiliyor. Supabase MCP gibi projeler, tam da bu yüzden daha önce pratik bulmadıkları elicitation desteğini bu sayede ekleyebildiklerini belirtiyor.</p><h3>Header Tabanlı Routing</h3><p>“Mcp-Method” ve “Mcp-Name” başlıkları artık Streamable HTTP isteklerinde zorunlu. “Mcp-Method” her istekte, “Mcp-Name” ise bir tool/resource/prompt adlandıran isteklerde bulunuyor (yukarıdaki örnekte “tools/call” ve “search”).</p><p>Bunun anlamı: bir gateway, rate limiter ya da WAF, hangi metodun ve hangi tool’un çağrıldığını öğrenmek için artık JSON gövdesini parse etmek zorunda değil — HTTP başlığına bakması yeterli. Tool bazlı rate limiting, tool bazlı yetkilendirme ya da metrik toplama gibi işler önemli ölçüde ucuzluyor ve basitleşiyor. Tokendan da yüksek oranda tasarruf etmenizi sağlayabilecek bir özellik.</p><h3>Liste Sonuçları Artık Cache’lenebilir</h3><p>“tools/list”, “prompts/list”, “resources/list” ve “resources/read” yanıtları artık “ttlMs” (ne kadar süre geçerli) ve “cacheScope” (kimin cache’leyebileceği) bilgisi taşıyor. Deterministik sıralamayla birlikte, istemciler tool kataloğunu güvenle cache’leyip yeniden bağlanmalarda upstream prompt cache’lerini bozmadan aynı sırayı koruyabiliyor. Büyük tool setleriyle çalışan agent’larda bu, her turn’de gereksiz “tools/list” çağrısını ortadan kaldırıyor.</p><h3>Resmi Uzantı Çerçevesi</h3><p>v1&#39;de “extension” kavramı informal bir pratikti. “2026–07–28” ile birlikte extensions resmen protokolün bir parçası ve üç önemli extension bu çerçevede standardize ediliyor:</p><ul><li><strong>Tasks</strong>: Uzun süren, arka planda çalışan işler için. Artık deneysel çekirdekten çıkıp <em>“io.modelcontextprotocol/tasks”</em> extension’ına taşındı. Poll tabanlı <em>“tasks/get”</em> ve yeni <em>“tasks/update” </em>metotlarıyla çalışıyor; değişiklik bildirimleri ise eski HTTP GET endpoint’i yerine istemcinin bildirim tipi bazında abone olduğu tek bir “subscriptions/listen” stream’i üzerinden geliyor.</li><li><strong>MCP Apps:</strong> İstemci içinde çalışan etkileşimli arayüzler.</li><li><strong>Enterprise Managed Authorization (EMA)</strong>: Kurumsal kimlik ve yetkilendirme yönetimi.</li></ul><p>Uzun süren bir işlemi (örneğin büyük bir veri işleme tool’u) modele senkron olarak bekletmek yerine Tasks extension’ıyla arka plana almak, agent’ların zaman aşımına takılmadan bu tür işleri yönetebilmesini sağlıyor.</p><h3>Yetkilendirme Sertleştirmeleri</h3><p>Geliştirici ekibi, geçtiğimiz yıl geliştiricilerin en çok zaman harcadığı alanın yetkilendirme entegrasyonu olduğunu belirtiyor; bu yüzden “2026–07–28”’de birkaç önemli sertleştirme var:</p><ul><li><strong>iss</strong> doğrulama (RFC 9207)— Yetkilendirme sunucuları artık “<em>iss</em>” parametresini dönmeli, istemciler de kodu kullanmadan önce bunu doğrulamalı. Bu, authorization-server karışıklığı (mix-up) açığını kapatıyor.</li><li><strong>“application_type” </strong>zorunluluğu İstemciler Dynamic Client Registration sırasında “application_type” belirtmeli; böylece masaüstü/CLI uygulamalarının “localhost” redirect’leri “web” tipi sanılıp reddedilmiyor. Daha önce CLI istemcilerinde görülen gizemli “redirect_uri” hatalarının büyük kısmı buradan kaynaklanıyordu.</li><li><strong>Credential binding</strong> İstemci kimlik bilgileri, onları veren yetkilendirme sunucusuna bağlanıyor; farklı bir authorization server’da tekrar kullanılamıyor.</li><li><strong>DCR’ın emekliye ayrılması</strong> Dynamic Client Registration artık resmen deprecated, yerini Client ID Metadata Documents (CIMD) alıyor. DCR geriye dönük uyumluluk için çalışmaya devam ediyor ama gelecekteki bir spec sürümünde <strong>kaldırılacak</strong>.(RIP)</li></ul><h3>Resmi Deprecation Politikası ve Kaldırılanlar</h3><p>Artık spesifikasyonun <strong>12 aylık minimum</strong> bir deprecation penceresi var, bir özellik deprecated olarak işaretlendiğinde, en az bir yıl boyunca çalışmaya devam etmesi garanti ediliyor. Bu, upgrade planlarını “her an kırılabilir” endişesinden çıkarıp öngörülebilir hale getiriyor.</p><p>Bu revizyonda deprecated olan özellikler:</p><ul><li><strong>Roots, Sampling, Logging:</strong> Hâlâ çalışıyorlar ve en az 12 ay çalışmaya devam edecekler, ama yeni implementasyonların bunları tercih etmemesi öneriliyor (yerlerini büyük ölçüde MRTR alıyor).</li><li><strong>Eski HTTP+SSE transport</strong> Resmen deprecated, bir yıllık bir geçiş süreciyle.</li><li><strong>Custom hata kodları</strong> Örneğin eksik bir kaynak artık MCP’ye özgü <em>-32002</em> yerine standart <em>JSON-RPC -32602</em> kodunu dönüyor. İstemci tarafında hata kodunu literal olarak kontrol ediyorsanız bu satırı güncellemeniz gerekiyor.</li></ul><h3>SDK Tarafında Ne Değişti?</h3><h4><strong>Python MCP v2</strong></h4><p>FastMCP sınıfı MCPServer oluyor, ama decorator tabanlı API aynı kalıyor:</p><pre>from mcp.server import MCPServer<br><br>mcp = MCPServer(&quot;Demo&quot;)<br><br>@mcp.tool()<br>def add(a: int, b: int) -&gt; int:<br>    &quot;&quot;&quot;İki sayıyı topla.&quot;&quot;&quot;<br>    return a + b<br><br>@mcp.resource(&quot;greeting://{name}&quot;)<br>def greeting(name: str) -&gt; str:<br>    &quot;&quot;&quot;Bir kişiye selam ver.&quot;&quot;&quot;<br>    return f&quot;Merhaba, {name}!&quot;</pre><p>Beta’yı sabit versiyonla kurmak gerekiyor (pin etmezseniz v1&#39;de kalırsınız):</p><pre>uv add &quot;mcp[cli]==2.0.0b1</pre><p>v2 sunucusu hem yeni server/discover metodunu hem de eski initialize el sıkışmasını yanıtlıyor — yani 2025–11–25 konuşan eski istemciler bağlanmaya devam edebiliyor. In-process test için MCPServer nesnesini doğrudan Client’a verip subprocess/port açmadan test etmek mümkün. Ama 1 sene sonra bu da kalkabilir.</p><h4>TypeScript: Bölünmüş Paketler</h4><p>Tekil @modelcontextprotocol/sdk paketi tarihe karışıyor; yerine sunucu için @modelcontextprotocol/server, istemci için @modelcontextprotocol/client, artı Node.js/Express/Hono/Fastify için ince adaptörler geliyor. Paket artık yalnızca ESM ve Node.js 20+ / Bun / Deno üzerinde çalışıyor. Şema tarafında Zod’a kilitli kalmak yerine Standard Schema desteği geldi — Zod v4, Valibot, ArkType gibi uyumlu kütüphanelerden istediğinizi kullanabiliyorsunuz:</p><pre>import { McpServer } from &quot;@modelcontextprotocol/server&quot;;<br>import { StdioServerTransport } from &quot;@modelcontextprotocol/server/stdio&quot;;<br>import * as z from &quot;zod/v4&quot;;<br><br>const server = new McpServer({ name: &quot;greeting-server&quot;, version: &quot;1.0.0&quot; });<br><br>server.registerTool(<br>  &quot;greet&quot;,<br>  {<br>    description: &quot;Bir kişiye ismiyle selam ver&quot;,<br>    inputSchema: z.object({ name: z.string() }),<br>  },<br>  async ({ name }) =&gt; ({<br>    content: [{ type: &quot;text&quot;, text: Merhaba, ${name}! }],<br>  }),<br>);<br><br>const transport = new StdioServerTransport();<br>await server.connect(transport);</pre><p>HTTP dağıtımında (statelessliğin asıl karşılığını aldığı yer) @modelcontextprotocol/server daki createMcpHandler giriş noktası — tek bir endpoint hem 2026–07–28 hem 2025–11–25 trafiğini yanıtlıyor. v1&#39;den geçiş için resmi bir codemod da mevcut:</p><pre>npx @modelcontextprotocol/codemod@beta v1-to-v2 .</pre><h4>Go SDK</h4><p>Go tarafında paket bölünmesi ya da API rework’ü yok — aynı modül üzerinden yeni protokolü konuşuyorsunuz. v1.7.0-pre.1 ile 2026–07–28 desteği geldi:</p><pre>go get github.com/modelcontextprotocol/go-sdk@v1.7.0-pre.1</pre><blockquote>Yeni revizyonu HTTP üzerinden sunmak bilinçli bir tercih — StreamableHTTPOptions.Stateless = true set etmediğiniz sürece istemciler 2025–11–25&#39;e düşüyor:</blockquote><pre>opts := &amp;mcp.StreamableHTTPOptions{<br>    Stateless: true, // 2026-07-28 stateless çekirdeği aktif eder<br>}<br>handler := mcp.NewStreamableHTTPHandler(server, opts)</pre><p>Bir gateway/proxy yazıyorsanız bu tek satır, arkasındaki pod’ların artık session-affinity gerektirmeden, düz round-robin arkasında ölçeklenebileceği anlamına geliyor.</p><h4>C#</h4><p>ModelContextProtocol paketinin 2.0.0-preview.1 sürümü olarak geliyor; v1.x API’leri çalışmaya devam ediyor, kırılan kısımlar sadece deprecated olan roots/sampling/logging ([Obsolete] işaretli) ile sözleşmesi değişen deneysel API’lerle sınırlı.</p><pre>dotnet add package ModelContextProtocol --prerelease</pre><h3>Geçiş Yaparken Dikkat Edilmesi Gerekenler</h3><ul><li>Hiçbir şey haşırt diye aniden kırılmıyor. 28 Temmuz, normatif spec metninin yayınlandığı tarih; mevcut istemci/sunucularınız için bir “switch-off” değil. Eski protokolü konuşan sunucular çalışmaya devam ediyor, yeni istemciler eski sunuculara düştüğünde otomatik olarak initialize el sıkışmasına geri dönüyor.</li><li>SDK majör versiyon geçişi ayrı bir karar. Python mcp v2&#39;ye ya da TypeScript’in yeni paketlerine geçmek, 2026–07–28 protokolünü konuşmaya başlamaktan bağımsız bir adım — ikisini aynı anda yapmak zorunda değilsiniz.</li><li>Kütüphane yazıyorsanız üst sınır koyun. Örneğin mcp&gt;=1.27,&lt;2 gibi bir pin, kullanıcılarınızın stable v2 çıktığında sürpriz yaşamasını engelliyor.</li><li>Beta sürümlerde tam pin kullanın. Public API’ler beta ile stable arası hâlâ değişebiliyor.</li><li>Gateway/proxy’nizi test edin. Stateless yolu deneyip mevcut routing mantığınızın hâlâ ihtiyaç duyduğu bir şey olup olmadığını kontrol etmek, dört SDK’nın da önerdiği ilk adım.</li></ul><p>Genel bir karşılaştırma yapacaksak</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KQPQSPaIkoMxXY48bSpzkg.jpeg" /></figure><p>Özetle: 2026–07–28, MCP’yi “çift yönlü, durum tutan bir protokolden” “durumsuz, önbelleklenebilir, header’larla yönlenebilir bir HTTP iş yüküne” dönüştürüyor. Bu, tek başına Kubernetes üzerinde MCP sunucuları/gateway’leri işletenler için mimariyi doğrudan basitleştiren bir değişiklik — sticky session, paylaşımlı state store ve pod-affinity gibi karmaşıklıkların büyük kısmı artık gerekli değil. Daha kısa bir özetle AI agentlarını otomasyonda kullanan projeler sistemler için ve gateway e sahip yönlendirmeli çoklu MCP havuzları olan projeler için çok güzel gelişmeler eklenmiş.</p><p><a href="https://blog.modelcontextprotocol.io/posts/2026-07-28/">MCP 2026–07–28 Spesifikasyon Duyurusu</a><br><a href="https://blog.modelcontextprotocol.io/posts/2026-07-28-release-candidate/">Release Candidate Duyurusu</a><br><a href="https://blog.modelcontextprotocol.io/posts/sdk-betas-2026-07-28/">Beta SDK Duyurusu</a><br><a href="https://modelcontextprotocol.io/specification/2026-07-28/changelog">Resmi Değişiklik Listesi (Changelog</a>)<br><a href="https://modelcontextprotocol.io/docs/2026-07-28/getting-started/intro">Getting Started Dokümantasyonu</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc05a3749a4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[uv: Python’un Hız Çağı — pip’i Geride Bırakan Araç]]></title>
            <link>https://medium.com/@behic.erdem/uv-pythonun-h%C4%B1z-%C3%A7a%C4%9F%C4%B1-pip-i-geride-b%C4%B1rakan-ara%C3%A7-d5a46d9cf6a8?source=rss-ff00d1fdd8c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5a46d9cf6a8</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[package-management]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[uv]]></category>
            <dc:creator><![CDATA[Behiç Erdem]]></dc:creator>
            <pubDate>Mon, 11 May 2026 20:55:19 GMT</pubDate>
            <atom:updated>2026-05-11T20:55:19.056Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L0vrCIQV7rLPRsYrWGhIBA.png" /></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/acbda2cb8c11655ab09e82f47ea9ebed/href">https://medium.com/media/acbda2cb8c11655ab09e82f47ea9ebed/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5a46d9cf6a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5G in 5 Steps — Free5GC Setup with ArgoCD: Step-by-Step Guide]]></title>
            <link>https://medium.com/@behic.erdem/5g-in-5-steps-free5gc-setup-with-argocd-step-by-step-guide-c16475ac3b81?source=rss-ff00d1fdd8c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c16475ac3b81</guid>
            <category><![CDATA[5g-network]]></category>
            <category><![CDATA[5g-technology]]></category>
            <category><![CDATA[5g-wireless]]></category>
            <category><![CDATA[5g]]></category>
            <dc:creator><![CDATA[Behiç Erdem]]></dc:creator>
            <pubDate>Sun, 09 Feb 2025 18:41:43 GMT</pubDate>
            <atom:updated>2025-02-09T18:41:43.517Z</atom:updated>
            <content:encoded><![CDATA[<h3>5G in 5 Steps — Free5GC Setup with ArgoCD: Step-by-Step Guide</h3><p>Hello everyone, in this article I will explain the installation of the open source <a href="https://free5gc.org/">Free5GCore</a> component on <a href="https://argo-cd.readthedocs.io/en/stable/">ArgoCD</a>, one of the most famous CI/CD tools. Enjoy your reading.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>In the repo address below, there is a script that does the entire installation without the need to do it manually. If you go to the GitHub repo and just run the script, all of the following steps will be completed.</p><h4>ArgoCD Installation</h4><p>ArgoCD is a Continuous Delivery (CD) tool for Kubernetes, an open source application that enables Kubernetes applications to be automatically deployed according to their state as defined in a version control system (such as Git). It takes a GitOps approach and facilitates the management and synchronization of Kubernetes resources.</p><p>The setup is much simpler than necessary. So simple that we don’t need to explain it in a second article.</p><p>First of all, we create a suitable namespace and complete the direct installation.</p><pre>kubectl create ns argocd<br>kubectl apply -k https://github.com/argoproj/argo-cd/manifests/crds\?ref\=stable</pre><p>Installation is finished.</p><p>Kustomize or install with different components is also available. I recommend you to review ArgoCD’s page for detailed information.</p><p>After the installation is finished, we need to decode the base64 encoded place in “argocd-initial-admin-secret” to get the credentials created by default by ArgoCD. We can list the secrets with the command below and decode the password with the following command.</p><pre>kubectl get secrets -n argocd<br>kubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath=&quot;{.data.password}&quot; | base64 --decode</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*RVgK-H6gwlXbnDev.png" /><figcaption>Default password credentials secret for argocd</figcaption></figure><p>Example decoded output:</p><pre>username: admin<br>password: P4ssw0rd!</pre><p>After getting an interesting string output, we log in after exporting the argocd service either from the CLI or from the browser with admin as our username. For login from CLI:</p><pre>argocd login localhost:12345 --username admin </pre><p>To log in from the interface, we enter the address where ArgoCD is installed by making NodePort or ingress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*NIiTsjya07H4hewL.png" /><figcaption>ArgoCD login webpage</figcaption></figure><h4>2. Free5GC-prep step</h4><p>In this step, services such as mirantis, gtp5g that must be pre-installed on our servers for Free5GC to work are automatically installed with ansible. In the table below, the version details of the recommended and used tools etc. of the environment to be installed are given.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*znifbYARhOR6dio_Qdj9BQ.png" /><figcaption>Recommended and Used tools versions table</figcaption></figure><p>If you have deployed your k8s-cluster with rancher, in order for the pvs and pvc to be installed to work properly in the local file system, we write the directory where we will bind our pv in the “extra_binds” section in the bottom line in the “kubelet”. If you are going to use the default settings, just edit it as follows.</p><pre>  kubelet:<br>    image: &quot;&quot;<br>    extra_args: {}<br>    extra_binds: []<br>    extra_env: []<br>    win_extra_args: {}<br>    win_extra_binds: []<br>    win_extra_env: []<br>    cluster_domain: cluster.local<br>    infra_container_image: &quot;&quot;<br>    cluster_dns_server: 10.43.0.10<br>    fail_swap_on: false<br>    generate_serving_certificate: false<br>    extra_binds:<br>    - &quot;/root/kubedata:/root/kubedata&quot;</pre><p>We then add the repo to ArgoCD where everything is prepared for you.</p><pre>argocd repo add https://github.com/erdembehic/free5gc-with-argocd.git<br><br>Repository &#39;https://github.com/erdembehic/free5gc-with-argocd.git&#39; added</pre><p>Then we create ArgoCD new app. While editing our app, we paste the edited file from github y saying “edit yaml”. We make the “targetRevision” part HEAD for now, but in the future, our repo will be organized according to the new versions of Free5GC. The current repo was made in accordance with version 3.3.3 of F5GC.</p><p>Our existing docker image runs ansible tasks with an inventory.ini file that I organized according to my own environment, so you need to remove your kubernetes job by defining your own inventory.ini file in a config-map. To make this definition, I recommend you to pull the “kubernetes/app/app.yaml” file in the repo to your own locale and throw it to your repo with your own variables and run it.</p><p>First of all, you need to define 1 “master0” in the inventory.ini section in the configmap definition. This host should be the machine where you run your kubectl commands where you control your k8s cluster. Because some ansible tasks have mirantis runtime installation that should only run on the master machine, if this command runs on worker machines that are not normal controlplane or etcd, the job will get an error.</p><pre>---<br>apiVersion: v1<br>kind: ConfigMap<br>metadata:<br>  name: custom-inventory<br>  namespace: default<br>data:<br>  inventory.ini: |<br>    [all]<br>    master0 ansible_host=192.168.1.10<br>    server2 ansible_host=192.168.1.11<br><br>---</pre><p>If you say, “No, I don’t want to deal with these, they will tire me out,” we go to our repo and run job.yaml and pv.yaml files one by one.</p><pre>git clone https://github.com/erdembehic/free5gc-with-argocd.git<br>cd free5gc-with-argocd/kubernetes<br>kubectl apply -f job/job.yaml<br>kubectl apply -f pv/pv.yaml</pre><p>If you don’t want to deal with this, we pull the repo again. Under the “playbooks” section, we edit whatever we want and pull the docker build and move on.<br>In a successful installation with ArgoCD, we will get a result like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gGZNnqckqSbh2Vd0jv63jg.png" /><figcaption>Prep step created before the microservices of the F5GC are installed</figcaption></figure><h4>3.Free5GC UPF — UserPlaneFunction Installation</h4><p>In this installation we will describe the installation of UPF, one of the core components of F5GC. UPF plays a critical role for the transmission of user data. UPF is the User Plane component responsible for routing and processing user traffic. We install this component externally.<br>The installation starts with pulling our repo as above. It contains all helm charts belonging to the F5GC 3.3.0 version in our repo.<br>If we do not have a helm, to cover this defect:</p><pre>curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3<br>chmod 700 get_helm.sh<br>./get_helm.sh</pre><p>We download and install the latest version of Helm3.<br>Then we can edit our ArgoCD app.yaml for ArgoCD installation steps either directly via cli or one by one from the gui. I am providing you the yaml format to reduce the suffocation of the article, you can paste it through the gui if you want.<br>One thing to note is that we will add a variable related to our local network. To find it:</p><pre>ip addr<br>1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000<br>    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br>    inet 127.0.0.1/8 scope host lo<br>       valid_lft forever preferred_lft forever<br>    inet6 ::1/128 scope host <br>       valid_lft forever preferred_lft forever<br>2: ens18: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc fq_codel state UP group default qlen 1000<br>    link/ether bc:24:11:f9:a8:d1 brd ff:ff:ff:ff:ff:ff<br>    altname enp0s18<br>    inet 192.168.141.31/23 brd 192.168.147.255 scope global ens18<br>       valid_lft forever preferred_lft forever<br>    inet6 fe80::be24:11ff:fef9:a8d1/64 scope link <br>       valid_lft forever preferred_lft forever</pre><p>In the file below we change our network interface “ens18” to whatever you have, the other IP parameters remain constant, the microservices of the F5GC work accordingly.</p><pre>project: default<br>source:<br>  repoURL: https://raw.githubusercontent.com/Orange-OpenSource/towards5gs-helm/main/repo/<br>  path: free5gc-upf<br>  targetRevision: HEAD<br>  helm:<br>    parameters:<br>      - name: global.n3network.masterIf<br>        value: ens18 #CHANGE_IT<br>      - name: global.n4network.masterIf<br>        value: ens18 #CHANGE_IT<br>      - name: global.n6network.masterIf<br>        value: ens18 #CHANGE_IT<br>      - name: global.n6network.subnetIP<br>        value: 10.100.60.0<br>      - name: global.n6network.gatewayIP<br>        value: 10.100.60.2<br>      - name: upf.n6if.ipAddress<br>        value: 10.100.60.112<br>destination:<br>  server: https://kubernetes.default.svc<br>  namespace: default<br>syncPolicy:<br>  automated:<br>    prune: true<br>    selfHeal: true</pre><p>We solve the problem by pasting this yaml into New App -&gt; (top right) EDIT AS YAML in ArgoCD GUI.<br>After that ArgoCD F5GC UPF is deploying in our cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*EskRhsfLjKfCjdX9BLsoIw.png" /><figcaption>F5GC UPF installed and running</figcaption></figure><p>We’re finally here to lift the F5GC itself.</p><h4>4.Free5GCore Installation</h4><p>In this step, we make use of our repository as in the steps above. In the same way, we extract our network interface as in the step above and define variables in our app.yaml file.</p><pre>project: default<br>source:<br>  repoURL: https://raw.githubusercontent.com/Orange-OpenSource/towards5gs-helm/main/repo/<br>  path: free5gc<br>  targetRevision: HEAD<br>  helm:<br>    parameters:<br>      - name: global.n2network.masterIf<br>        value: ens18<br>      - name: global.n3network.masterIf<br>        value: ens18<br>      - name: global.n4network.masterIf<br>        value: ens18<br>      - name: global.n6network.masterIf<br>        value: ens18<br>      - name: global.n9network.masterIf<br>        value: ens18<br>destination:<br>  server: https://kubernetes.default.svc<br>  namespace: default<br>syncPolicy:<br>  automated:<br>    prune: true<br>  syncOptions:<br>    - Replace=true</pre><p>Other than that, there is no need to make a description and we send it to the ArgoCD oven. Since the F5GC contains a lot of microservices, the open view from the ArgoCD did not fit in a single photo, but I grouped the microservices and added the final version below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Skkd0G4mLqoQrJYO2WIVg.png" /><figcaption>Up and Running F5GC</figcaption></figure><p>As you will see after the installation is finished, all microservices such as AMF, SMF etc. are installed one by one.<br>Each microservice has been successfully installed and now it’s time to test :D.</p><h4>Free5GC Demo and UERANSIM</h4><p>In the cluster where F5GC is installed, F5GC web-ui service comes with NodePort definition on port 30500.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*SKe2HbBAcUwKkvNKBMtVNQ.png" /><figcaption>Below line is the visualization of web-ui pod</figcaption></figure><p>As can be seen in the image, the “web-ui” service at the bottom comes with NodePort defined for F5GC. We will continue using this.<br>We log in to the specified location from the external IP (defined with NodePort) address of our cluster. The default username admin password is “free5gc”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SAT1ys_e1F2FoaRPmt2rmQ.png" /><figcaption>Free5GC web-ui</figcaption></figure><p>After logging in, we will create a new subscriber from the “subscribers” section. If you have custom details such as custom details slice SNNAI, enter them, if not, the system will assign them for us by default. And create your subscriber.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MMhLVrpnJ7KLhnz9viBq0Q.png" /><figcaption>Subscriber created byF5GC</figcaption></figure><p>Now its time to demo with UERANSIM.</p><h4>5.UERANSIM Installation</h4><p>The UERANSIM installation will be exactly the same as above. Fortunately, everything is ready for us in our repo. ArgoCD app definition is below, let’s change the network name according to ourselves and give it to the oven.</p><pre>project: default<br>source:<br>  repoURL: https://raw.githubusercontent.com/Orange-OpenSource/towards5gs-helm/main/repo/<br>  path: ueransim<br>  targetRevision: HEAD<br>  helm:<br>    parameters:<br>      - name: global.n2network.masterIf<br>        value: ens18<br>      - name: global.n3network.masterIf<br>        value: ens18<br>destination:<br>  server: https://kubernetes.default.svc<br>  namespace: default<br>syncPolicy:<br>  automated:<br>    prune: true<br>  syncOptions:<br>    - Replace=true</pre><p>Wait with patience for gNB pod.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QJ1BvqafW5amGjBFAvV1fg.png" /><figcaption>Up and running UERANSIM</figcaption></figure><p>All our pods and every microservice are now up and running. The final view in ArgoCD should look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AjH8AX1hbR2pBxKWL3dYEA.png" /><figcaption>Running all of them in ArgoCD</figcaption></figure><p>Now it’s time for a full demo.</p><p>Optionally, if you want, you can enter the AMF and SMF pods of F5GC and install a packet capturer, then you can pull it to your local machine and read the .pcap file and examine all packets in the network in detail. In order not to overcrowd, I will only ping from my UERANSIM and show the returns I get from UPF.</p><p>To set up TCP dump, just change the pod names for AMF and SMF:</p><pre>k exec -it free5gc-free5gc-smf-smf-8fc96bd58-rd5fz sh<br><br>apk update<br>apk add tcpdump<br>tcpdump -i any -s 0 -w /test-smf.pcap<br><br>#pcap i almak için (opsyionel):<br>k cp free5gc-free5gc-smf-smf-8fc96bd58-rd5fz:/test-smf.pcap $(pwd)/test-smf.pcap</pre><p>After installing UERANSIM and waiting for it to run, observe that the connection is established and access is available in F5GC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ccbBqUxH3ijmQXjvuetFTA.png" /><figcaption>Connected UE on F5GC</figcaption></figure><p>We will enter the UERANSIM pod and ping the known global addresses (google.com) and observe from the UPF pod.</p><pre>k get pods<br>k exec -it ueransim-ue-5cb6655978-x4x4n -- bash<br>root@ueransim-ue-5cb6655978-x4x4n:/ueransim/build# ip a</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*Y87WzvXhHvDbu_JC3FkhWg.png" /><figcaption>Finding UERANSIM pod from running pods</figcaption></figure><p>After entering the UERANSIM pod, we display and retrieve the name of the network interface with the “ip a” command as shown in the figure.</p><p>When we ping google.com from UERANSIM and watch the results, we should get an output like below.</p><pre>root@ueransim-ue-5cb6655978-x4x4b:/ueransim/build# ping google.com -I uesimtun0<br>PING google.com (172.217.17.238): 56 data bytes<br>64 bytes from 172.217.17.238: seq=0 ttl=112 time=20.884 ms<br>64 bytes from 172.217.17.238: seq=1 ttl=112 time=20.033 ms<br>64 bytes from 172.217.17.238: seq=2 ttl=112 time=19.657 ms<br>64 bytes from 172.217.17.238: seq=3 ttl=112 time=19.495 ms<br>64 bytes from 172.217.17.238: seq=4 ttl=112 time=19.357 ms<br>64 bytes from 172.217.17.238: seq=5 ttl=112 time=19.127 ms</pre><p>Now that we have successfully pinged the global internet, we have installed our Free5GC setup in a healthy way.<br>Thank you for taking the time to read this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c16475ac3b81" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Adımda 5G -ArgoCD ile Free5GC Kurulumu: Adım Adım Kılavuz]]></title>
            <link>https://medium.com/@behic.erdem/5-ad%C4%B1mda-5g-argocd-ile-free5gc-kurulumu-ad%C4%B1m-ad%C4%B1m-k%C4%B1lavuz-0002ae1800bf?source=rss-ff00d1fdd8c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/0002ae1800bf</guid>
            <category><![CDATA[5g]]></category>
            <category><![CDATA[5g-wireless]]></category>
            <category><![CDATA[5g-network]]></category>
            <category><![CDATA[5g-technology]]></category>
            <dc:creator><![CDATA[Behiç Erdem]]></dc:creator>
            <pubDate>Sun, 09 Feb 2025 18:12:12 GMT</pubDate>
            <atom:updated>2025-02-09T18:41:56.729Z</atom:updated>
            <content:encoded><![CDATA[<h3>5 Adımda 5G — ArgoCD ile Free5GC Kurulumu: Adım Adım Kılavuz</h3><p>Herkese merhabalar, bu yazımda açık kaynak kodlu olan <a href="https://free5gc.org/">Free5GCore</a> bileşeninin en meşhur CI/CD araçlarından biri olan <a href="https://argo-cd.readthedocs.io/en/stable/">ArgoCD</a> üzerinde kurulumunu anlatacağım. Keyifli okumalar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hRsXzP8sRJPns7UB0umELg.png" /></figure><p>Aşağıda belirtilen repo adresinde tüm kurulumu manuel olarak yapmanıza gerek kalmadan yapan bir scriptte mevcuttur. <a href="https://github.com/erdembehic/free5gc-with-argocd">GitHub</a> reposuna gidip sadece scripti çalıştırmanız halinde aşağıdaki adımların tamamı gerçekleşmiş olacaktır.</p><h4>1.ArgoCD Kurulumu</h4><p>ArgoCD, Kubernetes için bir <strong>Continuous Delivery (CD)</strong> aracı olup, Kubernetes uygulamalarının versiyon kontrol sisteminde (Git gibi) tanımlanan durumlarına göre otomatik olarak dağıtılmasını sağlayan açık kaynaklı bir uygulamadır. GitOps yaklaşımını benimser ve Kubernetes kaynaklarının yönetimini ve senkronizasyonunu kolaylaştırır.</p><p>Kurulumu ise gereğinden fazla basittir. O kadar basittir ki 2. bir yazıda anlatmaya gerek duymuyoruz.</p><p>Öncelikle uygun bir namespace oluşturup, direkt kurulumu tamamlıyoruz.</p><pre>kubectl create ns argocd<br>kubectl apply -k https://github.com/argoproj/argo-cd/manifests/crds\?ref\=stable</pre><p>Kurulum bitti.</p><p>Kustomize veya farklı komponentler ile de kurulumu mevcuttur. Detaylı bilgi için ArgoCD nin sayfasının incelemenizi tavsiye ederim.</p><p>Kurulum bittikten sonra ArgoCD tarafından default oluşturulan credentials ları almak için “argocd-initial-admin-secret” ın içinde base64 ile kodlanmış yeri çözdürmemiz gerekiyor. Aşağıdaki komut ile secretları listeleyip devamındaki komut ile şifreyi decode edebiliriz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*TnzVn5pmGhoYFZ4IJIkvJw.png" /></figure><pre>kubectl get secrets -n argocd<br>kubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath=&quot;{.data.password}&quot; | base64 --decode</pre><p>Örnek decode edilmiş çıktı:</p><pre>username: admin<br>password: P4ssw0rd!</pre><p>İlginç bir string çıktı aldıktan sonra, usernamemiz de admin olacak şekilde ister CLI dan ister tarayıcıdan argocd servisini export ettikten sonra giriş sağlıyoruz. CLI dan giriş için:</p><pre>argocd login localhost:12345 --username admin </pre><p>Arayüzden giriş yapmak için ArgoCD nin kurulduğu adrese NodePort veya ingress yaparak giriyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ppclmhwWFWj2BZcnTCTJQg.png" /><figcaption>ArgoCD login ekranı</figcaption></figure><h4>2.Free5GC-Prep adımı</h4><p>Bu adımda Free5GC nin çalışması için sunucularımızda önceden yüklü olması gereken mirantis, gtp5g gibi servislerin otomatik olarak ansible ile kurulum anlatımı mevcuttur. Aşağıdaki tabloda kurulum yapılacak ortama ait önerilen ve kullanılan araçların vb. versiyon detayları verilmiştir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*qIWAIm9PmCg3bOjKafVeRQ.png" /></figure><p>Eğer ki clusterınızı rancher ile kaldırdıysanız kurulacak olan pv ve pvc lerin local file systemde sağlıklı bir şekilde çalışması için “kubelet” içine en alt satırda yer alan “extra_binds” kısmını pv mizi bound edeceğimiz directory yi yazıyoruz. Varsayılan ayarları kullanacaksanız aşağıdaki şekilde edit etmeniz yeterlidir.</p><pre>  kubelet:<br>    image: &quot;&quot;<br>    extra_args: {}<br>    extra_binds: []<br>    extra_env: []<br>    win_extra_args: {}<br>    win_extra_binds: []<br>    win_extra_env: []<br>    cluster_domain: cluster.local<br>    infra_container_image: &quot;&quot;<br>    cluster_dns_server: 10.43.0.10<br>    fail_swap_on: false<br>    generate_serving_certificate: false<br>    extra_binds:<br>    - &quot;/root/kubedata:/root/kubedata&quot;</pre><p>Daha sonra sizler için her şeyin hazırlanmış olduğu repoyu ArgoCD ye ekliyoz.</p><pre>argocd repo add https://github.com/erdembehic/free5gc-with-argocd.git<br><br>Repository &#39;https://github.com/erdembehic/free5gc-with-argocd.git&#39; added</pre><p>Daha sonra ArgoCD yeni app oluşturuyoruz. App imizi düzenlerken edit yaml diyerek aşağıdaki düzenlenmiş dosyayı repodan alıp yapıştırıyoruz. “targetRevision” kısmını şimdilik HEAD yapıyoruz ancak ilerleyen süreçlerde Free5GC nin yeni versiyonlarına göre repomuz düzenlenecek. Şu an ki repo F5C nin 3.3.3 sürümüne uygun şekilde yapıldı.</p><p>Var olan docker imajımız kendi ortamımıma göre düzenlediğim bir inventory.ini dosyası ile ansible tasklarını çalıştırmaktadır o sebeple sizlerin kendi inventory.ini dosyanızı bir config-map e tanımlatarak kubernetes job ınızı kaldırmanız gerekmektedir. Bu tanımı yapmak için repoda bulunan “kubernetes/app/app.yaml” dosyasını kendi lokalinize çekip kendi değişkenleriniz ile reponuza atıp çalıştırmanızı öneriyorum.</p><p>Öncelikle configmap tanımında yer alan inventory.ini kısmında 1 adet “master0” tanımı yapmanız gerekmektedir. Bu host, k8s kümenizi kontrol ettiğiniz kubectl komutlarınızı çalıştırdığınız makine olmalıdır. Çünkü bazı ansible tasklarında sadece master makinesinde çalışması gereken mirantis runtime kurulumu mevcut, normal controlplane veya etcd olmayan worker makinelerde bu komut çalışırsa hata alacaktır job.</p><pre>---<br>apiVersion: v1<br>kind: ConfigMap<br>metadata:<br>  name: custom-inventory<br>  namespace: default<br>data:<br>  inventory.ini: |<br>    [all]<br>    master0 ansible_host=192.168.1.10<br>    server2 ansible_host=192.168.1.11<br><br>---</pre><p>Yok ben bunlarla uğraşmayayım bunlar beni yorar diyorsanız yine repomuza gidip tek tek job.yaml ve pv.yaml dosyalarını çalıştırıyoruz.</p><pre>git clone https://github.com/erdembehic/free5gc-with-argocd.git<br>cd free5gc-with-argocd/kubernetes<br>kubectl apply -f job/job.yaml<br>kubectl apply -f pv/pv.yaml</pre><p>Yok ben bununla da uğraşmayayım diyorsanız yine repoyu çekiyoruz. “playbooks” kısmı altında kendimize göre keyfimiz ne istiyorsa düzenleyip docker build çekip yolumuza bakıyoruz.</p><p>ArgoCD ile başarılı bir kurulumda şu şekil bir sonuç alacağız.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gGZNnqckqSbh2Vd0jv63jg.png" /><figcaption>F5GC nin mikroservisleri kurulmadan önce oluşturulan prep adımı</figcaption></figure><h4>3.Free5GC UPF — UserPlaneFunction kurulumu</h4><p>Buradaki kurulumda F5GC nin temel bileşenlerinden olan UPF in kurulumunu anlatacağız.UPF <strong>kullanıcı verilerinin iletimi</strong> için kritik bir rol oynar. UPF, kullanıcı trafiğinin yönlendirilmesinden ve işlenmesinden sorumlu olan <strong>User Plane (Kullanıcı Düzlemi)</strong> bileşenidir. Bu bileşeni harici olarak kuruyoruz.</p><p>Kurulumda yine yukarıdaki olduğu gibi repomuzu çekmemizle başlıyor. Repomuzda bulunan F5GC 3.3.0 versiyonuna ait tüm helm chartları içermektedir.</p><p>Helmimiz yoksa bu ayıbı kapatmak için:</p><pre>curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3<br>chmod 700 get_helm.sh<br>./get_helm.sh</pre><p>Helm3 ün son sürümünü indirip kurduruyoruz.</p><p>Daha sonra ArgoCD kurulum adımları için ArgoCD app.yaml ımızı ister cli üzerinden doğrudan, ister guiden tek tek editleyerek yapabiliriz. Ben yazının boğuculuğunu azaltmak adına yaml formatını sizlere temin ediyorum, isterseniz bunu gui üzerinden de yapıştırabilirsiniz.</p><p>Dikkat edilecek bir nokta local networkümüzle alakalı bir değişken ekleyeceğiz. Bunu bulabilmek için:</p><pre>ip addr<br>1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000<br>    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br>    inet 127.0.0.1/8 scope host lo<br>       valid_lft forever preferred_lft forever<br>    inet6 ::1/128 scope host <br>       valid_lft forever preferred_lft forever<br>2: ens18: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc fq_codel state UP group default qlen 1000<br>    link/ether bc:24:11:f9:a8:d1 brd ff:ff:ff:ff:ff:ff<br>    altname enp0s18<br>    inet 192.168.141.31/23 brd 192.168.147.255 scope global ens18<br>       valid_lft forever preferred_lft forever<br>    inet6 fe80::be24:11ff:fef9:a8d1/64 scope link <br>       valid_lft forever preferred_lft forever</pre><p>“ens18&quot; adlı ağ arayüzümüzü sizde artık hangisi ise ona göre aşağıdaki dosyada değiştiriyoruz, diğer IP parametreleri ise sabit kalsın, F5GC nin mikroservisleri ona göre çalışıyor.</p><pre>project: default<br>source:<br>  repoURL: https://raw.githubusercontent.com/Orange-OpenSource/towards5gs-helm/main/repo/<br>  path: free5gc-upf<br>  targetRevision: HEAD<br>  helm:<br>    parameters:<br>      - name: global.n3network.masterIf<br>        value: ens18 #DEĞİŞTİR<br>      - name: global.n4network.masterIf<br>        value: ens18 #DEĞİŞTİR<br>      - name: global.n6network.masterIf<br>        value: ens18 #DEĞİŞTİR<br>      - name: global.n6network.subnetIP<br>        value: 10.100.60.0<br>      - name: global.n6network.gatewayIP<br>        value: 10.100.60.2<br>      - name: upf.n6if.ipAddress<br>        value: 10.100.60.112<br>destination:<br>  server: https://kubernetes.default.svc<br>  namespace: default<br>syncPolicy:<br>  automated:<br>    prune: true<br>    selfHeal: true</pre><p>Bu yaml ı da ArgoCD GUI sinde New App -&gt; (Sağ üstte) EDIT AS YAML diyince çıkan yere yapıştırarak olayı çözüyoruz.</p><p>Daha sonra ArgoCD F5GC UPF i bizim kümemizde ayağa kaldırıyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EskRhsfLjKfCjdX9BLsoIw.png" /><figcaption>F5GC UPF nin kurulmuş ve çalışır hali</figcaption></figure><p>Nihayet geldik F5GC nin kendini kaldırmaya.</p><h4>4.Free5GCore Kurulumu</h4><p>Bu adımda da yukarıdaki adımlarda olduğu gibi repomuzdan faydalanıyoruz. Yine aynı şekilde ağ arayüzümüzü yukarıdaki adımdaki gibi çıkartıyoruz ve app.yaml dosyamızda değişkenleri tanımlıyoruz.</p><pre>project: default<br>source:<br>  repoURL: https://raw.githubusercontent.com/Orange-OpenSource/towards5gs-helm/main/repo/<br>  path: free5gc<br>  targetRevision: HEAD<br>  helm:<br>    parameters:<br>      - name: global.n2network.masterIf<br>        value: ens18<br>      - name: global.n3network.masterIf<br>        value: ens18<br>      - name: global.n4network.masterIf<br>        value: ens18<br>      - name: global.n6network.masterIf<br>        value: ens18<br>      - name: global.n9network.masterIf<br>        value: ens18<br>destination:<br>  server: https://kubernetes.default.svc<br>  namespace: default<br>syncPolicy:<br>  automated:<br>    prune: true<br>  syncOptions:<br>    - Replace=true</pre><p>Bunun haricinde bir tanım yapmaya gerek yok ve ArgoCD fırınına gönderiyoruz. F5GC çok fazla mikroservis içerdiği için ArgoCD den aldığım açık görünüm tek bir fotoğrafa sığmadı ancak mikroservisleri gruplayıp son halini aşağıya ekledim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Skkd0G4mLqoQrJYO2WIVg.png" /><figcaption>F5GC nin başarılı kurulumu</figcaption></figure><p>Kurulum bittikten sonra göreceğiniz üzere tüm AMF, SMF vb. mikroservisler tek tek kurulmuş durumda.</p><p>Her mikroservis başarı ile kuruldu sıra geldi deneme kısmına :D.</p><h4>Free5GC Demo ve UERANSIM</h4><p>F5GC nin kurulu olduğu cluster da F5GC web-ui servisi 30500 portunda NodePort tanımı ile gelmektedir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*SKe2HbBAcUwKkvNKBMtVNQ.png" /><figcaption>NodePort tanımlı webui-servisi</figcaption></figure><p>Görselde de görüldüğü gibi en altta bulunan “web-ui” servisi F5GC için NodePort tanımlı gelmektedir. Bunu kullanarak devam edeceğiz.</p><p>Clusterımızın external IP (NodePort ile tanımlı olan) adresinden belirtilen yere giriş yapıyoruz. Varsayılan kullanıcı adı admin şifre “free5gc” dir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SAT1ys_e1F2FoaRPmt2rmQ.png" /><figcaption>Free5GC web arayüzü</figcaption></figure><p>Giriş yaptıktan sonra “subscribers” kısmından yeni bir subscriber oluşturacağız. Elinizde custom detaylar slice SNNAI gibi detaylar varsa girin, yoksa direkt varsayılan olaran bizim yerimize sistem atama yapacaktır. Ve subscriberınızı oluşturun.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MMhLVrpnJ7KLhnz9viBq0Q.png" /></figure><p>Şimdi ise UERANSIM ile demo etme kısmı</p><h4>5.UERANSIM Kurulumu</h4><p>UERANSIM kurulumu da yukarıdakilerin tıpatıp aynısı olacaktır. Neyseki repomuzda bizler için her şey hazır. ArgoCD app tanımı aşağıdadır ağ adını yine kendimize göre değiştirip verelim fırına.</p><pre>project: default<br>source:<br>  repoURL: https://raw.githubusercontent.com/Orange-OpenSource/towards5gs-helm/main/repo/<br>  path: ueransim<br>  targetRevision: HEAD<br>  helm:<br>    parameters:<br>      - name: global.n2network.masterIf<br>        value: ens18<br>      - name: global.n3network.masterIf<br>        value: ens18<br>destination:<br>  server: https://kubernetes.default.svc<br>  namespace: default<br>syncPolicy:<br>  automated:<br>    prune: true<br>  syncOptions:<br>    - Replace=true</pre><p>gNB nin ayaklanması biraz sürecektir. Sabırla bekleyelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QJ1BvqafW5amGjBFAvV1fg.png" /><figcaption>UERANSIM kurulmuş hali</figcaption></figure><p>Tüm podlarımız her mikroservisimiz şu anda çalışır vaziyette. ArgoCD deki son görünüm şu şekilde olmalıdır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AjH8AX1hbR2pBxKWL3dYEA.png" /><figcaption>ArgoCD de çalışan tüm modüller</figcaption></figure><p>Şimdi tam demo etme vakti.</p><p>Opsiyonel olarak isterseniz F5GC nin AMF ve SMF podlarına girip bir paket yakalayıcısı kurabilir, daha sonra bunu local makinenize çekip .pcap dosyasını okuduğunuzda networkteki tüm paketleri detaylı inceleyebilirsiniz. Kalabalık etmemek adına ben sadece UERANSIM den ping atıp UPF den aldığım dönüşleri göstereceğim.</p><p>TCP dump kurmak için, AMF ve SMF için sadece pod isimlerini değiştirin:</p><pre>k exec -it free5gc-free5gc-smf-smf-8fc96bd58-rd5fz sh<br><br>apk update<br>apk add tcpdump<br>tcpdump -i any -s 0 -w /test-smf.pcap<br><br>#pcap i almak için (opsyionel):<br>k cp free5gc-free5gc-smf-smf-8fc96bd58-rd5fz:/test-smf.pcap $(pwd)/test-smf.pcap</pre><p>UERANSIM i kurduktan ve çalışmasını bekledikten sonra F5GC de bağlantının kurulduğunu ve erişimin olduğunu gözlemleyin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ccbBqUxH3ijmQXjvuetFTA.png" /></figure><p>UERANSIM poduna girip malum global adreslere (google.com) ping atıp UPF podundan gözlem yapacağız.</p><pre>k get pods<br>k exec -it ueransim-ue-5cb6655978-x4x4n -- bash<br>root@ueransim-ue-5cb6655978-x4x4n:/ueransim/build# ip a</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*Y87WzvXhHvDbu_JC3FkhWg.png" /><figcaption>UERANSIM pod u</figcaption></figure><p>UERANSIM poduna girdikten sonra şekildeki gibi “ip a” komutu ile ağ arayüzünün ismini görüntüleyip alıyoruz.</p><p>UPF poduna da aynı şekilde girip:</p><pre>k exec -it free5gc-upf-upf-f574f5bcb-8bs8f --sh<br>apk update<br>apk add tcpdump<br>tcp - i any icmp</pre><p>UERANSIM den google.com a ping atıp sonuçları izlediğimizde ise aşağıdaki gibi bir çıktı almamız gerekmektedir.</p><pre>ping -I uesimtun0 google.com</pre><pre>root@ueransim-ue-5cb6655978-x4x4b:/ueransim/build# ping google.com -I uesimtun0<br>PING google.com (172.217.17.238): 56 data bytes<br>64 bytes from 172.217.17.238: seq=0 ttl=112 time=20.884 ms<br>64 bytes from 172.217.17.238: seq=1 ttl=112 time=20.033 ms<br>64 bytes from 172.217.17.238: seq=2 ttl=112 time=19.657 ms<br>64 bytes from 172.217.17.238: seq=3 ttl=112 time=19.495 ms<br>64 bytes from 172.217.17.238: seq=4 ttl=112 time=19.357 ms<br>64 bytes from 172.217.17.238: seq=5 ttl=112 time=19.127 ms</pre><p>Başarılı bir şekilde global internete de ping attığımıza göre Free5GC kurulumumuzu sağlıklı bir şekilde kurmuş olduk.</p><p>Zaman ayırıp okuduğunuz için teşekkür ederim.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0002ae1800bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Free5GC in 827 Words]]></title>
            <link>https://medium.com/@behic.erdem/free5gc-in-827-words-25a5ba797646?source=rss-ff00d1fdd8c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/25a5ba797646</guid>
            <category><![CDATA[5gnetworkmanagement]]></category>
            <category><![CDATA[free5gc]]></category>
            <category><![CDATA[5g-technology]]></category>
            <dc:creator><![CDATA[Behiç Erdem]]></dc:creator>
            <pubDate>Sat, 08 Feb 2025 22:22:28 GMT</pubDate>
            <atom:updated>2025-02-09T18:45:34.185Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Free5GC</strong> is an open-source software that complies with 3GPP’s 5G standards for the fifth-generation core network. Designed as a simulation of the essential microservices used in 5G networks, it has been specifically developed for research, development, and testing purposes. It provides an ideal platform for users to understand 5G technologies, test applications, and utilize them in development processes. There’s no need to elaborate on the benefits of being open-source.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/0*Y-orkvjytPDIvjQT.png" /><figcaption>Sctructure and microservice connections of Free5GC</figcaption></figure><h3>Microservices of Free5GC and Their Relationships</h3><p>Free5GC incorporates the complete microservice architecture of the fifth generation within itself. In general, these microservices include:</p><ul><li><strong>Access and Mobility Management Function (AMF):</strong> A core 5GC microservice responsible for registration, authentication, session management, and mobility management in the Free5GC architecture. AMF communicates with gNB and UE (User Equipment) to manage user access to the network and coordinates with other microservices like SMF, NRF, and AUSF.</li><li><strong>Session Management Function (SMF):</strong> A microservice in the Free5GC architecture responsible for session management and IP address allocation. It manages PDU (Packet Data Unit) sessions to enable UE to connect to the data network, communicates with UPF for data routing, enforces QoS policies, and collaborates with AMF for session creation and transfer. In short, SMF regulates and manages the flow of user data within the mobile network.</li><li><strong>User Plane Function (UPF):</strong> Ensures the transmission and routing of user data in the Free5GC architecture. It receives, processes, and forwards user data to target networks like the internet or private enterprise networks. UPF performs packet filtering, QoS management, and traffic routing according to policies defined by SMF. It plays a critical role in optimizing data traffic flow within the 5G core network and is similar to the PGW-U (Packet Gateway — User Plane) component in traditional 4G architecture.</li><li><strong>Authentication Server Function (AUSF):</strong> A core microservice in Free5GC responsible for user authentication. AUSF manages the authentication process when a UE attempts to connect to the network and makes authorization decisions. It works alongside UDM (Unified Data Management) to access subscription information and process authentication data. To ensure network security, AUSF coordinates with AMF to block unauthorized access and guarantee secure user connections. AUSF replaces the HSS (Home Subscriber Server) and AAA (Authentication, Authorization, and Accounting) functions in traditional 4G LTE architecture.</li><li><strong>Network Repository Function (NRF):</strong> A microservice in Free5GC responsible for service discovery and management within the 5GC architecture. NRF registers and queries the services of other 5G core components (AMF, SMF, UPF, AUSF, etc.) and facilitates communication between them. Each 5G component registers with NRF and retrieves information from it to discover other services when needed. This enables direct recognition between network functions and fosters a scalable, flexible structure. NRF operates on the principles of Service-Based Architecture (SBA) and facilitates connections between 5G network components using modern communication protocols like HTTP/2 and RESTful APIs.</li><li><strong>Policy Control Function (PCF):</strong> A component in Free5GC architecture responsible for managing network policies and user-specific rules. PCF regulates the efficient use of network resources by managing QoS, data usage limits, and session management. It works in integration with SMF to define policy rules that need to be enforced during session management. Additionally, PCF coordinates with AMF to control policies during mobility management processes. PCF is the 5G counterpart of the PCRF (Policy and Charging Rules Function) component in 4G LTE and enables flexible, dynamic network management by adhering to Service-Based Architecture (SBA) principles.</li><li><strong>Unified Data Management (UDM):</strong> A core component in Free5GC architecture responsible for subscription management and storing user data. UDM collaborates with AUSF during user authentication processes to provide subscription information and necessary data for validation. It also communicates with AMF to manage user network access permissions and mobility status. By integrating with PCF, UDM applies user-specific network policies. UDM is the 5G equivalent of the HSS component in 4G LTE architecture and plays a critical role as a central data manager in 5GC.</li></ul><p><em>We will not delve into the technical details of these microservices in this article.</em></p><h3>UERANSIM</h3><p><strong>UERANSIM (User Equipment Radio Access Network Simulator)</strong> is an open-source software that operates as a user equipment (UE) and radio access network (RAN) simulator in compliance with 5G NR (New Radio) and LTE (Long Term Evolution) standards defined by 3GPP. It is primarily used for testing and validating 5G or LTE core networks.</p><p>We will use UERANSIM to test our core setup after the Free5GC installation.</p><h3>Final Thoughts</h3><p>As described, <strong>Free5GC</strong> is a powerful tool for understanding, developing, and testing 5G networks. When combined with modern CI/CD tools like <strong>ArgoCD</strong> and <strong>Kubevela</strong>, the setup and management of the 5G core network become even more straightforward and efficient.</p><p>Free5GC can be deployed on virtual machines, bare-metal servers, or container-based infrastructures like Kubernetes. In our next setup, we will proceed with operations on a Kubernetes cluster built using <strong>RKE (Rancher Kubernetes Engine)</strong>. For installation and the following steps, you can move on to our next article.</p><p><a href="https://medium.com/@behic.erdem/5g-in-5-steps-free5gc-setup-with-argocd-step-by-step-guide-c16475ac3b81"><strong>Deployment and Demo of Free5GC with ArgoCD</strong></a> 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25a5ba797646" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[723 Kelimede Free5GC]]></title>
            <link>https://medium.com/@behic.erdem/727-kelimede-free5gc-0c540d085ff1?source=rss-ff00d1fdd8c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c540d085ff1</guid>
            <category><![CDATA[5g-technology]]></category>
            <category><![CDATA[5g]]></category>
            <category><![CDATA[tecknology]]></category>
            <dc:creator><![CDATA[Behiç Erdem]]></dc:creator>
            <pubDate>Tue, 04 Feb 2025 17:46:53 GMT</pubDate>
            <atom:updated>2025-02-08T13:38:31.594Z</atom:updated>
            <content:encoded><![CDATA[<p>Free5GC, 5.nesil çekirdek ağı 3GPP’nin 5G standartlarına uygun açık kaynaklı bir yazılımdır. 5G şebekelerinde kullanılan temel mikroservislerin bir simülasyonu olarak tasarlanmış, özellikle araştırma, geliştirme ve test amacıyla kullanılmak üzere geliştirilmiştir. Kullanıcıların 5G teknolojilerini anlaması, uygulamaları test etmesi ve geliştirme süreçlerinde kullanması için ideal bir platform sunar. Açık kaynaklı olmasının faydalarından bahsetmeye gerek yok.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/0*DY0APZPH9QyvZ0E8.png" /><figcaption>F5GC nin mikroservisler ve birbiri ile olan ilişkisi</figcaption></figure><p>Free5GC kendi içeriğinde getirdiği 5. neslin tüm mikroservis yapısına sahiptir. Bu mikroservislerin genel manada :</p><ul><li>Access and Mobility Management Function (AMF): <strong>Free5GC</strong> mimarisinde <strong>kaydolma, kimlik doğrulama, oturum yönetimi ve hareketlilik yönetimi</strong> gibi görevleri üstlenen temel bir 5GC mikroservisidir. <strong>AMF</strong>, <strong>gNB v</strong>e <strong>UE (User Equipment)</strong> ile iletişim kurarak, kullanıcının şebekeye erişimini yönetir ve diğer mikroservislerle (örneğin, SMF, NRF, AUSF) koordinasyon sağlar.</li><li>Session Management Function (SMF): <strong>Free5GC</strong> mimarisinde <strong>oturum yönetimi ve IP adres tahsisi</strong> gibi görevleri üstlenen bir 5GC mikroservisidir. <strong>PDU (Packet Data Unit) oturumlarını yönetmek</strong> (UE’nin veri ağına bağlanmasını sağlamak), <strong>UPF ile haberleşerek veri yönlendirmesini sağlamak, QoS politikalarını uygulamak, AMF ile koordineli çalışarak oturum oluşturma ve taşıma işlemlerini yürütmek </strong>Kısacası, <strong>SMF, mobil ağda kullanıcı verisinin akışını düzenleyen ve yöneten bir mikroservistir.</strong></li><li>User Plane Function (UPF): <strong>Free5GC</strong> mimarisinde, <strong>kullanıcı verisinin iletimini ve yönlendirilmesini</strong> sağlar. Kullanıcı verilerini alır, işler ve bunları hedef ağlara, örneğin internete veya özel kurumsal ağlara yönlendirir. <strong>SMF</strong> tarafından belirlenen politikalara göre paket filtreleme, QoS yönetimi ve trafik yönlendirme gibi işlemleri gerçekleştirir. UPF, 5G çekirdek ağı içinde veri trafiğinin akışını optimize eden kritik bir bileşen olup, geleneksel 4G mimarisindeki <strong>PGW-U (Packet Gateway - User Plane)</strong> bileşenine benzer bir rol üstlenir.</li><li>Authentication Server Function (AUSF): <strong>Free5GC</strong> mimarisinde <strong>kullanıcı kimlik doğrulamasını</strong> gerçekleştiren temel bir mikroservistir. AUSF, <strong>UE </strong>şebekeye bağlanmak istediğinde <strong>kimlik doğrulama sürecini yönetir</strong> ve yetkilendirme kararlarını verir. <strong>UDM (Unified Data Management)</strong> bileşeniyle birlikte çalışarak, abonelik bilgilerine erişir ve kimlik doğrulama verilerini işler. 5G ağındaki güvenliği sağlamak için <strong>AMF </strong>ile koordineli çalışarak, yetkilendirilmemiş erişimleri engeller ve kullanıcıların güvenli bir şekilde bağlanmasını garanti eder. AUSF, geleneksel 4G LTE mimarisindeki <strong>HSS (Home Subscriber Server)</strong> ve <strong>AAA (Authentication, Authorization, and Accounting)</strong> işlevlerinin yerini almıştır.</li><li>Network Repository Function (NRF): <strong>Free5GC</strong> mimarisinde <strong>5GC içerisindeki servis keşfi ve yönetimini sağlayan</strong> bir mikroservistir. <strong>NRF, ağdaki diğer 5G çekirdek bileşenlerinin (AMF, SMF, UPF, AUSF vb.) servislerini kaydederek ve sorgulayarak, bileşenler arasında iletişimi düzenler</strong>. Her 5G bileşeni NRF’ye kaydolur ve gerektiğinde diğer servisleri keşfetmek için NRF’den bilgi alır. Bu sayede ağ fonksiyonlarının birbirini doğrudan tanıyabilmesi ve ölçeklenebilir, esnek bir yapı oluşturması sağlanır. NRF, <strong>Service-Based Architecture (SBA)</strong> prensibiyle çalışır ve <strong>HTTP/2, RESTful API gibi modern iletişim protokollerini</strong> kullanarak 5G ağ bileşenleri arasında bağlantı kurulmasını mümkün kılar.</li><li>Policy Control Function (PCF): <strong>Free5GC</strong> mimarisinde <strong>ağ politikalarını ve abonelere özel kuralları yöneten</strong> bir bileşendir. Kullanıcıların QoS, veri kullanım limitlerini ve oturum yönetimini düzenleyerek ağ kaynaklarının verimli kullanılmasını sağlar. <strong>SMF </strong>ile entegre çalışarak, oturum yönetimi sırasında uygulanması gereken politika kurallarını belirler. Aynı zamanda, <strong>AMF </strong>ile haberleşerek, mobilite yönetimi süreçlerinde politika kontrolü yapar. <strong>PCF, 4G LTE’deki PCRF (Policy and Charging Rules Function) bileşeninin 5G’deki karşılığıdır</strong> ve servis bazlı mimari (SBA) prensipleriyle çalışarak ağın esnek ve dinamik şekilde yönetilmesini mümkün kılar.</li><li>Unified Data Management (UDM): <strong>Free5GC</strong> mimarisinde <strong>abonelik yönetimi ve kullanıcı verilerinin saklanması</strong> işlevlerini yerine getiren temel bir bileşendir. Kullanıcı kimlik doğrulama süreçlerinde <strong>AUSF </strong>ile birlikte çalışarak, abonelik bilgilerini sağlar ve doğrulama için gerekli verileri sunar. Ayrıca, <strong>AMF</strong> ile haberleşerek, kullanıcıların şebekeye erişim izinlerini ve mobilite durumlarını yönetir. <strong>PCF </strong>ile entegre bir şekilde çalışarak, kullanıcıya özgü ağ politikalarını uygular. UDM, 4G LTE mimarisindeki <strong>HSS </strong>bileşeninin 5G karşılığıdır ve merkezi bir veri yöneticisi olarak 5GCde kritik bir rol oynar.</li></ul><p>Bu mikroservislerin teknik ve daha fazla detayına bu yazımızda girmeyeceğiz.</p><h4>UERANSIM</h4><p><a href="https://free5gc.org/guide/5-install-ueransim/">UERANSIM </a>(User Equipment Radio Access Network Simulator), açık kaynaklı bir yazılımdır ve 3GPP tarafından tanımlanan 5G NR (New Radio) ve LTE (Long Term Evolution) standartlarına uygun olarak çalışan bir kullanıcı ekipmanı (UE) ve radyo erişim ağı (RAN) simülatörüdür. Temel olarak, 5G veya LTE çekirdek ağlarının (core network) test edilmesi ve doğrulanması amacıyla kullanılmaktadır.</p><p>Free5GC kurulumundan sonra Core yapımızı test etmek için kullanacağız.</p><p>Free5GC, anlatıldığı gibi 5G ağlarının anlaşılması, geliştirilmesi ve test edilmesi için güçlü bir araçtır. ArgoCD, Kubevela gibi modern CI/CD araçları ile birleştirildiğinde, 5G çekirdek ağının kurulumu ve yönetimi daha da kolay ve verimli hale gelir.</p><p>Free5GC, sanal makineler, bare-metal sunucular veya Kubernetes gibi container tabanlı altyapılarda dağıtılabilir. Devam kurulumumuzda RKE (rancher) aracı ile kurulmuş olan bir k8s clusterında işlem yapacağız. Kurulum ve devam adımlar için bir sonraki yazımıza geçebilirsiniz.</p><p><a href="https://medium.com/p/0002ae1800bf">ArgoCD ile Free5GC kurulumu ve demosu</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c540d085ff1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>