Arama Yap Mesaj Submit
Request a Callback
+90
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro

Contact Us

Location Halkali merkez neighborhood fatih st ozgur apt no 46 , Kucukcekmece , Istanbul , 34303 , TR
Networking & Routing

What Is Network Routing and BGP? The Journey of a Packet to Your Server

Every request you send on the internet crosses dozens of routers before it reaches its destination. This guide explains the basic logic of network routing, the BGP protocol that ties the internet together, and how you can inspect your own server's routing step by step.

1989BGP was first defined in RFC 1105
ASThe internet's basic unit of management: Autonomous System
70K+Active AS numbers on the internet
/24The most commonly announced IPv4 prefix size
01
CONCEPTS

The core concepts of routing

Getting a packet from source to destination relies on routing decisions made at two distinct layers: local network routing and inter-autonomous-system routing across the internet.

Autonomous System (AS)

A collection of IP networks operating under a single administrative policy, such as an ISP, a large company or a hosting provider; each is identified by a unique AS number.

BGP (Border Gateway Protocol)

The routing protocol that announces which IP blocks are reachable through which paths between autonomous systems, forming the backbone of the internet.

IP Prefix and Route Announcement

An AS announces the IP block it owns (for example 203.0.113.0/24) to neighboring ASes so that traffic destined for that block is routed to it.

Local Network vs Internet Routing

Traffic heading to your server's default gateway is local routing; from there the packet continues across multiple ASes, guided by BGP decisions, until it reaches its destination.

02
WHY IT MATTERS

Why does understanding routing matter for server owners?

Knowing BGP and routing concepts lets you correctly diagnose the latency, availability and performance issues you run into during day-to-day server management.

High

Latency diagnosis

Seeing at which hop latency increases in a traceroute lets you tell whether the problem is on your own server or in a network somewhere along the path.

High

BGP hijack and route leak awareness

When an AS announces an IP block it doesn't own, either by mistake or maliciously, traffic can be misdirected; knowing how this can affect your server's availability matters.

Medium

Interpreting traceroute hop differences

It's normal for traceroutes to the same destination taken at different times to follow different paths; BGP path selection can change based on traffic engineering and agreements between providers.

Medium

Choosing a data center location

Choosing a data center that is geographically and topologically close to your audience reduces the number of ASes in between and therefore latency.

03
DIY INSPECTION

How to inspect your own server's routing

The steps below let you examine your server's network position and the path its traffic takes using standard command-line tools, without installing anything special.

01

Look up your IP address's AS information

Run a WHOIS lookup to see which AS number and which provider your server's IP address is allocated to.

02

Trace the packet path with traceroute

Run traceroute to see which routers (hops) the packet passes through on its way from source to destination.

03

Monitor continuously with mtr

Instead of traceroute's one-off snapshot, use mtr to observe packet loss and latency variation over time.

04

Check your prefix with a BGP looking glass

Use a public looking glass or route server to see how your own IP prefix is announced from different points on the internet and which AS path is being followed.

05

Determine whether it's anycast or unicast

Check whether the same IP address is routed to different servers depending on geographic location (anycast) or always goes to a single fixed server (unicast).

06

Monitor BGP changes for your own IP block

If you manage your own AS number and IP block, use a BGP monitoring service to get alerted about unexpected announcement changes for your prefix.

04
COMMANDS

Run the commands in order

Trace the packet path (traceroute)
traceroute example.com
Continuous path and loss monitoring (mtr)
mtr -rw example.com
Look up IP/AS information (whois)
whois <your-server-ip>
Trace the DNS resolution path
dig +trace example.com
Query the AS path from a public route server
telnet route-views.routeviews.org
> show ip bgp 203.0.113.0/24
Show your server's default gateway
ip route show default
05
FAQ

Frequently asked questions about BGP and network routing

What is an AS number, and do I need one?

An AS number (ASN) is a unique identifier for a network that follows an independent routing policy on the internet. Most hosting customers don't need their own ASN; your server already sits under your hosting provider's AS. You need your own ASN once you want to announce your own IP blocks through multiple providers (multihoming).

What's the difference between routing and DNS?

DNS translates a domain name (such as example.com) into an IP address — it helps you find the destination's address. Routing determines which path, through which routers, packets take to reach that IP address. DNS tells you 'where to go'; routing determines 'how to get there'.

What is a BGP hijack?

A BGP hijack happens when an AS announces an IP prefix it doesn't own, either by mistake or maliciously, causing some or all of the traffic destined for that prefix to be misdirected. This can make affected servers temporarily unreachable or route their traffic through an unexpected network.

Does my hosting provider's network setup affect my site's speed?

Yes. How many networks a provider directly peers with, which internet exchanges (IXs) it connects to, and the quality of its BGP path selection all directly affect the latency your audience experiences.

What is anycast, and does EKA Sunucu use it?

Anycast is a method where the same IP address is announced from multiple geographic locations, and BGP routing automatically directs the user to the nearest or lowest-cost location; it's typically used for DNS and CDN infrastructure. Standard VPS and dedicated server IPs are typically unicast; anycast requires network infrastructure built specifically for that service.

How can I reduce latency to my target audience?

Choosing a data center that is geographically close to your audience and has good peering relationships reduces both the number of ASes in between and the physical distance, lowering latency. Using a CDN for static content also lets you serve users from the edge location nearest to them.

07
RELATED GUIDES

Move on to the next step

EKA SUNUCU TEKNİK BİLGİ MERKEZİ

Looking for a low-latency location?

Check out our VPS and dedicated server plans, hosted in data centers with strong peering relationships to give your audience the closest and fastest routing.

View VPS Plans
Top