.tool-header {
margin-bottom: 30px;
padding: 25px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
color: white;
}
.tool-header h2 {
margin-top: 0;
color: white;
font-size: 28px;
margin-bottom: 10px;
}
.tool-header p {
margin: 10px 0;
opacity: 0.95;
font-size: 15px;
}
.search-section {
background: white;
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.input-group {
display: flex;
gap: 10px;
margin-bottom: 15px;
}
#searchInput {
flex: 1;
padding: 14px;
font-size: 16px;
border: 2px solid rgba(102, 126, 234, 0.3);
border-radius: 6px;
font-family: 'Courier New', monospace;
background: #f9f9f9;
transition: all 0.3s ease;
}
#searchInput:focus {
outline: none;
border-color: #667eea;
background: white;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
#searchBtn {
padding: 14px 35px;
font-size: 16px;
background: #4CAF50;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
transition: all 0.3s ease;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
#searchBtn:hover {
background: #45a049;
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
#searchBtn:active {
background: #3d8b40;
transform: translateY(0);
}
#searchBtn:disabled {
background: #ccc;
cursor: not-allowed;
transform: none;
}
.example-queries {
padding: 15px;
background: rgba(102, 126, 234, 0.05);
border-radius: 4px;
font-size: 14px;
}
.example-queries strong {
display: block;
margin-bottom: 8px;
color: #333;
}
.example-link {
display: inline-block;
margin: 4px 8px 4px 0;
padding: 6px 12px;
background: #667eea;
color: white;
text-decoration: none;
border-radius: 4px;
font-size: 13px;
font-family: monospace;
transition: all 0.2s ease;
}
.example-link:hover {
background: #764ba2;
transform: translateY(-1px);
}
.status-message {
margin-top: 15px;
padding: 15px 20px;
border-radius: 8px;
display: none;
}
.status-message.info {
background: #e3f2fd;
color: #1976d2;
border-left: 4px solid #2196F3;
display: block;
}
.status-message.error {
background: #ffebee;
color: #c62828;
border-left: 4px solid #c62828;
display: block;
}
.status-message.success {
background: #e8f5e9;
color: #2e7d32;
border-left: 4px solid #4CAF50;
display: block;
}
.loading {
text-align: center;
padding: 40px;
color: #666;
}
.loading .spinner {
border: 4px solid #f3f3f3;
border-top: 4px solid #4CAF50;
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
margin: 0 auto 20px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.results-container {
display: none;
}
.results-container.show {
display: block;
}
.result-section {
background: white;
border: 1px solid #e0e0e0;
border-radius: 8px;
margin-bottom: 20px;
overflow: hidden;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.section-header {
background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
color: white;
padding: 15px 20px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
user-select: none;
transition: background 0.3s ease;
}
.section-header:hover {
background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}
.section-header h3 {
margin: 0;
font-size: 18px;
display: flex;
align-items: center;
gap: 10px;
}
.section-toggle {
font-size: 24px;
transition: transform 0.3s ease;
}
.section-header.collapsed .section-toggle {
transform: rotate(-90deg);
}
.section-content {
padding: 20px;
background: #fafafa;
max-height: 2000px;
overflow: hidden;
transition: max-height 0.3s ease, padding 0.3s ease;
}
.section-content.collapsed {
max-height: 0;
padding: 0 20px;
}
.route-table {
width: 100%;
border-collapse: collapse;
margin-top: 10px;
background: white;
border-radius: 8px;
overflow: hidden;
}
.route-table th {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 12px;
text-align: left;
font-weight: bold;
position: sticky;
top: 0;
font-size: 14px;
}
.route-table td {
padding: 12px;
border-bottom: 1px solid #e0e0e0;
font-size: 13px;
}
.route-table tr:hover {
background: #f5f5f5;
}
.route-table .prefix-col {
font-family: 'Courier New', monospace;
color: #1976d2;
font-weight: bold;
}
.route-table .asn-col {
font-family: 'Courier New', monospace;
color: #4CAF50;
}
.route-table .path-col {
font-family: 'Courier New', monospace;
color: #333;
font-size: 12px;
}
.as-path-link {
color: #2196F3;
text-decoration: none;
font-weight: bold;
cursor: pointer;
display: inline-block;
padding: 4px 8px;
background: rgba(33, 150, 243, 0.1);
border-radius: 4px;
transition: all 0.2s ease;
}
.as-path-link:hover {
background: rgba(33, 150, 243, 0.2);
text-decoration: underline;
}
.peer-badge {
display: inline-block;
padding: 4px 8px;
background: #e3f2fd;
color: #1976d2;
border-radius: 4px;
font-size: 11px;
font-weight: bold;
margin-left: 5px;
}
.community-tag {
display: inline-block;
padding: 3px 8px;
background: #fff3e0;
color: #e65100;
border-radius: 3px;
font-size: 11px;
font-family: 'Courier New', monospace;
margin: 2px;
}
#asPathViz {
width: 100%;
height: 600px;
border: 1px solid #e0e0e0;
border-radius: 6px;
background: #fafafa;
margin-top: 20px;
}
.as-node {
cursor: pointer;
}
.as-node circle {
stroke: white;
stroke-width: 3px;
transition: all 0.3s ease;
}
.as-node.origin circle {
fill: #4CAF50;
}
.as-node.transit circle {
fill: #667eea;
}
.as-node.peer circle {
fill: #FF9800;
}
.as-node:hover circle {
stroke-width: 5px;
filter: brightness(1.2);
}
.as-node text {
font-size: 12px;
font-weight: bold;
fill: white;
pointer-events: none;
text-anchor: middle;
dominant-baseline: central;
}
.as-link {
fill: none;
stroke: #999;
stroke-width: 2px;
stroke-opacity: 0.6;
marker-end: url(#arrowhead);
}
.as-link.highlight {
stroke: #4CAF50;
stroke-width: 4px;
stroke-opacity: 1;
}
.tooltip {
position: absolute;
background: rgba(0, 0, 0, 0.9);
color: white;
padding: 12px 16px;
border-radius: 6px;
font-size: 13px;
pointer-events: none;
z-index: 10000;
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
max-width: 350px;
display: none;
}
.tooltip .tooltip-asn {
font-size: 18px;
font-weight: bold;
color: #4CAF50;
margin-bottom: 8px;
}
.tooltip .tooltip-row {
margin: 4px 0;
}
.tooltip .tooltip-label {
color: #aaa;
font-weight: bold;
}
.tooltip .tooltip-value {
color: white;
}
.viz-controls {
margin-top: 15px;
padding: 15px;
background: white;
border-radius: 6px;
display: flex;
gap: 10px;
flex-wrap: wrap;
align-items: center;
}
.viz-controls label {
font-weight: bold;
color: #333;
margin-right: 5px;
}
.viz-controls button {
padding: 8px 16px;
background: #667eea;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
transition: all 0.2s ease;
}
.viz-controls button:hover {
background: #764ba2;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
margin-bottom: 20px;
}
.stat-card {
background: white;
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
text-align: center;
border-top: 3px solid #4CAF50;
}
.stat-card .stat-value {
font-size: 32px;
font-weight: bold;
color: #667eea;
margin-bottom: 5px;
}
.stat-card .stat-label {
font-size: 14px;
color: #666;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.export-section {
margin-top: 15px;
padding: 15px;
background: rgba(102, 126, 234, 0.05);
border-radius: 6px;
}
.export-btn {
display: inline-block;
padding: 10px 20px;
background: #667eea;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
margin-right: 10px;
transition: all 0.2s ease;
text-decoration: none;
}
.export-btn:hover {
background: #764ba2;
transform: translateY(-1px);
}
.legend {
margin-top: 15px;
padding: 15px;
background: white;
border-radius: 6px;
border: 1px solid #e0e0e0;
}
.legend h4 {
margin: 0 0 10px 0;
color: #333;
font-size: 14px;
}
.legend-item {
display: flex;
align-items: center;
gap: 10px;
margin: 8px 0;
font-size: 13px;
}
.legend-color {
width: 20px;
height: 20px;
border-radius: 50%;
border: 2px solid white;
box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
}
.legend-color.origin { background: #4CAF50; }
.legend-color.transit { background: #667eea; }
.legend-color.peer { background: #FF9800; }
.info-box {
margin-top: 20px;
padding: 15px 20px;
background: white;
border-radius: 8px;
border-top: 3px solid #4CAF50;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
font-size: 14px;
color: #666;
}
.info-box strong {
color: #333;
}
@media (max-width: 768px) {
.input-group {
flex-direction: column;
}
#searchBtn {
width: 100%;
}
.stats-grid {
grid-template-columns: 1fr 1fr;
}
.route-table {
font-size: 11px;
}
.route-table th,
.route-table td {
padding: 8px;
}
#asPathViz {
height: 400px;
}
}
Awalan
Asal AS
SEBAGAI Jalur
Lompatan Berikutnya
Teman sejawat
Komunitas
Ekspor Data:
Unduh JSON
Unduh CSV
Tata Letak:
Diarahkan secara Paksa
Hierarki
Setel Ulang Zoom
Jenis Node
Asal AS (mengumumkan awalan)
Transit AS (hop menengah)
Rekan AS (pengumpul rute)
Informasi Basis Data:
Sumber Data: RIPE RIS (Layanan Informasi Perutean) •Cakupan: Data perutean BGP global dari beberapa pengumpul rute •Frekuensi Pembaruan: Waktu nyata dari RIS Live API •Pribadi: Semua pencarian dilakukan di sisi klien
Catatan: Alat ini menggunakan file data hierarki yang disimpan di /data/bgp-routes/ untuk pencarian yang efisien.
Data di-cache di sisi klien untuk meningkatkan kinerja.