<?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 Batuhan Bakıp on Medium]]></title>
        <description><![CDATA[Stories by Batuhan Bakıp on Medium]]></description>
        <link>https://medium.com/@batuhan.bakip?source=rss-50187fbedefd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*2Sw-Um5lL_tQsUvEVdeHKw.jpeg</url>
            <title>Stories by Batuhan Bakıp on Medium</title>
            <link>https://medium.com/@batuhan.bakip?source=rss-50187fbedefd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:57:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@batuhan.bakip/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[The Scaling Wall: Why Trendyol Migrated Data Center to Multi-Site EVPN]]></title>
            <link>https://medium.com/trendyol-tech/the-scaling-wall-why-trendyol-migrated-data-center-to-multi-site-evpn-7d2bbe614a9c?source=rss-50187fbedefd------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d2bbe614a9c</guid>
            <category><![CDATA[data-center]]></category>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[computer-networking]]></category>
            <dc:creator><![CDATA[Batuhan Bakıp]]></dc:creator>
            <pubDate>Fri, 15 May 2026 14:01:43 GMT</pubDate>
            <atom:updated>2026-05-15T14:01:43.961Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NOQcw3tn3mGEOumvpBlcxg.png" /><figcaption>Created by Gemini</figcaption></figure><p>When it comes to data center architectures, the idea of a “single large pool” (Single Fabric) often sounds very appealing. Everything is within a single BGP domain, every Leaf sees every Leaf, and every VLAN is everywhere…</p><p>If your leaf-spine traffic has reached the levels shown in the graph, it’s worth taking a closer look at the number of routes. It might be time to consider a multi-site setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WfIQozTfmBWD8U8f-HnyPA.png" /><figcaption>Leaf-Spine Traffic for One Fabric</figcaption></figure><p>However, as your network grows, this “peaceful pool” slowly transforms into a vast ocean that is difficult to control. In this article, we’ll discuss the challenges Trendyol faced with a single fabric and the benefits it gained from implementing a multi-site EVPN architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HtiZGXxGKs7LYPqH2e4t4A.png" /><figcaption>Created by Gemini</figcaption></figure><h3>Why did we get stuck in one VXLAN EVPN Domain?</h3><p>In a fabric architecture, EVPN answers the question “Where is the destination?”, while VXLAN answers the question “How do I get to the destination?”</p><p>EVPN is the control plane of the fabric. It finds the physical device (VTEP/Leaf) on which a packet’s destination (MAC or IP address) is located.</p><p>VXLAN is the data plane of the fabric. Once the destination is known, VXLAN determines how the packet should be encapsulated and transported to reach it.</p><p>VTEPs (VXLAN Tunnel Endpoints), also known as leaf nodes, establish tunnels with each other. However, if the number of VTEPs exceeds the limit (which varies by vendor), the devices’ tunnel tables begin to fill up and cannot encapsulate packets for new VTEPs. For example, a province does not have 500 districts because that would complicate management and service delivery. Instead, these districts can be distributed among many provinces.</p><p>In an EVPN domain, scalability is not only about the capacity of a single device, but also about the total load of the entire fabric and the health of the control plane.</p><p>This is where BGP limits become important. As the number of EVPN Type-2 (MAC and IP) and Type-5 (IP Prefix) routes increases, the BGP process on leaf devices begins to tire and slow down. It is crucial to monitor the MAC address table and the host route table in the forwarding tables. Once the limits exceed 80%, it’s time to take action. We can compare this to a bus: If a bus has 40 seats, it should carry maximum 40 passengers. Carrying more passengers reduces comfort, so the best solution is to use a second bus.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rhshbT6-r6gpDc7J5BZJqw.png" /><figcaption>Created by Gemini</figcaption></figure><h3>What are the benefits of Multi-Site, and what were the key considerations on Trendyol?</h3><p>The Multi-Site (EVPN Border Gateway) architecture encapsulates each site within its own independent “limit area” and provides a structure that can support a total of millions of devices.</p><p>In the EVPN/VXLAN architecture, the Border Gateway (BGW) strategically connects different EVPN domains (sites), carries traffic between domains, and maintains scalability limits.</p><p>As Trendyol’s data centers expanded, we began to require a multi-site design. With this design, we divided the data centers into sites and deployed Border Gateway devices. By connecting the BGWs to devices in the core layer, we enabled communication between sites. These BGWs provided us with the following flexibility.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wK5im0sAW1_c7qDngZUNMg.png" /><figcaption>VXLAN EVPN Multi-Site Design</figcaption></figure><p><strong>1. Control Plane Gateway</strong><br>There are thousands of MAC and IP routes (Type-2 and Type-5) within a fabric. If you connect two fabrics directly, all routes on both sides become mixed, and the table limits are reached. When transferring EVPN routes received from one site to another, the BGW changes the Next-Hop information to its own IP address. Leaf switches do not need to recognize the thousands of VTEPs at the remote site. The only “Next-Hop” address they need to know to reach remote destinations is the Border Gateway.</p><p><strong>2. Data Plane Gateway</strong><br>VXLAN tunnels are typically set up from VTEP to VTEP (leaf-to-leaf). However, this changes in a multi-site architecture. In this architecture, a leaf in site A sends a packet to the BGW via a VXLAN tunnel. The BGW then de-encapsulates the packet, determines its destination, and re-encapsulates it in a new VXLAN tunnel for Site B. This “segmentation” ensures that the lifetime of the tunnels ends at the site boundary. This makes it easier to manage tunnel complexity in the network.</p><p><strong>3. Anycast Border Gateway</strong><br>In large structures, a single BGW can create a physical bottleneck. Therefore, two or more devices typically operate as a single virtual BGW using Anycast logic. This means that all BGWs have the same IP address (EVPN multi-site anycast IP). Traffic is balanced between these devices using ECMP (Equal-Cost Multi-Path). If one BGW fails, traffic continues to flow through the other BGW within milliseconds.</p><p>We have a control mechanism for external (DCI) and internal (fabric) interfaces. If all external or internal interfaces go down, the EVPN Multi-Site anycast IP announcement is stopped. This enables traffic to switch to another BGW seamlessly. When the interfaces come back up, the announcement is not passed until the BGW neighbors/tunnels stabilize, thanks to the delay restore time. Once this period ends, the announcement is sent, and traffic begins to flow through the BGW.</p><p><strong>4. BUM Traffic</strong><br>BUM (Broadcast, Unknown Unicast, Multicast) traffic is the biggest enemy of a fabric. A BGW prevents broadcast traffic within a site from flowing uncontrollably to another site. BGWs typically use the “Designated Forwarder” mechanism to prevent BUM traffic from remote sites from being copied and causing loops. A “Broadcast Storm” at one site cannot bypass the BGW and crash your other data center.</p><p><strong>5. RT Design</strong><br>VRFs requiring L3 extension should be created in BGW. There is no need to maintain VRF leaks in Leafs in BGW. In BGW, we only import/export their own RT (Route Target) values to ensure routes flow through the correct VRFs.</p><h3><strong>Scaling Without Limits</strong></h3><p>One of our key achievements with Multi-Site was accelerating Trendyol’s growth. As our platform and services expanded, we continued to provide seamless service to our customers.</p><p>To meet this scale, Trendyol <strong>Facility</strong> team laid <strong>1000 km</strong> of fiber-optic cable and <strong>400 km</strong> of copper cable in our data centers. We achieved a power capacity of <strong>10 MW</strong>. With the transition to a multi-site architecture, our number of hosts increased from approximately <strong>2500</strong> to <strong>8500</strong> across three regions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RNvqKY-hcsbqpvDrSP77iQ.png" /><figcaption>Created by Gemini</figcaption></figure><p>Ensuring a seamless transition was critical for Trendyol, so we spread nearly <strong>150</strong> hours of night work over a three-month period. As the Network team, we planned all the work. We successfully completed all the transitions in collaboration with the <strong>Facility</strong>, <strong>Traffic</strong>, and <strong>Network Security</strong> teams. Behind the scenes, we carried out a project process spanning <strong>1.5 years</strong>, filled with planning and testing, in collaboration with our <strong>Product</strong> team.</p><p>In conclusion, you may face the same challenges that Trendyol experienced when using a single fabric. You have read the most important points to consider in multi-site design. Trendyol overcame significant scalability challenges by transitioning to a multi-site EVPN architecture. If you find it suitable for your structure, you can implement the multi-site design that we use at Trendyol. You can also review the relevant vendor documentation for configurations and access more in-depth information from IETF documents related to multi-site design.</p><p><strong>Careers at Trendyol Tech</strong></p><p>Would you like to build scalable technology that powers millions of users daily? Join the Trendyol Tech team and be part of our mission to redefine digital excellence.</p><p>Explore career opportunities here: <a href="https://careers.trendyol.com/">https://careers.trendyol.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d2bbe614a9c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trendyol-tech/the-scaling-wall-why-trendyol-migrated-data-center-to-multi-site-evpn-7d2bbe614a9c">The Scaling Wall: Why Trendyol Migrated Data Center to Multi-Site EVPN</a> was originally published in <a href="https://medium.com/trendyol-tech">Trendyol Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automation Journey of Network Interfaces in Trendyol Data Centers]]></title>
            <link>https://medium.com/trendyol-tech/automation-journey-of-network-interfaces-in-trendyol-data-centers-447f98629865?source=rss-50187fbedefd------2</link>
            <guid isPermaLink="false">https://medium.com/p/447f98629865</guid>
            <category><![CDATA[data-center]]></category>
            <category><![CDATA[cisco]]></category>
            <category><![CDATA[trendyol]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Batuhan Bakıp]]></dc:creator>
            <pubDate>Thu, 11 Dec 2025 07:39:21 GMT</pubDate>
            <atom:updated>2025-12-11T07:39:21.654Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HNX7aM1nWjLU-6T58eDXig.png" /></figure><p>Manually configuring an interface takes at least a minute before you can utilize any automation. This process is also prone to human error due to the high volume of operations. It is important to be able to make changes to interfaces in large-scale data center architectures quickly and easily. The ability to add new interfaces rapidly and with just a few clicks is also critical. At Trendyol Tech, we couldn’t do it manually. We successfully overcame challenges in managing interfaces by leveraging solutions, which we will detail in this article.</p><h4>What is Cisco NDFC?</h4><p>Cisco Nexus Dashboard Fabric Controller (NDFC) has been a key tool for Trendyol Tech in managing and automating its large-scale networks, helping us achieve operational efficiency and scalability. It is designed for Cisco NX-OS-enabled data center setups. It is the evolution of the former Cisco Data Center Network Manager (DCNM). It runs as a service on the Cisco Nexus Dashboard platform. It primarily achieves this through intent-based management and configuration compliance features. These features are used across data center networks.</p><h4>How are configurations managed in NDFC?</h4><p>With NDFC, you can basically say what you want the network to be like, like setting up a VXLAN EVPN fabric, and NDFC will take care of the rest. It will automatically generate and push all the complex configurations to the devices for you. We manage ~300 devices and 15k+ interfaces.</p><h4>What is the process for configuring the interface in NDFC?</h4><p>To create a configuration from a template for an interface, follow these steps. For example, let’s define an access port for an interface. The <strong>int_access_host</strong> template was used for the access VLAN. The parameters are filled in as desired. These steps are lengthy and susceptible to human error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oiRirPT-6dIAi-_G4blyqA.gif" /><figcaption>Create configuration for access interface</figcaption></figure><p>To understand what happens behind the scenes, let’s examine the relevant template. For instance, the <strong>Access Vlan</strong> option has a definition that allows integers between 1 and 4094. Using <strong>config_builder</strong>, we can observe that CLI configurations are generated under the relevant interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7zhocGYB6o-A-OM-OQiKgg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NRWIo0QZg5VUGMhnAE4P4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KExYqhYVWO9Z65ayflM0dw.png" /></figure><p>To create a port-channel interface, the <strong>int_port_channel_trunk_host</strong> template will then be automatically selected after selecting the device. Then, fill in the following options: port-channel ID, member interface, trunk allowed VLANs, and native VLAN. These steps are performed to create a trunk port.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zqUaZvoXTTun3TgtNFPUkw.gif" /><figcaption>Creating port-channel interface configuration</figcaption></figure><p>Let’s review the relevant template again. There is a definition for the <strong>Trunk Allowed VLANs</strong> option. Then, we can see that CLI configurations are created under the relevant interface with <strong>config_builder</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YYDhfrFyqJJdka00WElzog.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DdooPnw-JEGbcpVcDud4aA.png" /></figure><h4>How do we manage interface templates on Trendyol for 15k+ interfaces?</h4><p>In large-scale networks, the number of interfaces is naturally very high. Therefore, assigning templates to individual interfaces or creating interfaces is not practical. To address this, we can send templates to interfaces via the API at Trendyol Tech. To better understand this, let’s break it down into two parts:</p><h4>1- Assign Template to Ethernet Interface</h4><p>First, we will create a template that will be assigned directly to the interface. To do so, copy the int_access_host template and create a new one named <strong>Leaf_Individual_Interface</strong>. Then, we can remove the definitions we don’t need. The necessary definitions are <strong>SERIAL_NUMBER</strong>, <strong>INTF_NAME</strong>, <strong>DESC</strong>, <strong>CONF</strong>, and <strong>ADMIN_STATE</strong>. Therefore, we will only keep these definitions.</p><p>Since different configurations can be assigned to interfaces based on the template, it is essential to ensure that the desired configuration aligns with the interface name (<strong>INTF_NAME</strong>) using a regular expression (regex). Next, the corresponding configuration is specified within <strong>CONF</strong>. Finally, setting <strong>ADMIN_STATE</strong> to <strong>false</strong> shuts down the remaining interfaces. (By default, interfaces are open.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M7ugfkhno3fywD4GLUPQ1A.png" /></figure><p>We created a Python script that will assign the template to the desired switch ports. The templates will be assigned to the interfaces using NDFC’s API.</p><p>First, we need to extract the necessary fields from the API. We’ll have an inventory file containing our inventory information in the following format: <strong>MGMT IP; Hostname; Serial Number</strong>. When the script is run, it prompts us with the following questions:</p><p>- NDFC IP<br>- NDFC Username<br>- NDFC Password<br>- Policy Name<br>- Fabric Name<br>- Inventory file name<br>- Port ID start<br>- Port ID end</p><p>You can access the details of the <a href="https://github.com/batuhanbakip/NDFC_Interface_Template_Assigment/blob/main/eth_interface.py"><strong>eth_interface.py</strong></a> script via GitHub.</p><h4>2- Create Port-channel Interface with Template</h4><p>We will use a different script if we need to create a port-channel interface and assign a template. First, we will copy Cisco’s <strong>int_port_channel_trunk_host</strong> template. Then, we will create a new template and name it <strong>Leaf_Port-Channel_Interface</strong>. The necessary definitions are <strong>SERIAL_NUMBER</strong>, <strong>PO_ID</strong>, <strong>MEMBER_INTERFACES</strong>, <strong>ALLOWED_VLANS</strong>, and <strong>CONF</strong>.</p><p>Since the created port-channels may have different configurations, care must be taken to ensure the <strong>PO_ID</strong> matches. This is achieved using a regex. Then, the desired VLANs are written to the <strong>ALLOWED_VLANS</strong> section, and other configurations are written to the <strong>CONF</strong> section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PhCDkqXqz_ttIe7eOOTQRw.png" /></figure><p>We can now run <a href="https://github.com/batuhanbakip/NDFC_Interface_Template_Assigment/blob/main/po_interface.py"><strong>po_interface.py</strong></a>. This script will ask similar questions like eth_interface.py. Then, the port-channel interfaces will be sent to the NDFC for creation.</p><p>In conclusion, Cisco NDFC has proven to be an effective tool for managing large-scale networks at Trendyol Tech. By leveraging automation and templates, we have streamlined interface configuration processes, ensuring scalability and operational efficiency. This automation enabled us to configure over 500 interfaces in a span of just one minute. At the same time, we were able to reduce human error. For further details, you can access the NDFC templates via <a href="https://github.com/batuhanbakip/NDFC_Interface_Template_Assigment">GitHub</a> and contact us with suggestions and questions.</p><p><strong>Careers at Trendyol Tech</strong></p><p>Would you like to build scalable technology that powers millions of users daily? Join the Trendyol Tech team and be part of our mission to redefine digital excellence.</p><p>Explore career opportunities here: <a href="https://careers.trendyol.com/">https://careers.trendyol.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=447f98629865" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trendyol-tech/automation-journey-of-network-interfaces-in-trendyol-data-centers-447f98629865">Automation Journey of Network Interfaces in Trendyol Data Centers</a> was originally published in <a href="https://medium.com/trendyol-tech">Trendyol Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>