Commit 5f72c1f8 authored by yangjian's avatar yangjian

update spgw-u v1.5.0

parent 880b86f3
#!/bin/bash
docker-compose -f docker-mysql.yml down -t 0
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- 主机: 172.11.200.10:3306
-- 生成日期: 2024-01-09 03:44:32
-- 服务器版本: 5.7.38
-- PHP 版本: 8.0.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- 数据库: `Witcomm-DB`
--
drop database if exists `Witcomm-DB`;
CREATE DATABASE `Witcomm-DB`;
USE `Witcomm-DB`;
-- --------------------------------------------------------
--
-- 表的结构 `users`
--
CREATE TABLE `users` (
`imsi` varchar(15) NOT NULL COMMENT 'IMSI is the main reference key.',
`msisdn` varchar(46) DEFAULT NULL COMMENT 'The basic MSISDN of the UE (Presence of MSISDN is optional).',
`imei` varchar(15) DEFAULT NULL COMMENT 'International Mobile Equipment Identity',
`imei_sv` varchar(2) DEFAULT NULL COMMENT 'International Mobile Equipment Identity Software Version Number',
`ms_ps_status` enum('PURGED','NOT_PURGED') DEFAULT 'PURGED' COMMENT 'Indicates that ESM and EMM status are purged from MME',
`rau_tau_timer` int(10) UNSIGNED DEFAULT '120',
`ue_ambr_ul` bigint(20) UNSIGNED DEFAULT '50000000' COMMENT 'The Maximum Aggregated uplink MBRs to be shared across all Non-GBR bearers according to the subscription of the user.',
`ue_ambr_dl` bigint(20) UNSIGNED DEFAULT '100000000' COMMENT 'The Maximum Aggregated downlink MBRs to be shared across all Non-GBR bearers according to the subscription of the user.',
`access_restriction` int(10) UNSIGNED DEFAULT '60' COMMENT 'Indicates the access restriction subscription information. 3GPP TS.29272 #7.3.31',
`mme_cap` int(10) UNSIGNED ZEROFILL DEFAULT NULL COMMENT 'Indicates the capabilities of the MME with respect to core functionality e.g. regional access restrictions.',
`mmeidentity_idmmeidentity` int(11) NOT NULL DEFAULT '0',
`key` varbinary(16) NOT NULL DEFAULT '0' COMMENT 'UE security key',
`RFSP-Index` smallint(5) UNSIGNED NOT NULL DEFAULT '1' COMMENT 'An index to specific RRM configuration in the E-UTRAN. Possible values from 1 to 256',
`urrp_mme` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'UE Reachability Request Parameter indicating that UE activity notification from MME has been requested by the HSS.',
`sqn` bigint(20) UNSIGNED ZEROFILL NOT NULL,
`rand` varbinary(16) NOT NULL,
`OPc` varbinary(16) DEFAULT NULL COMMENT 'Can be computed by HSS'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- 转存表中的数据 `users`
--
INSERT INTO `users` (`imsi`, `msisdn`, `imei`, `imei_sv`, `ms_ps_status`, `rau_tau_timer`, `ue_ambr_ul`, `ue_ambr_dl`, `access_restriction`, `mme_cap`, `mmeidentity_idmmeidentity`, `key`, `RFSP-Index`, `urrp_mme`, `sqn`, `rand`, `OPc`) VALUES
('466920000000001', '380561234567', '35609204079300', NULL, 'PURGED', 50, 40000000, 100000000, 47, 0000000000, 1, 0x00112233445566778899aabbccddeeff, 1, 0, 00000000000001550139, 0x35215621f8a9ee756789fe6cc20a2366, 0x000102030405060708090a0b0c0d0e0f);
--
-- 转储表的索引
--
--
-- 表的索引 `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`imsi`,`mmeidentity_idmmeidentity`),
ADD KEY `fk_users_mmeidentity_idx1` (`mmeidentity_idmmeidentity`);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
FLUSH PRIVILEGES;
[mysqld]
character-set-server=utf8mb4
default-time-zone='+8:00'
innodb_rollback_on_timeout='ON'
max_connections=500
innodb_lock_wait_timeout=500
version: '3.3' version: '3.3'
services: services:
amf: openxg-amf:
image: openxgmaster/amf:v1.0 image: openxgmaster/amf:v1.0
container_name: amf container_name: amf
restart: always restart: always
...@@ -13,9 +13,6 @@ services: ...@@ -13,9 +13,6 @@ services:
aliases: aliases:
- web_amf - web_amf
ipv4_address: 172.11.200.14 ipv4_address: 172.11.200.14
# ports:
#- "8282:8282"
# - "38412:38412/sctp"
command: command:
- /bin/bash - /bin/bash
- -c - -c
...@@ -25,7 +22,7 @@ services: ...@@ -25,7 +22,7 @@ services:
volumes: volumes:
- ../etc/amf.conf:/opt/5gc/amf/external.conf - ../etc/amf.conf:/opt/5gc/amf/external.conf
smf: openxg-smf:
image: openxgmaster/smf:v1.0 image: openxgmaster/smf:v1.0
container_name: smf container_name: smf
restart: always restart: always
...@@ -38,36 +35,34 @@ services: ...@@ -38,36 +35,34 @@ services:
aliases: aliases:
- web_smf - web_smf
ipv4_address: 172.11.200.15 ipv4_address: 172.11.200.15
# ports:
# - "8889:8889"
# - "8805:8805/udp"
volumes: volumes:
- ../etc/smf.conf:/opt/5gc/smf/external.conf - ../etc/smf.conf:/opt/5gc/smf/external.conf
spgwu: openxg-spgwu:
image: openxgmaster/spgwu:v1.0 container_name: "spgwu"
container_name: spgwu image: openxg5gc/openxg-upf:v1.5.0
depends_on: privileged: true
- smf stdin_open: true
restart: always tty: true
privileged: true logging:
logging: driver: "json-file"
driver: "json-file" options:
options: max-size: "1m"
max-size: "100m" networks:
networks: openxg:
openxg: ipv4_address: 172.11.200.25
aliases: environment:
- spgwu - UPF_LOG_LEVEL=debug # Which to use debug/trace/info/warning/error/critical/off
ipv4_address: 172.11.200.25 - SMF_N4_ADDR=172.11.200.15
# ports: - PDN_NETWORK_IPV4=192.169.0.0/16
#- "2152:2152/udp" # rate-limiting
#- "8805:8805" - IS_BANDWIDTH_LIMIT=no
volumes: - MAX_BANDWIDTH=20mbit
- ../etc/spgw_u.conf:/opt/5gc/spgw-u-tiny/external.conf - IUPF_BANDWIDTH=10mbit
- DEFAULT_BANDWIDTH=5mbit
networks: networks:
openxg: openxg:
external: name: docker-openxg
name: docker-openxg external: true
version: '3.3' version: '3.3'
services: services:
amf: openxg-amf:
image: openxgmaster/amf:v1.0 image: openxgmaster/amf:v1.0
container_name: amf container_name: amf
restart: always restart: always
...@@ -14,7 +14,6 @@ services: ...@@ -14,7 +14,6 @@ services:
- web_amf - web_amf
ipv4_address: 172.11.200.14 ipv4_address: 172.11.200.14
ports: ports:
- "8282:8282"
- "38412:38412/sctp" - "38412:38412/sctp"
command: command:
- /bin/bash - /bin/bash
...@@ -25,7 +24,7 @@ services: ...@@ -25,7 +24,7 @@ services:
volumes: volumes:
- ../etc/amf.conf:/opt/5gc/amf/external.conf - ../etc/amf.conf:/opt/5gc/amf/external.conf
smf: openxg-smf:
image: openxgmaster/smf:v1.0 image: openxgmaster/smf:v1.0
container_name: smf container_name: smf
restart: always restart: always
...@@ -38,36 +37,36 @@ services: ...@@ -38,36 +37,36 @@ services:
aliases: aliases:
- web_smf - web_smf
ipv4_address: 172.11.200.15 ipv4_address: 172.11.200.15
ports:
- "8889:8889"
# - "8805:8805/udp"
volumes: volumes:
- ../etc/smf.conf:/opt/5gc/smf/external.conf - ../etc/smf.conf:/opt/5gc/smf/external.conf
spgwu: openxg-spgwu:
image: openxgmaster/spgwu:v1.0 container_name: "spgwu"
container_name: spgwu image: openxg5gc/openxg-upf:v1.5.0
depends_on: privileged: true
- smf stdin_open: true
restart: always tty: true
privileged: true logging:
logging: driver: "json-file"
driver: "json-file" options:
options: max-size: "1m"
max-size: "100m" networks:
networks: openxg:
openxg: ipv4_address: 172.11.200.25
aliases: ports:
- spgwu - "2152:2152/udp"
ipv4_address: 172.11.200.25 environment:
ports: - UPF_LOG_LEVEL=debug # Which to use debug/trace/info/warning/error/critical/off
- "2152:2152/udp" - SMF_N4_ADDR=172.11.200.15
- "8805:8805" - PDN_NETWORK_IPV4=192.169.0.0/16
volumes: # rate-limiting
- ../etc/spgw_u.conf:/opt/5gc/spgw-u-tiny/external.conf - IS_BANDWIDTH_LIMIT=no
- MAX_BANDWIDTH=20mbit
- IUPF_BANDWIDTH=10mbit
- DEFAULT_BANDWIDTH=5mbit
networks: networks:
openxg: openxg:
external: name: docker-openxg
name: docker-openxg external: true
...@@ -14,10 +14,16 @@ services: ...@@ -14,10 +14,16 @@ services:
- web_mysql - web_mysql
ipv4_address: 172.11.200.10 ipv4_address: 172.11.200.10
ports: ports:
- "3307:3306" - "3309:3306"
- "33070:33060" - "33090:33060"
volumes: volumes:
- ../docker-mysql/:/var/lib/mysql - ./database/docker-compose-mysqlData/:/var/lib/mysql
- ./database/my.conf:/etc/mysql/conf.d/my.conf
- ./database/create_db_sql.sql:/docker-entrypoint-initdb.d/create_db_sql.sql
- ./database/grant_root_remote.sql:/docker-entrypoint-initdb.d/grant_root_remote.sql
- /etc/timezone:/etc/timezone
- /etc/localtime:/etc/localtime
environment: environment:
MYSQL_ROOT_PASSWORD: root MYSQL_ROOT_PASSWORD: root
...@@ -38,12 +44,19 @@ services: ...@@ -38,12 +44,19 @@ services:
ipv4_address: 172.11.200.9 ipv4_address: 172.11.200.9
ports: ports:
- "8080:80" - "8080:80"
volumes:
- /etc/timezone:/etc/timezone
- /etc/localtime:/etc/localtime
environment: environment:
PMA_HOST: 172.11.200.10 PMA_HOST: 172.11.200.10
PMA_PORT: 3306 PMA_PORT: 3306
networks: networks:
openxg: openxg:
external: driver: bridge
name: docker-openxg name: docker-openxg
ipam:
config:
- subnet: 172.11.200.0/24
driver_opts:
com.docker.network.bridge.name: "docker-openxg"
#!/bin/bash
docker-compose -f docker-mysql.yml up -d
#!/bin/bash
docker-compose -f docker-3-local.yml up -d
#!/bin/bash
docker-compose -f docker-3-local.yml down -t 0
default-character-set=utf8
default-collation=utf8_general_ci
[auto]
server-uuid=6898531c-d6cf-11ea-9944-000c29b11887
14,2
14,0
241,2
241,0
0,278
240,2
240,0
81,1
81,3
68,4
73,1
73,3
72,4
74,1
74,3
0,9
83,4
79,2
203,2
201,2
198,2
197,2
195,2
0,480
0,410
71,1
71,3
396,52
396,51
396,50
396,49
396,48
396,47
396,46
396,45
396,44
396,43
396,42
396,41
396,40
396,39
396,38
396,37
396,36
66,4
195,1
195,3
69,1
69,3
70,1
70,3
67,1
67,3
65,1
65,3
396,35
66,1
66,3
68,1
68,3
14,5
13,1
13,3
358,3
358,2
358,1
358,0
357,3
357,2
357,1
357,0
356,3
356,2
356,1
356,0
355,3
355,2
355,1
355,0
354,3
354,2
354,1
354,0
353,3
353,2
353,1
353,0
352,4
352,3
352,2
352,1
352,0
351,16
351,15
351,14
351,13
351,12
351,11
351,10
351,9
351,8
351,7
351,6
351,5
351,4
351,3
351,2
351,1
351,0
350,8
350,7
350,6
350,5
350,4
350,3
350,2
350,1
350,0
349,5
349,4
349,3
349,2
349,1
349,0
348,91
348,90
348,1
localhost performance_schema mysql.session localhost sys mysql.sys localhost phpmyadmin phpmyadmin 
\ No newline at end of file
default-character-set=latin1
default-collation=latin1_swedish_ci
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment