产品
有人云 — 物联网云平台 零编程,组态拖拽即可实现远程监控。同时支持私有部署,拥有属于自己的软硬件一体化方案
200
+
私有云项目
数据本地化
业务个性化
10
+
万 公有云注册用户
80%公有云功能免费
付费VIP享自定义品牌服务
有人云官网
有人智造 — ODM/EMS 依托自动化、智能化、柔性化、透明化的智能工厂,
提供代研、代料、代工一站式OEM/ODM服务
有人智造官网
有人智能 — 解决方案 打包提供云、管、边、端整体解决方案
从问题诊断、方案设计,到实施落地、系统运维
有人智能官网
新闻资讯
4G模块通信流过滤器/分类器 +CGTFT
2017-06-12


  4G模块通信流过滤器/分类器 +CGTFT

 

  语法结构

命 令 响 应

+CGTFT=[<cid>, [<packet filter identifier>, <evaluation precedence index> [,<source address and subnet mask> [,<protocol number (ipv4) / next header (ipv6)> [,<destination port range> [,<source port range> [,<ipsec security parameter index (spi)> [,<type of service (tos) (ipv4) and mask / traffic class (ipv6) and mask> [,<flow label (ipv6)> [,<direction>]]]]]]]]]]

OK

+CME ERROR :<err>

+CGTFT?

+CGTFT: <cid>, <packet filter identifier>, <evaluation precedence index>, <source address and subnet mask>, <protocol number (ipv4) / next header (ipv6)>, <destination port range>, <source port range>, <ipsec security parameter index (spi)>, <type of service (tos) (ipv4) and mask / traffic class (ipv6) and mask>, <flow label (ipv6)>[, <direction>] 

[<CR><LF>+CGTFT: <cid>, <packet filter identifier>, <evaluation precedence index>, <source address and subnet mask>, <protocol number (ipv4) / next header (ipv6)>, <destination port range>, <source port range>, <ipsec security parameter index (spi)>, <type of service (tos) (ipv4) and mask / traffic class (ipv6) and mask>, <flow label (ipv6)> [,<direction>[…]]]

+CGTFT=?

+CGTFT: <PDP_type>, (list of supported <packet filter identifier>s), (list of supported <evaluation precedence index>s), (list of supported <source address and subnet mask>s), (list of supported <protocol number (ipv4) / next header (ipv6)>s), (list of supported <destination port range>s), (list of supported <source port range>s), (list of supported <ipsec security parameter index (spi)>s), (list of supported <type of service (tos) (ipv4) and mask / traffic class (ipv6) and mask>s), (list of supported <flow label (ipv6)>s) 

[<CR><LF>+CGTFT: <PDP_type>, (list of supported <packet filter identifier>s), (list of supported <evaluation precedence index>s), (list of supported <source address and subnet mask>s), (list of supported <protocol number (ipv4) / next header (ipv6)>s), (list of supported <destination port range>s), (list of supported <source port range>s), (list of supported <ipsec security parameter index (spi)>s), (list of supported <type of service (tos) (ipv4) and mask / traffic class (ipv6) and mask>s), (list of supported <flow label (ipv6)>s)

[…]]

 

  命令描述

  设置命令,在标识的TFT中添加一个分类器。特殊命令+CGTFT=使TFT中的所有分类器变为未定义。

 

  取值说明

  <cid>:和PDP上下文相关联的标号。

  <packet filter identifier>:数据包过滤器/分类器的标号,取值为1-8。

  <evaluation precedence index>:过滤器/分类器优先级,取值为0-255。

  <source address and subnet mask>:源地址和子网掩码。

  IPv4 ‘a1.a2.a3.a4.m1.m2.m3.m4’ IPv6 ‘a1.a2.a3.a4.a5.a6.a7.a8.a9.a10.a11.a12.a13.a14.a15.a16. m1.m2.m3.m4.m5.m6.m7.m8.m9.m10.m11.m12.m13.m14.m15.m16‘ 文件名称:MZ382 AT 指令集

  <protocol number (ipv4) / next header (ipv6)>:IPv4协议号或者IPv6 Next Header value,取值0-255。

  <destination port range>:目的端口号,0-65535,形式为f.t。

  <source port range>:源端口号,0-65535,形式为f.t。

  <ipsec security parameter index (spi)>:ipsec 完全参数索引,00000000-FFFFFFFF

  <type of service (tos) (ipv4) and mask / traffic class (ipv6) and mask>:IPv4 TOS字段、IPv6 TC字段以及掩码,取值为0-255,形式为t.m。

  <flow label (ipv6)>:IPv6中的流标签,00000-FFFFF。

  <direction>:代表过滤器应用的传输方向。

bit 含 义
0 Pre-Release 7 TFT filter (see 3GPP TS 24.008 [8], table 10.5.162)
1 上行
2 下行
3 双向 (上行和下行)

 

  典型示例

  请求:AT+CGTFT=1,1,0,"1.1.1.1.1.1.1.1",0,"1.1","1.1",00000000,"1.1",00000<CR>

  响应:<CR><LF>OK<CR><LF>


关注有人微信公众号
了解更多信息