# 4G LTE Attach Sample - Hosts File
# Source: Community LTE Project PCAP Library
#
# Format:
#   IP hostname          - Standard /etc/hosts format
#   IP:port hostname     - VisualEther extension for port-specific mapping
#
# Naming Convention: Entity.Domain (hierarchical dot notation)
#   - EPC: Evolved Packet Core elements
#   - IMS: IP Multimedia Subsystem elements
#   - RAN: Radio Access Network elements
#   - Term: Terminal/User Equipment
#
# Network Architecture:
#   All core network components (HSS, MME, SGW, PGW, PCRF, P-CSCF) run on
#   loopback interface (127.0.0.x) on a single machine.
#   eNB connects via external IP endpoints.
#
# PCAP Coverage:
#   0_nouserinfo.pcap  - Attach rejection (no HSS subscriber)
#   1_wrongkey.pcap    - Auth failure (wrong credentials)
#   2_firstattach.pcap - Successful first attach
#   3_reattach.pcap    - Reattachment with data (HTTP/DNS)
#   4_sip.pcap         - IMS/VoLTE with SIP registration
#
# Note: Use --axis port since core components share loopback interface

# EPC Domain - Diameter Servers (SCTP port 3868)
127.0.0.2       🔐 HSS.EPC         # Home Subscriber Server (hss.localdomain, S6a)
127.0.0.3       🌐 PGW.EPC         # PDN Gateway (pgw.localdomain, Gx server)
127.0.0.4       🔐 HSS.EPC         # HSS Diameter endpoint (hss.localdomain responses)
127.0.0.5       💰 PCRF.EPC        # Policy and Charging Rules Function (pcrf.localdomain)

# EPC Domain - Diameter Clients on 127.0.0.1 (ephemeral ports, sample-specific)
# These ports are derived from Origin-Host in Diameter messages
127.0.0.1:35689 🌐 PGW.EPC         # PGW Gx client (pgw.localdomain -> PCRF)
127.0.0.1:36237 📍 MME.EPC         # MME S6a client (mme.localdomain -> HSS)
127.0.0.1:36311 📍 MME.EPC         # MME S6a client
127.0.0.1:38177 📍 MME.EPC         # MME S6a client
127.0.0.1:46129 📍 MME.EPC         # MME S6a client
127.0.0.1:45494 💰 PCRF.EPC        # PCRF Gx client (pcrf.localdomain -> PGW)
127.0.0.1:51688 💰 PCRF.EPC        # PCRF Gx client

# EPC Domain - GTPv2 Control Plane (UDP port 2123)
127.0.0.10      📍 MME.EPC         # Mobility Management Entity (mme.localdomain, S11)

# IMS Domain - SIP Signaling (used in 4_sip.pcap)
# 127.0.0.4 also serves as P-CSCF for SIP - context determines role

# RAN Domain - S1 Interface
10.201.150.41   📡 eNB.RAN         # eNodeB (srsenb01, S1-MME control plane)
10.90.10.1      🚪 SGW-S1U.EPC     # SGW S1-U User Plane transport address

# Terminal Domain - UE Assigned IP Addresses
10.201.100.2    📱 UE.Term         # UE IP for internet APN (all successful attaches)
10.201.100.3    📱 UE-IMS.Term     # UE IP for IMS APN (4_sip.pcap VoLTE PDN)
