首页 > 幸运飞艇 > 应用笔记

幸运飞艇

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>

发表评论

*为必须填写项
  • (您的个人信息将被保密)