# LDP

#### Label Distribution Protocol

* routers run LDP to exchange MPLS labels.
* initially a Service provider technology

Used to establish bidirectional LSP's ( Label Swicthing Paths)

* Core routers forward based on MPLS labels, not ip address
* requirement of any Mpls services (L2VPN/L3VPN)

### Traditional network

<figure><img src="https://2292156749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDfDBccroFkvJ25uVFqYX%2Fuploads%2FRwtbK815eAvsDEHUrWSX%2F11.png?alt=media&#x26;token=a94bf14a-3e2d-4963-813e-e27b3a08283d" alt=""><figcaption></figcaption></figure>

Birden fazla müşteri olacağı için müşteri ip adresleri ve next hopları çalışabilir o yüzden label'lar ile taşınma işlemi yapılıyor. Aynı subnetten birden fazla müşteri olabilir. Overlap olabilir.&#x20;

&#x20;

<figure><img src="https://2292156749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDfDBccroFkvJ25uVFqYX%2Fuploads%2FHEkaIERZSzC17fY2s5yJ%2F12%2C.png?alt=media&#x26;token=713c658d-2b6e-4cbb-83e1-e9f4a0a03d76" alt=""><figcaption></figcaption></figure>

### LDP Control Plane

<figure><img src="https://2292156749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDfDBccroFkvJ25uVFqYX%2Fuploads%2F65hNXL4nJcADVweWQ8mW%2Fimage.png?alt=media&#x26;token=56ba2e70-60f6-4062-a19c-752a2899676e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2292156749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDfDBccroFkvJ25uVFqYX%2Fuploads%2FTSBZ5ERbO0ccUxnvYbHn%2Fimage.png?alt=media&#x26;token=0865c10e-5dc0-4689-b98f-e7e80414307b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2292156749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDfDBccroFkvJ25uVFqYX%2Fuploads%2F4vJfyVj1FPCdCpkpbLUA%2Fimage.png?alt=media&#x26;token=37405efe-6d3f-4601-a98b-52d2a75adcfa" alt=""><figcaption></figcaption></figure>

<div align="left"><figure><img src="https://2292156749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDfDBccroFkvJ25uVFqYX%2Fuploads%2FLCMqgoWn37JsMPBoRKgn%2Fimage.png?alt=media&#x26;token=26c3c7a5-1375-4053-963f-7cc514ccb5b6" alt="" width="375"><figcaption></figcaption></figure></div>

<figure><img src="https://2292156749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDfDBccroFkvJ25uVFqYX%2Fuploads%2FjwZMiEJ8Y6JUqoUKl5Jn%2Fimage.png?alt=media&#x26;token=a5a67a27-aa0f-4533-8247-547c95adb136" alt=""><figcaption></figcaption></figure>

unknown unicast mesajları iletilir. Kurulan Tcp mesajı üzerine.

<figure><img src="https://2292156749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDfDBccroFkvJ25uVFqYX%2Fuploads%2FzJcVhMjELXFIAdDrIZ31%2Fimage.png?alt=media&#x26;token=402ad757-5a48-4902-884d-d0c6f22c6b26" alt=""><figcaption></figcaption></figure>

Ldp routers generate and advertise MPLS label only for directly connected and IGP routes.

&#x20;

<figure><img src="https://2292156749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDfDBccroFkvJ25uVFqYX%2Fuploads%2FH0YXFcAyXubqqv9ljP2K%2Fimage.png?alt=media&#x26;token=80732a9a-6c25-48d4-bd38-1bd4b33b8aa8" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2292156749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDfDBccroFkvJ25uVFqYX%2Fuploads%2F4D5IeIIHJ7dNz38Seqtb%2Fimage.png?alt=media&#x26;token=9c121ab3-34a5-41c0-8629-7f82b68bb695" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2292156749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDfDBccroFkvJ25uVFqYX%2Fuploads%2FiVyV1eeRMy7d58RfdusP%2Fimage.png?alt=media&#x26;token=3fcf805f-21db-4fe6-aad2-a532f14d116e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2292156749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDfDBccroFkvJ25uVFqYX%2Fuploads%2F1AtzvsCf0G17Q8cefRFo%2Fimage.png?alt=media&#x26;token=7de616ff-11de-41f2-b417-df66c30deb19" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2292156749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDfDBccroFkvJ25uVFqYX%2Fuploads%2FxQvX0m8yd359dl1sM5r8%2Fimage.png?alt=media&#x26;token=d6484b98-3c18-4aac-af60-22a19b071baa" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2292156749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDfDBccroFkvJ25uVFqYX%2Fuploads%2FeMQK2Qe1JmITPGqI7e9q%2Fimage.png?alt=media&#x26;token=514eca67-45e5-45ff-b04c-7d2eaaf7d126" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2292156749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDfDBccroFkvJ25uVFqYX%2Fuploads%2Fm0axORjd2FxmlNKzme2A%2Fimage.png?alt=media&#x26;token=ea7d5a9b-3593-4d99-9bff-11a9d7ae2515" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2292156749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDfDBccroFkvJ25uVFqYX%2Fuploads%2F8lG7sE9moJ90nIRTirS8%2Fimage.png?alt=media&#x26;token=f9f17b16-e2b8-45dc-88f5-d75ac7b0e779" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2292156749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDfDBccroFkvJ25uVFqYX%2Fuploads%2FcI0T3syHO07DE88N3cnb%2Fimage.png?alt=media&#x26;token=94c17edd-b018-4dd0-9db0-0a7b2ac9b6be" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2292156749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDfDBccroFkvJ25uVFqYX%2Fuploads%2FR9JeeSgyvMHCPJrwiZFv%2Fimage.png?alt=media&#x26;token=bd28864e-7561-4ac4-a9ce-cff5963a15cb" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2292156749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDfDBccroFkvJ25uVFqYX%2Fuploads%2FtJQXwuKHhBcI2s7bQVVy%2Fimage.png?alt=media&#x26;token=3c5e27e1-2ff3-4a23-9ce0-6f5329e07d0d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2292156749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDfDBccroFkvJ25uVFqYX%2Fuploads%2Fgt3Er4PgsXchSWh5ve41%2Fimage.png?alt=media&#x26;token=a2eb4454-e9a6-4ff8-9e8a-27b9d5cb1798" alt=""><figcaption></figcaption></figure>
