free5GC stage1 のDBをクエリする

free5GC stage1 を用いてSubscriberを登録し、その情報を保持するMongoDBにクエリを行い、情報を確認します。

Subscriberの情報

| |Suscriber1 |Subscriber2 | | ---- | ---- |---- | IMSI | 208930100001111 | 208930100001112 | Subscriber Key(Ki) | 8baf473f2f8fd09487cccbd7097c6862 | 8baf473f2f8fd09487cccbd7097c6862 | Operator Key(OPc) | e734f8734007d6c5ce7a0508809e7e9c | e734f8734007d6c5ce7a0508809e7e9c | USIM Type | OPc | OPc | APN | internet | internet |

MongoDBにアクセスし、クエリを行う

$ mongo
switched to db free5gc
> show collections
accounts
sessions
subscribers
> db.subscribers.find() 
{ "_id" : ObjectId("5fd6a7a7f3ea3d009b16d045"), "imsi" : "208930100001111", "pdn" : [ { "apn" : "internet", "_id" : ObjectId("5fd6a7a7f3ea3d009b16d046"), "pcc_rule" : [ ], "qos" : { "qci" : 9, "arp" : { "priority_level" : 8, "pre_emption_vulnerability" : 1, "pre_emption_capability" : 1 } }, "type" : 2 } ], "ambr" : { "downlink" : NumberLong(1024000), "uplink" : NumberLong(1024000) }, "subscribed_rau_tau_timer" : 12, "network_access_mode" : 2, "subscriber_status" : 0, "access_restriction_data" : 32, "security" : { "k" : "8baf473f2f8fd09487cccbd7097c6862", "amf" : "8000", "op" : null, "opc" : "e734f8734007d6c5ce7a0508809e7e9c" }, "__v" : 0 }
{ "_id" : ObjectId("5fd6a7b5f3ea3d009b16d047"), "imsi" : "208930100001112", "pdn" : [ { "apn" : "internet", "_id" : ObjectId("5fd6a7b5f3ea3d009b16d048"), "pcc_rule" : [ ], "qos" : { "qci" : 9, "arp" : { "priority_level" : 8, "pre_emption_vulnerability" : 1, "pre_emption_capability" : 1 } }, "type" : 2 } ], "ambr" : { "downlink" : NumberLong(1024000), "uplink" : NumberLong(1024000) }, "subscribed_rau_tau_timer" : 12, "network_access_mode" : 2, "subscriber_status" : 0, "access_restriction_data" : 32, "security" : { "k" : "8baf473f2f8fd09487cccbd7097c6862", "amf" : "8000", "op" : null, "opc" : "e734f8734007d6c5ce7a0508809e7e9c" }, "__v" : 0 }