WO2015100869A1 - Method and apparatus for indentifying type of nat environment - Google Patents

Method and apparatus for indentifying type of nat environment Download PDF

Info

Publication number
WO2015100869A1
WO2015100869A1 PCT/CN2014/074865 CN2014074865W WO2015100869A1 WO 2015100869 A1 WO2015100869 A1 WO 2015100869A1 CN 2014074865 W CN2014074865 W CN 2014074865W WO 2015100869 A1 WO2015100869 A1 WO 2015100869A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
environment type
nat environment
application layer
nat
Prior art date
Application number
PCT/CN2014/074865
Other languages
French (fr)
Chinese (zh)
Inventor
邓钱亮
刘峥
范长博
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015100869A1 publication Critical patent/WO2015100869A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/256NAT traversal
    • H04L61/2575NAT traversal using address mapping retrieval, e.g. simple traversal of user datagram protocol through session traversal utilities for NAT [STUN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • H04L65/403Arrangements for multi-party communication, e.g. for conferences

Abstract

Disclosed are a method and an apparatus for indentifying the type of a network address translation (NAT) environment. The method comprises: a multipoint control unit (MCU) obtaining and storing information about the type of an NAT environment where a terminal is located from an applicant layer message, the applicant layer message being sent by the first terminal querying in a sub-network segment for the type of the NAT environment of the terminal; and when the terminal receives a second application layer message that is sent by another terminal located in a same sub-network segment of the terminal and is used for querying the type of an NAT environment whether another terminal is located, the MCU feeding back the saved NAT environment type information to another terminal.

Description

NAT环境类型识别方法及装置 技术领域  NAT environment type identification method and device
本发明涉及计算机技术领域, 特别是涉及一种 NAT环境类型识别方法 及装置。 背景技术  The present invention relates to the field of computer technologies, and in particular, to a NAT environment type identification method and apparatus. Background technique
随着因特网技术的飞速发展, 使得世界上每一台拥有合法网络协议 ( Internet Protocol, 简称为 IP )地址的主机都能共享使用海量的网络资源。 网络的迅猛发展, 也同时极大的刺激了智能型设备与视音频信息终端对合 法 IP地址的强烈需求。由于当前 IP地址发展现状是难以在短时间内用 ipv6 取代 ipv4, 并且 ipv4的发展基础也非常坚固, 大部分的网络设备还是仍然 在使用 ipv4, 所以针对日益殆尽的公网合法 ipv4地址的有效利用也极具意 义。作为非常成功的一项技术,网络地址转换 ( Network Address Translation, 简称为 NAT )能把内部私有网络地址转换成合法的公网 IP地址, 以最大程 度的使用宝贵的 ipv4地址。 NAT设备的类型主要包含以下几种: 完全圓锥 型 ( Full cone ) NAT、 地址限制圓锥型 ( Address Restricted cone ) NAT、 端 口限制圓锥型( Port Restricted cone ) NAT, 以及对称型( Symmetric ) NAT。  With the rapid development of Internet technology, every host in the world with a legitimate Internet Protocol (IP) address can share a large amount of network resources. The rapid development of the network has also greatly stimulated the strong demand for smart IP addresses from smart devices and video and audio information terminals. Due to the current development of IP address, it is difficult to replace ipv4 with ipv6 in a short time, and the development foundation of ipv4 is also very strong. Most network devices still use ipv4, so it is effective for the increasingly effective public network ipv4 address. The use is also very meaningful. As a very successful technology, Network Address Translation (NAT) can translate internal private network addresses into legitimate public IP addresses to maximize the use of valuable ipv4 addresses. The types of NAT devices mainly include the following: Full cone NAT, Address Restricted cone NAT, Port Restricted cone NAT, and Symmetric NAT.
对 NAT设备类型的检测、识别目前主要釆用的是征求修正意见书 3489 ( equest For Comments 3489, 简称为 RFC3489 ) 中 NAT 的 UDP简单穿 越( Simple Traversal of UDP over NATs, 简称为 STUN )方法, 它允许位于 NAT (或多重 NAT )后的主机(Client )查找出自己的公网 IP地址, 查找 出自己位于哪种类型的 NAT。  The detection and identification of NAT device types is mainly based on the Simple Traversal of UDP over NATs (STUN) method in the Request for Amendment 3489 (equest For Comments 3489, RFC3489 for short). Allow the host (Client) behind the NAT (or multiple NAT) to find its own public IP address and find out which type of NAT it is.
针对会议电视终端的布局特性, 参会的单个会场中的终端绝大多数都 会属于同一个网段或者处于同一个 NAT设备之后, 即所有该会场的单个终 端均由该 NAT设备转发数据到公网中。在使用传统的 STU 方法进行 NAT 类型识别时, 每个 Client均要向外部 STUN服务器进行多次用户数据包协 议( User Datagram Protocol, 简称为 UDP )数据 ^艮的交互才能确定该 Client 所处在的 NAT环境为何种类型。因此,处于同一子网段中终端逐一向 STUN 服务器交互非常的繁瑣, 并且效率低下。 发明内容 For the layout features of the conference TV terminal, most of the terminals in a single site will belong to the same network segment or be behind the same NAT device, that is, the single terminal of all the sites. The NAT device forwards data to the public network. When using the traditional STU method for NAT type identification, each client must perform multiple User Datagram Protocol (UDP) data interactions to the external STUN server to determine the location of the client. What type of NAT environment is. Therefore, it is very cumbersome and inefficient for the terminal to interact with the STUN server one by one in the same subnet segment. Summary of the invention
为解决现有存在的技术问题, 本发明实施例提出了一种 NAT环境类型 识别方法及装置。  In order to solve the existing technical problems, the embodiment of the present invention provides a NAT environment type identification method and device.
本发明实施例提供一种 NAT环境类型识别方法, 包括: 多点控制单元 MCU从某子网网段中第一个向其查询 NAT环境类型的终端所发送的第一 应用层消息中获取并保存该终端所处的 NAT环境类型信息; MCU在接收 到与终端处于相同子网网段的其他终端发送的请求查询其所处的 NAT环境 类型的第二应用层消息时, 向其他终端反馈保存的 NAT环境类型信息。  An embodiment of the present invention provides a NAT environment type identification method, including: a multi-point control unit MCU acquires and saves a first application layer message sent by a terminal in a subnet network segment to a terminal that queries a NAT environment type. The NAT environment type information of the terminal; when receiving the second application layer message of the NAT environment type in which the terminal is in the same subnet segment as the terminal, the MCU feeds back the saved information to the other terminal. NAT environment type information.
优选地, NAT环境类型信息包括: 终端所处的子网网段、 终端所在的 会场信息、 以及相应的 NAT环境类型。  Preferably, the NAT environment type information includes: a subnet network segment where the terminal is located, site information where the terminal is located, and a corresponding NAT environment type.
优选地, 第一应用层消息中的 NAT环境类型信息是由终端向 NAT 的 用户数据包协议 UDP简单穿越 STUN服务器查询获取的。  Preferably, the NAT environment type information in the first application layer message is obtained by the terminal to the NAT user data packet protocol UDP simply traversing the STUN server query.
优选地, 多点控制单元 MCU从某子网网段中第一个向其查询 NAT环 境类型的终端所发送的第一应用层消息中获取并保存该终端所处的 NAT环 境类型信息具体包括: MCU接收终端发送的应用层查询消息, 并获取应用 层查询消息中携带的终端所处的子网网段和会场信息; MCU根据预先存储 的匹配列表判断是否存在与应用层查询消息中的子网网段和会场信息相对 应的 NAT 环境类型, 其中, 匹配列表为子网网段、 会场信息、 以及 NAT 环境类型之间的对应关系表; MCU在确定不存在与应用层查询消息中的子 网网段和会场信息相对应的 NAT环境类型时, 确定终端为该子网网段中第 一个向其查询 NAT环境类型的终端, 则将应用层查询消息中的子网网段和 会场信息保存在匹配列表中, 并将相应的 NAT环境类型置空; MCU向终 端反馈查询响应消息,其中,查询响应消息中携带有终端所处的子网网段、 会场信息、 以及置空的 NAT环境类型; MCU获取终端发送的第一应用层 消息, 获取第一应用层消息携带的终端所处的子网网段、 会场信息、 以及 相应的 NAT环境类型; MCU根据第一应用层消息更新匹配列表。 Preferably, the multi-point control unit MCU obtains and saves the NAT environment type information of the terminal from the first application layer message sent by the terminal in the subnet network segment to the terminal that queries the NAT environment type. The MCU receives the application layer query message sent by the terminal, and obtains the subnet network segment and the site information of the terminal carried in the application layer query message. The MCU determines whether there is a subnet in the application layer query message according to the pre-stored matching list. The NAT environment type corresponding to the network segment and the site information. The matching list is the mapping table between the subnet network segment, the site information, and the NAT environment type. The MCU determines that there is no subnet in the application layer query message. When the network segment and the site information correspond to the NAT environment type, determine that the terminal is the first in the subnet segment. A terminal that queries the NAT environment type, saves the subnet network segment and the site information in the application layer query message in the matching list, and sets the corresponding NAT environment type to be empty; the MCU feeds back the query response message to the terminal, where The query response message carries the subnet segment where the terminal is located, the site information, and the type of the NAT environment that is blanked. The MCU obtains the first application layer message sent by the terminal, and obtains the location of the terminal carried by the first application layer message. The subnet network segment, the site information, and the corresponding NAT environment type; the MCU updates the matching list according to the first application layer message.
优选地, MCU在接收到与终端处于相同子网网段的其他终端发送的请 求查询其所处的 NAT环境类型的第二应用层消息时, 向其他终端反馈保存 的 NAT环境类型信息具体包括: MCU在接收到与终端处于相同子网网段 的其他终端发送的请求查询其所处的 NAT环境类型的第二应用层消息时, 根据预先存储的匹配列表确定存在与第二应用层消息中携带的子网网段和 会场信息相对应的 NAT环境类型时, 则向其他终端反馈查询响应消息, 其 中, 查询响应消息中携带有该终端所处的子网网段、 会场信息、 以及相应 的 NAT环境类型。  Preferably, when the MCU receives the second application layer message of the NAT environment type in which the terminal is in the same subnet network segment as the request, the MCU feeds back the saved NAT environment type information to the other terminal, including: When receiving the second application layer message of the NAT environment type in which the terminal is in the same subnet segment as the terminal, the MCU determines to be carried in the second application layer message according to the pre-stored matching list. When the subnet network segment and the site environment type corresponding to the site information type, the query response message is fed back to the other terminal, where the query response message carries the subnet network segment where the terminal is located, the site information, and the corresponding NAT. Type of environment.
本发明实施例还提供了一种 NAT环境类型识别装置, 设置于多点控制 单元 MCU, 包括: 获取模块, 用于从某子网网段中第一个向其查询 NAT 环境类型的终端所发送的第一应用层消息中获取并保存该终端所处的 NAT 环境类型信息; 反馈模块, 用于在接收到与终端处于相同子网网段的其他 终端发送的请求查询其所处的 NAT环境类型的第二应用层消息时, 向其他 终端反馈保存的 NAT环境类型信息。  The embodiment of the present invention further provides a NAT environment type identification device, which is disposed in the multi-point control unit MCU, and includes: an obtaining module, configured to send, according to the first one of the subnet segments, a terminal that queries the NAT environment type The first application layer message acquires and saves the NAT environment type information of the terminal; the feedback module is configured to query the NAT environment type of the request sent by another terminal that is in the same subnet network segment as the terminal When the second application layer message is sent, the saved NAT environment type information is fed back to other terminals.
优选地, NAT环境类型信息包括: 终端所处的子网网段、 终端所在的 会场信息、 以及相应的 NAT环境类型。  Preferably, the NAT environment type information includes: a subnet network segment where the terminal is located, site information where the terminal is located, and a corresponding NAT environment type.
优选地, 第一应用层消息中的 NAT环境类型信息是由终端向 NAT 的 用户数据包协议 UDP简单穿越 STUN服务器查询获取的。  Preferably, the NAT environment type information in the first application layer message is obtained by the terminal to the NAT user data packet protocol UDP simply traversing the STUN server query.
优选地, 获取模块配置为: 接收终端发送的应用层查询消息, 并获取 应用层查询消息中携带的终端所处的子网网段和会场信息; 根据预先存储 的匹配列表判断是否存在与应用层查询消息中的子网网段和会场信息相对 应的 NAT 环境类型, 其中, 匹配列表为子网网段、 会场信息、 以及 NAT 环境类型之间的对应关系表; 在确定不存在与应用层查询消息中的子网网 段和会场信息相对应的 NAT环境类型时, 确定终端为该子网网段中第一个 向其查询 NAT环境类型的终端, 则将应用层查询消息中的子网网段和会场 信息保存在匹配列表中, 并将相应的 NAT环境类型置空; 向终端反馈查询 响应消息,其中, 查询响应消息中携带有终端所处的子网网段、会场信息、 以及置空的 NAT环境类型; 获取终端发送的第一应用层消息, 获取第一应 用层消息携带的终端所处的子网网段、 会场信息、 以及相应的 NAT环境类 型; 根据第一应用层消息更新匹配列表。 Preferably, the obtaining module is configured to: receive an application layer query message sent by the terminal, and obtain a subnet network segment and site information of the terminal carried in the application layer query message; The matching list determines whether there is a NAT environment type corresponding to the subnet network segment and the site information in the application layer query message, where the matching list is a mapping table between the subnet network segment, the site information, and the NAT environment type. When determining that there is no NAT environment type corresponding to the subnet segment and the site information in the application layer query message, determining that the terminal is the first terminal in the subnet segment to query the NAT environment type, The subnet network segment and the site information in the application layer query message are saved in the matching list, and the corresponding NAT environment type is set to be empty. The query response message is fed back to the terminal, where the query response message carries the subnet where the terminal is located. The network segment, the site information, and the NAT environment type of the bearer; obtain the first application layer message sent by the terminal, obtain the subnet network segment where the terminal carried by the first application layer message is located, the site information, and the corresponding NAT environment type. ; Update the match list based on the first application layer message.
优选地, 反馈模块配置为: 在接收到与终端处于相同子网网段的其他 终端发送的请求查询其所处的 NAT环境类型的第二应用层消息时, 根据预 先存储的匹配列表确定存在与第二应用层消息中携带的子网网段和会场信 息相对应的 NAT环境类型时, 则向其他终端反馈查询响应消息, 其中, 查 询响应消息中携带有该终端所处的子网网段、 会场信息、 以及相应的 NAT 环境类型。  Preferably, the feedback module is configured to: when receiving a second application layer message sent by another terminal that is in the same subnet network segment as the terminal to query the NAT environment type in which the terminal is located, determine the presence and the presence according to the pre-stored matching list. When the subnet network segment carried in the second application layer message and the NAT environment type corresponding to the site information, the query response message is fed back to the other terminal, where the query response message carries the subnet network segment where the terminal is located, Venue information, and the corresponding NAT environment type.
本发明实施例还提供了一种计算机可读存储介质, 该存储介质包括一 组指令, 该指令用于执行本发明实施例的 NAT环境类型识别方法。  The embodiment of the present invention further provides a computer readable storage medium, the storage medium comprising a set of instructions for performing a NAT environment type identification method according to an embodiment of the present invention.
本发明实施例有益效果如下:  The beneficial effects of the embodiments of the present invention are as follows:
通过将 MCU作为应用层级别的 NAT 环境类型查询服务器, 终端向 MCU查询 NAT类型并得出结果, 解决了现有技术中处于同一子网段中终 端逐一向 STU 服务器交互繁瑣的问题, 能够提升终端自动识别其所在网 络 NAT环境效率。 附图说明  By querying the server with the MCU as the application-level NAT environment type, the terminal queries the MCU for the NAT type and obtains the result, which solves the problem that the terminal is cumbersome to interact with the STU server one by one in the same subnet segment in the prior art, and can improve the terminal. Automatically identify the efficiency of the network NAT environment in which it resides. DRAWINGS
通过阅读下文优选实施方式的详细描述, 各种其他的优点和益处对于 本领域普通技术人员将变得清楚明了。 附图仅用于示出优选实施方式的目 的, 而并不认为是对本发明的限制。 而且在整个附图中, 用相同的参考符 号表示相同的部件。 在附图中: Various other advantages and benefits are obtained by reading the detailed description of the preferred embodiments below. Those of ordinary skill in the art will become apparent. The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting. Throughout the drawings, the same reference numerals are used to refer to the same parts. In the drawing:
图 1是本发明实施例的 NAT环境类型识别方法的流程图;  1 is a flowchart of a NAT environment type identification method according to an embodiment of the present invention;
图 2是本发明实施例的 NAT环境类型识别方法的详细处理的流程图; 图 3是本发明实施例的 NAT环境类型识别装置的结构示意图。 具体实施方式  2 is a flowchart of a detailed processing of a NAT environment type identification method according to an embodiment of the present invention; and FIG. 3 is a schematic structural diagram of a NAT environment type identification apparatus according to an embodiment of the present invention. detailed description
下面将参照附图更详细地描述本公开的示例性实施例。 虽然附图中显 示了本公开的示例性实施例, 然而应当理解, 可以以各种形式实现本公开 而不应被这里阐述的实施例所限制。 相反, 提供这些实施例是为了能够更 透彻地理解本公开, 并且能够将本公开的范围完整的传达给本领域的技术 人员。  Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the embodiments of the present invention have been shown in the drawings, it is understood that the present invention may be embodied in various forms and not limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be more fully understood.
根据会议电视终端的网络拓朴特性, 一般各个会场的会议终端都会与 多点控制单元(Multi Control Unit, 简称为 MCU )连接, 这样对于各个会 场中的终端而言, 如果有某个服务器存储了其所在子网的 NAT类型, 就可 以直接通过应用层消息查询到该网络类型, 而不需要再次通过与 STUN服 务器进行复杂的 UDP数据包交互判定出该终端目前所处在的 NAT环境, 而 MCU在会议电视中的网络拓朴的上述特殊性, 决定了其能成为该 NAT 类型查询服务器, 基于此, 本发明提供了一种终端自动识别 NAT类型处理 方法, 实现终端在启动时快速识别是否处于 NAT环境及其类型, 以下结合 附图以及实施例, 对本发明进行进一步详细说明。 应当理解, 此处所描述 的具体实施例仅仅用以解释本发明, 并不限定本发明。  According to the network topology of the conference TV terminal, the conference terminals of each conference site are connected to the Multi Control Unit (MCU). For each terminal in the conference site, if a certain server is stored. The NAT type of the subnet on which the subnet is located can directly query the network type through the application layer message, and does not need to perform a complex UDP packet interaction with the STUN server to determine the NAT environment in which the terminal is currently located, and the MCU. The above speciality of the network topology in the conference television determines that it can become the NAT type query server. Based on this, the present invention provides a terminal automatic identification NAT type processing method, which realizes whether the terminal quickly recognizes whether it is in the startup state. NAT environment and its type, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
方法实施例  Method embodiment
根据本发明的实施例, 提供了一种 NAT环境类型识别方法, 图 1是本 发明实施例的 NAT环境类型识别方法的流程图, 如图 1所示, 根据本发明 实施例的 NAT环境类型识别方法包括如下处理: According to an embodiment of the present invention, a NAT environment type identification method is provided. FIG. 1 is a flowchart of a NAT environment type identification method according to an embodiment of the present invention. The NAT environment type identification method of the embodiment includes the following processing:
步骤 101, MCU从某子网网段中第一个向其查询 NAT环境类型的终端 所发送的第一应用层消息中获取并保存该终端所处的 NAT 环境类型信息; NAT环境类型信息包括: 终端所处的子网网段、 终端所在的会场信息、 以 及相应的 NAT环境类型。第一应用层消息中的 NAT环境类型信息是由终端 向 NAT的 STU 服务器查询获取的。 具体地, 终端依据传统的 RFC3489 中与 STUN服务器 UDP数据包的交互方式得到其所处的 NAT类型。  Step 101: The MCU obtains and saves the NAT environment type information of the terminal from the first application layer message sent by the terminal in the subnet network segment to the terminal that queries the NAT environment type. The NAT environment type information includes: The subnet network segment where the terminal is located, the site information where the terminal is located, and the corresponding NAT environment type. The NAT environment type information in the first application layer message is obtained by the terminal querying the STU server of the NAT. Specifically, the terminal obtains the type of NAT according to the traditional RFC3489 interaction with the STUN server UDP packet.
优选地, 步骤 101具体包括如下处理:  Preferably, step 101 specifically includes the following processing:
MCU接收终端发送的应用层查询消息, 并获取应用层查询消息中携带 的终端所处的子网网段和会场信息;  The MCU receives the application layer query message sent by the terminal, and obtains the subnet network segment and the site information of the terminal carried in the application layer query message;
MCU根据预先存储的匹配列表判断是否存在与应用层查询消息中的 子网网段和会场信息相对应的 NAT环境类型,其中,匹配列表为子网网段、 会场信息、 以及 NAT环境类型之间的对应关系表; MCU在确定存在与子 网网段和会场信息相对应的 NAT环境类型时, 将与子网网段和会场信息相 对应的 NAT环境类型反馈给终端;  The MCU determines, according to the pre-stored matching list, whether there is a NAT environment type corresponding to the subnet network segment and the site information in the application layer query message, where the matching list is between the subnet network segment, the site information, and the NAT environment type. Corresponding relationship table; when determining the existence of the NAT environment type corresponding to the subnet network segment and the site information, the MCU feeds back the NAT environment type corresponding to the subnet network segment and the site information to the terminal;
MCU在确定不存在与应用层查询消息中的子网网段和会场信息相对 应的 NAT 环境类型时, 确定该终端为该子网网段中第一个向其查询 NAT 环境类型的终端, 则将应用层查询消息中的子网网段和会场信息保存在匹 配列表中, 并将相应的 NAT环境类型置空; MCU向终端反馈查询响应消 息, 其中, 查询响应消息中携带有终端所处的子网网段、 会场信息、 以及 置空的 NAT环境类型; MCU获取终端发送的第一应用层消息, 获取第一 应用层消息携带的终端所处的子网网段、 会场信息、 以及相应的 NAT环境 类型; MCU根据第一应用层消息更新匹配列表。  When determining that there is no NAT environment type corresponding to the subnet network segment and the site information in the application layer query message, the MCU determines that the terminal is the first terminal in the subnet segment to query the NAT environment type, The subnet network segment and the site information in the application layer query message are saved in the matching list, and the corresponding NAT environment type is set to be empty; the MCU feeds back the query response message to the terminal, where the query response message carries the terminal where the terminal is located. The subnet network segment, the site information, and the nulled NAT environment type; the MCU obtains the first application layer message sent by the terminal, and obtains the subnet network segment where the terminal carried by the first application layer message is located, the site information, and the corresponding NAT environment type; The MCU updates the matching list according to the first application layer message.
步骤 102, MCU在接收到与终端处于相同子网网段的其他终端发送的 请求查询其所处的 NAT环境类型的第二应用层消息时, 向其他终端反馈保 存的 NAT环境类型信息。 优选地, 步骤 102具体包括如下处理: Step 102: The MCU feeds back the saved NAT environment type information to other terminals when receiving the second application layer message of the NAT environment type in which the terminal is in the same subnet segment as the terminal. Preferably, step 102 specifically includes the following processing:
MCU在接收到与终端处于相同子网网段的其他终端发送的请求查询 其所处的 NAT环境类型的第二应用层消息时, 根据预先存储的匹配列表确 定存在与第二应用层消息中携带的子网网段和会场信息相对应的 NAT环境 类型时, 则向其他终端反馈查询响应消息, 其中, 查询响应消息中携带有 该终端所处的子网网段、 会场信息、 以及相应的 NAT环境类型。  When receiving the second application layer message of the NAT environment type in which the terminal is in the same subnet segment as the terminal, the MCU determines to be carried in the second application layer message according to the pre-stored matching list. When the subnet network segment and the site environment type corresponding to the site information type, the query response message is fed back to the other terminal, where the query response message carries the subnet network segment where the terminal is located, the site information, and the corresponding NAT. Type of environment.
本发明实施例的技术方案可以应用于会议电视终端自动识别其所处在 的 NAT环境类型。  The technical solution of the embodiment of the present invention can be applied to a conference television terminal to automatically identify the type of the NAT environment in which it is located.
以下结合附图, 对本发明实施例的上述技术方案进行详细说明, 图 2 是本发明实施例的 NAT环境类型识别方法的详细处理的流程图, 如图 2所 示, 具体包括如下处理:  The foregoing technical solution of the embodiment of the present invention is described in detail with reference to the accompanying drawings. FIG. 2 is a flowchart of the detailed processing of the NAT environment type identification method according to the embodiment of the present invention. As shown in FIG. 2, the following specifically includes the following processing:
步骤 20, 终端首先向 MCU发送应用层级别的查询消息, 所附带的信 息为本终端所处的会场信息、 子网 IP。  Step 20: The terminal first sends an application layer level query message to the MCU, where the attached information is the site information and the subnet IP of the terminal.
步骤 21, MCU收到终端发送来的查询消息,根据自己所保存的会场及 子网 IP与 NAT类型的匹配表, 查表分析, 如果得出匹配结果则将 NAT类 型写入应用层反馈消息内容后反馈给终端主机; 如果此时在表中未查找到 相应的 NAT类型, 说明终端当前是第一个向 MCU查询其所在子网的 NAT 类型, MCU此时将子网 IP以及会场信息保存至匹配表中, 并将 NAT类型 置为空,待终端发送更新消息后将 NAT类型再修改,并将空 NAT类型反馈 给查询终端。  Step 21: The MCU receives the query message sent by the terminal, and according to the matching table of the site and subnet IP and the NAT type saved by the terminal, the table analyzes the table, and if the matching result is obtained, the NAT type is written into the application layer feedback message content. After the feedback to the terminal host; if the corresponding NAT type is not found in the table, the terminal is currently the first to query the MCU for the NAT type of the subnet. The MCU saves the subnet IP and the site information to the MCU. In the matching table, the NAT type is set to null. After the terminal sends the update message, the NAT type is modified, and the null NAT type is fed back to the query terminal.
步骤 22, 步骤 21执行后, 终端主机将收到由 MCU发送过来的 NAT 类型, 如果此时 NAT类型非空, 则进入步骤 23, 否则通过 STUN方法获取 当前所处 NAT的类型,并将此类型及终端目前所处的子网 IP和所在会场发 送给 MCU更新其匹配表。  Step 22: After the step 21 is executed, the terminal host receives the NAT type sent by the MCU. If the NAT type is not empty, the process proceeds to step 23. Otherwise, the type of the current NAT is obtained by using the STUN method, and the type is obtained. And the subnet IP of the terminal and the site where the terminal is located are sent to the MCU to update its matching table.
步骤 23, 步骤 22执行后, 终端将已获得的 NAT类型通知终端网络处 理模块。 综上所述, 本发明实施例引入 MCU作为应用层级别的 NAT环境类型 查询服务器, 相同子网段的终端在首次开机配置网络环境的 NAT类型时, 如果不是该会场及子网段第一个向 MCU查询 NAT类型时只需要直接获取 其 NAT类型即可, 避免了终端逐个向 STUN服务器交互的繁瑣判定过程, 提高了终端配置网络信息的效率。 Step 23: After the step 22 is executed, the terminal notifies the terminal network processing module of the obtained NAT type. In summary, the embodiment of the present invention introduces an MCU as an application layer-level NAT environment type query server, and if the terminal of the same subnet segment is configured to configure the NAT type of the network environment for the first time, if it is not the first site of the site and the subnet segment When querying the NAT type to the MCU, you only need to obtain the NAT type directly. This avoids the tedious decision process of the terminal interacting with the STUN server one by one, and improves the efficiency of configuring the network information of the terminal.
装置实施例  Device embodiment
根据本发明的实施例, 提供了一种 NAT 环境类型识别装置, 设置于 MCU, 可以应用于会议电视终端自动识别其所处在的 NAT环境类型, 图 3 是本发明实施例的 NAT环境类型识别装置的结构示意图, 如图 3所示, 根 据本发明实施例的 NAT环境类型识别装置包括: 获取模块 30、 以及反馈模 块 32, 以下对本发明实施例的各个模块进行详细的说明。  According to an embodiment of the present invention, a NAT environment type identifying apparatus is provided, which is disposed in an MCU, and can be applied to a conference television terminal to automatically identify a NAT environment type in which it is located. FIG. 3 is a NAT environment type identification according to an embodiment of the present invention. The structure of the device is as shown in FIG. 3. The NAT environment type identifying device according to the embodiment of the present invention includes: an obtaining module 30 and a feedback module 32. The modules of the embodiments of the present invention are described in detail below.
获取模块 30,配置为从某子网网段中第一个向其查询 NAT环境类型的 终端所发送的第一应用层消息中获取并保存该终端所处的 NAT环境类型信 息; 其中, NAT环境类型信息包括: 终端所处的子网网段、 终端所在的会 场信息、以及相应的 NAT环境类型。第一应用层消息中的 NAT环境类型信 息是由终端向 NAT 的 STUN服务器查询获取的。  The obtaining module 30 is configured to acquire and save the NAT environment type information of the terminal from the first application layer message sent by the first one of the subnet segments to the terminal that queries the NAT environment type; wherein, the NAT environment The type information includes: the subnet network segment where the terminal is located, the site information where the terminal is located, and the corresponding NAT environment type. The NAT environment type information in the first application layer message is obtained by the terminal querying the NAT STUN server.
获取模块 30配置为:  The acquisition module 30 is configured to:
接收终端发送的应用层查询消息, 并获取应用层查询消息中携带的终 端所处的子网网段和会场信息;  Receiving an application layer query message sent by the terminal, and obtaining the subnet network segment and the site information where the terminal carried in the application layer query message is located;
根据预先存储的匹配列表判断是否存在与应用层查询消息中的子网网 段和会场信息相对应的 NAT环境类型, 其中, 匹配列表为子网网段、 会场 信息、 以及 NAT环境类型之间的对应关系表;  And determining, according to the pre-stored matching list, a NAT environment type corresponding to the subnet network segment and the site information in the application layer query message, where the matching list is between the subnet network segment, the site information, and the NAT environment type. Correspondence table
在确定不存在与应用层查询消息中的子网网段和会场信息相对应的 NAT环境类型时,确定终端为该子网网段中第一个向其查询 NAT环境类型 的终端, 则将应用层查询消息中的子网网段和会场信息保存在匹配列表中, 并将相应的 NAT环境类型置空; 向终端反馈查询响应消息, 其中, 查询响应消息中携带有终端所处的 子网网段、 会场信息、 以及置空的 NAT环境类型; When it is determined that there is no NAT environment type corresponding to the subnet network segment and the site information in the application layer query message, determining that the terminal is the first terminal in the subnet segment to query the NAT environment type, the application is applied. The subnet segment and site information in the layer query message are saved in the matching list, and the corresponding NAT environment type is blank. The query response message is sent to the terminal, where the query response message carries the subnet network segment where the terminal is located, the site information, and the NAT environment type that is blanked;
获取终端发送的第一应用层消息, 获取第一应用层消息携带的终端所 处的子网网段、 会场信息、 以及相应的 NAT环境类型;  Acquiring the first application layer message sent by the terminal, obtaining the subnet network segment where the terminal carried by the first application layer message is located, the site information, and the corresponding NAT environment type;
根据第一应用层消息更新匹配列表。  The matching list is updated according to the first application layer message.
反馈模块 32, 配置为在接收到与终端处于相同子网网段的其他终端发 送的请求查询其所处的 NAT环境类型的第二应用层消息时, 向其他终端反 馈保存的 NAT环境类型信息。  The feedback module 32 is configured to: when receiving a second application layer message of the NAT environment type in which the terminal is in the same subnet network segment as the request, query the saved NAT environment type information to the other terminal.
反馈模块 32配置为: 在接收到与终端处于相同子网网段的其他终端发 送的请求查询其所处的 NAT环境类型的第二应用层消息时, 根据预先存储 的匹配列表确定存在与第二应用层消息中携带的子网网段和会场信息相对 应的 NAT环境类型时, 向其他终端反馈查询响应消息, 其中, 查询响应消 息中携带有该终端所处的子网网段、会场信息、以及相应的 NAT环境类型。  The feedback module 32 is configured to: when receiving a second application layer message sent by another terminal that is in the same subnet network segment as the terminal to query the NAT environment type, the presence and the second are determined according to the pre-stored matching list. When the subnet segment and the site information of the site information carried in the application layer message are sent to the other terminal, the query response message is sent to the other terminal, where the query response message carries the subnet segment and the site information of the terminal. And the corresponding NAT environment type.
需要说明的是, 上述获取模块 30可以由 NAT环境类型识别装置的中 央处理器( Central Processing Unit,简称为 CPU ), 处理器( Micro Processing Unit, 简称为 MPU )或 (Digital Signal Processor, 简称为 DPS )来实现, 反馈模块 32可以由 NAT环境类型识别装置中具有通信功能的芯片来实现。  It should be noted that the foregoing obtaining module 30 may be a Central Processing Unit (CPU), a Micro Processing Unit (MPU) or a Digital Signal Processor (DPS). To achieve, the feedback module 32 can be implemented by a chip having a communication function in the NAT environment type identification device.
对应本发明实施例的 NAT环境类型识别方法, 本发明实施例还提供了 一种计算机可读存储介质, 该存储介质包括一组指令, 该指令用于执行本 发明实施例的 NAT环境类型识别方法。  A method for identifying a NAT environment type according to an embodiment of the present invention, the embodiment of the present invention further provides a computer readable storage medium, where the storage medium includes a set of instructions for performing a NAT environment type identification method according to an embodiment of the present invention. .
综上所述, 本发明实施例引入 MCU作为应用层级别的 NAT环境类型 查询服务器, 相同子网段的终端在首次开机配置网络环境的 NAT类型时, 如果不是该会场及子网段第一个向 MCU查询 NAT类型时只需要直接获取 其 NAT类型即可, 避免了终端逐个向 STUN服务器交互的繁瑣判定过程, 提高了终端配置网络信息的效率。  In summary, the embodiment of the present invention introduces an MCU as an application layer-level NAT environment type query server, and if the terminal of the same subnet segment is configured to configure the NAT type of the network environment for the first time, if it is not the first site of the site and the subnet segment When querying the NAT type to the MCU, you only need to obtain the NAT type directly. This avoids the tedious decision process of the terminal interacting with the STUN server one by one, and improves the efficiency of configuring the network information of the terminal.
本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或计算机程序产品。 因此, 本发明可釆用硬件实施例、 软件实施例、 或结 合软件和硬件方面的实施例的形式。 而且, 本发明可釆用在一个或多个其 中包含有计算机可用程序代码的计算机可用存储介质 (包括但不限于磁盘 存储器和光学存储器等 )上实施的计算机程序产品的形式。 Those skilled in the art will appreciate that embodiments of the present invention may be provided as a method, system, Or a computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can be embodied in the form of one or more computer program products embodied on a computer usable storage medium (including but not limited to disk storage and optical storage, etc.) in which computer usable program code is embodied.
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序 产品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流程 图和 /或方框图中的每一流程和 /或方框、以及流程图和 /或方框图中的流程和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器, 使得 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功 能的装置。  The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart and/or block diagrams, and combinations of flow and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a general purpose computer, a special purpose computer, an embedded processor or other programmable data processing device processor to produce a machine such that a flow or a block diagram of a flow or a block diagram or A device that has multiple functions specified in the box.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能。  The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现 的处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现在流 程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的 步骤。 本发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权 利要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在 内。 工业实用性 These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram. The spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and the modifications of the invention Industrial applicability
本发明通过将 MCU作为应用层级别的 NAT环境类型查询服务器, 终 端向 MCU查询 NAT类型并得出结果, 能够解决现有技术中处于同一子网 段中终端逐一向 STU 服务器交互繁瑣的问题, 并能够提升终端自动识别 其所在网络 NAT环境效率。  The present invention solves the problem that the terminal interacts with the STU server one by one in the same subnet segment in the prior art by querying the server by using the MCU as the application layer-level NAT environment type, and the terminal can solve the problem of the cumbersome interaction between the terminals and the STU server in the same subnet segment in the prior art. It can improve the efficiency of the terminal automatically identifying the network NAT environment in which it is located.

Claims

权利要求书 claims
1、 一种网络地址转换 NAT环境类型识别方法, 包括: 1. A network address translation NAT environment type identification method, including:
多点控制单元 MCU从某子网网段中第一个向其查询 NAT环境类型 的终端所发送的第一应用层消息中获取并保存该终端所处的 NAT环境类 型信息; 的请求查询其所处的 NAT环境类型的第二应用层消息时, 向所述其他终 端反馈保存的所述 NAT环境类型信息。 The multipoint control unit MCU obtains and saves the NAT environment type information of the terminal from the first application layer message sent by the first terminal in a certain subnet segment that queries the NAT environment type; When receiving the second application layer message of the NAT environment type, the stored NAT environment type information is fed back to the other terminal.
2、 如权利要求 1所述的方法, 其中, 所述 NAT环境类型信息包括: 终端所处的子网网段、终端所在的会场信息、以及相应的 NAT环境类型。 2. The method of claim 1, wherein the NAT environment type information includes: the subnet segment where the terminal is located, the venue information where the terminal is located, and the corresponding NAT environment type.
3、 如权利要求 1所述的方法, 其中, 所述第一应用层消息中的 NAT 环境类型信息是由所述终端向 NAT 的用户数据包协议 UDP 简单穿越 STU 服务器查询获取的。 3. The method of claim 1, wherein the NAT environment type information in the first application layer message is obtained by the terminal simply querying the NAT User Data Packet Protocol UDP through the STU server.
4、 如权利要求 1所述的方法, 其中, 所示 MCU从某子网网段中第 一个向其查询 NAT环境类型的终端所发送的第一应用层消息中获取并保 存该终端所处的 NAT环境类型信息, 包括: 4. The method of claim 1, wherein the MCU obtains and saves the location of the terminal from the first application layer message sent by the first terminal in a certain subnet segment to query the NAT environment type. NAT environment type information, including:
所述 MCU接收终端发送的应用层查询消息,并获取所述应用层查询 消息中携带的所述终端所处的子网网段和会场信息; The MCU receives the application layer query message sent by the terminal, and obtains the subnet segment and venue information where the terminal is located carried in the application layer query message;
所述 MCU根据预先存储的匹配列表判断是否存在与所述应用层查 询消息中的子网网段和所述会场信息相对应的 NAT环境类型, 其中, 所 述匹配列表为子网网段、 会场信息、 以及 NAT环境类型之间的对应关系 表; The MCU determines whether there is a NAT environment type corresponding to the subnet segment and the venue information in the application layer query message according to a pre-stored matching list, where the matching list is the subnet segment, venue Information, and the correspondence table between NAT environment types;
所述 MCU在确定不存在与所述子网网段和所述会场信息相对应的 NAT环境类型时,确定所述终端为该子网网段中第一个向其查询 NAT环 境类型的终端, 则将所述应用层查询消息中的子网网段和会场信息保存 在所述匹配列表中, 并将相应的 NAT环境类型置空; When the MCU determines that there is no NAT environment type corresponding to the subnet segment and the venue information, the MCU determines that the terminal is the first terminal in the subnet segment to query the NAT environment type, Then the subnet network segment and venue information in the application layer query message are saved. In the matching list, leave the corresponding NAT environment type blank;
所述 MCU向所述终端反馈查询响应消息, 其中, 所述查询响应消息 中携带有所述终端所处的子网网段、 会场信息、 以及置空的 NAT环境类 型; The MCU feeds back a query response message to the terminal, wherein the query response message carries the subnet segment where the terminal is located, venue information, and a blank NAT environment type;
所述 MCU获取所述终端发送的所述第一应用层消息,获取所述第一 应用层消息携带的所述终端所处的子网网段、会场信息、以及相应的 NAT 环境类型; The MCU obtains the first application layer message sent by the terminal, and obtains the subnet segment where the terminal is located, venue information, and the corresponding NAT environment type carried in the first application layer message;
所述 MCU根据所述第一应用层消息更新所述匹配列表。 The MCU updates the matching list according to the first application layer message.
5、 如权利要求 4所述的方法, 其中, 所述 MCU在接收到与所述终 端处于相同子网网段的其他终端发送的请求查询其所处的 NAT环境类型 的第二应用层消息时, 向所述其他终端反馈保存的所述 NAT环境类型信 息, 包括: 的请求查询其所处的 NAT环境类型的第二应用层消息时, 根据预先存储 的匹配列表确定存在与所述第二应用层消息中携带的子网网段和会场信 息相对应的 NAT环境类型时, 则向所述其他终端反馈查询响应消息, 其 中, 所述查询响应消息中携带有该终端所处的子网网段、 会场信息、 以 及相应的 NAT环境类型。 5. The method of claim 4, wherein, when the MCU receives a second application layer message from another terminal in the same subnet segment as the terminal requesting to query the type of NAT environment in which it is located, , feedback the saved NAT environment type information to the other terminals, including: When requesting to query the second application layer message of the NAT environment type in which it is located, it is determined according to the pre-stored matching list that there is a message related to the second application When the subnet segment carried in the layer message and the NAT environment type corresponding to the venue information are fed back to the other terminals, the query response message carries the subnet segment where the terminal is located. , venue information, and corresponding NAT environment type.
6、一种网络地址转换 NAT环境类型识别装置,设置于多点控制单元 MCU, 包括: 6. A network address translation NAT environment type identification device, installed in the multi-point control unit MCU, including:
获取模块, 配置为从某子网网段中第一个向其查询 NAT环境类型的 终端所发送的第一应用层消息中获取并保存该终端所处的 NAT环境类型 信息; The acquisition module is configured to obtain and save the NAT environment type information of the terminal from the first application layer message sent by the first terminal in a certain subnet segment that queries the NAT environment type;
反馈模块, 配置为在接收到与所述终端处于相同子网网段的其他终 端发送的请求查询其所处的 NAT环境类型的第二应用层消息时, 向所述 其他终端反馈保存的所述 NAT环境类型信息。 A feedback module configured to, when receiving a second application layer message sent by other terminals in the same subnet segment as the terminal requesting to query the type of NAT environment in which it is located, feedback the saved said information to the other terminal. NAT environment type information.
7、 如权利要求 6所述的装置, 其中, 所述 NAT环境类型信息包括: 终端所处的子网网段、终端所在的会场信息、以及相应的 NAT环境类型。 7. The device according to claim 6, wherein the NAT environment type information includes: the subnet segment where the terminal is located, the venue information where the terminal is located, and the corresponding NAT environment type.
8、 如权利要求 6所述的装置, 其中, 所述第一应用层消息中的 NAT 环境类型信息是由所述终端向 NAT 的用户数据包协议 UDP 简单穿越 STU 服务器查询获取的。 8. The device according to claim 6, wherein the NAT environment type information in the first application layer message is obtained by the terminal through simple query to the NAT User Data Packet Protocol UDP through the STU server.
9、 如权利要求 6所述的装置, 其中, 所述获取模块配置为: 接收终端发送的应用层查询消息, 并获取所述应用层查询消息中携 带的所述终端所处的子网网段和会场信息; 9. The device of claim 6, wherein the acquisition module is configured to: receive an application layer query message sent by a terminal, and obtain the subnet segment where the terminal is located carried in the application layer query message. and venue information;
根据预先存储的匹配列表判断是否存在与所述子网网段和所述会场 信息相对应的 NAT环境类型, 其中, 所述匹配列表为子网网段、 会场信 息、 以及 NAT环境类型之间的对应关系表; Determine whether there is a NAT environment type corresponding to the subnet network segment and the venue information according to a pre-stored matching list, where the matching list is the relationship between the subnet network segment, the venue information, and the NAT environment type. Correspondence table;
在确定不存在与所述子网网段和所述会场信息相对应的 NAT环境类 型时, 确定所述终端为该子网网段中第一个向其查询 NAT环境类型的终 端, 则将所述应用层查询消息中的子网网段和会场信息保存在所述匹配 列表中, 并将相应的 NAT环境类型置空; When it is determined that there is no NAT environment type corresponding to the subnet segment and the venue information, and it is determined that the terminal is the first terminal in the subnet segment to query the NAT environment type, then all The subnet segment and venue information in the application layer query message are stored in the matching list, and the corresponding NAT environment type is left blank;
向所述终端反馈查询响应消息, 其中, 所述查询响应消息中携带有 所述终端所处的子网网段、 会场信息、 以及置空的 NAT环境类型; Feed back a query response message to the terminal, wherein the query response message carries the subnet segment where the terminal is located, venue information, and a blank NAT environment type;
获取所述终端发送的所述第一应用层消息, 获取所述第一应用层消 息携带的所述终端所处的子网网段、 会场信息、 以及相应的 NAT环境类 型; Obtain the first application layer message sent by the terminal, obtain the subnet segment where the terminal is located, venue information, and the corresponding NAT environment type carried in the first application layer message;
根据所述第一应用层消息更新所述匹配列表。 The matching list is updated according to the first application layer message.
10、 如权利要求 9所述的装置, 其中, 所述反馈模块配置为: 其所处的 NAT环境类型的第二应用层消息时, 根据预先存储的匹配列表 确定存在与所述第二应用层消息中携带的子网网段和会场信息相对应的 NAT环境类型时, 则向所述其他终端反馈查询响应消息, 其中, 所述查 询响应消息中携带有该终端所处的子网网段、会场信息、以及相应的 NAT 环境类型。 10. The device of claim 9, wherein the feedback module is configured to: when receiving a second application layer message of the NAT environment type in which it is located, determine whether there is a message related to the second application layer according to a pre-stored matching list. When the NAT environment type corresponding to the subnet network segment and venue information carried in the message is determined, a query response message is fed back to the other terminals, wherein the query response message is The query response message carries the subnet segment where the terminal is located, venue information, and the corresponding NAT environment type.
11、 一种计算机可读存储介质, 所述存储介质包括一组指令, 所述 指令用于执行权利要求 1-5任一项所述的网络地址转换 NAT环境类型识 别方法。 11. A computer-readable storage medium, the storage medium includes a set of instructions, the instructions are used to execute the network address translation NAT environment type identification method described in any one of claims 1-5.
PCT/CN2014/074865 2013-12-30 2014-04-04 Method and apparatus for indentifying type of nat environment WO2015100869A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310749386.1A CN104754068B (en) 2013-12-30 2013-12-30 The recognition methods of NAT environmental form and device
CN201310749386.1 2013-12-30

Publications (1)

Publication Number Publication Date
WO2015100869A1 true WO2015100869A1 (en) 2015-07-09

Family

ID=53493073

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/074865 WO2015100869A1 (en) 2013-12-30 2014-04-04 Method and apparatus for indentifying type of nat environment

Country Status (2)

Country Link
CN (1) CN104754068B (en)
WO (1) WO2015100869A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083565A (en) * 2006-05-29 2007-12-05 腾讯科技(深圳)有限公司 Method and system for detecting network types
CN101883156A (en) * 2010-06-22 2010-11-10 北京神州泰岳软件股份有限公司 Method for traversing NAT (Network Address Translation) equipment
CN102045409A (en) * 2009-10-13 2011-05-04 财团法人工业技术研究院 Network penetrating method and network communication system
CN102647483A (en) * 2012-03-31 2012-08-22 中兴通讯股份有限公司 Method for obtaining network address translation (NAT) types, peer-to-peer (P2P) endpoint entity and NAT entity

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9160794B2 (en) * 2008-12-04 2015-10-13 Microsoft Technology Licensing, Llc Network address translators (NAT) type detection techniques
JP5273001B2 (en) * 2009-09-30 2013-08-28 ブラザー工業株式会社 COMMUNICATION SYSTEM, TERMINAL DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
CN102196057B (en) * 2010-03-03 2015-11-25 腾讯科技(深圳)有限公司 A kind of method and device determining NAT type
CN101945141B (en) * 2010-09-17 2014-02-19 北京神州泰岳软件股份有限公司 TCP-based method and system for traversing NAT devices
CN101938532B (en) * 2010-09-17 2013-07-24 北京神州泰岳软件股份有限公司 UDP-based method and system for penetrating through NAT equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083565A (en) * 2006-05-29 2007-12-05 腾讯科技(深圳)有限公司 Method and system for detecting network types
CN102045409A (en) * 2009-10-13 2011-05-04 财团法人工业技术研究院 Network penetrating method and network communication system
CN101883156A (en) * 2010-06-22 2010-11-10 北京神州泰岳软件股份有限公司 Method for traversing NAT (Network Address Translation) equipment
CN102647483A (en) * 2012-03-31 2012-08-22 中兴通讯股份有限公司 Method for obtaining network address translation (NAT) types, peer-to-peer (P2P) endpoint entity and NAT entity

Also Published As

Publication number Publication date
CN104754068A (en) 2015-07-01
CN104754068B (en) 2019-02-05

Similar Documents

Publication Publication Date Title
US10135687B2 (en) Virtual group policy based filtering within an overlay network
TWI712295B (en) Method, device and system for binding user terminal and equipment
CA3010757C (en) Method and system of providing carrier grade nat (cgn) to a subset of a subscriber base
WO2015117337A1 (en) Method and apparatus for setting network rule entry
US20180048540A1 (en) Wireless terminal type identification method and system in router bridge networking mode
WO2015081734A1 (en) Sending method for sending arp packet in vxlan, vtep, and vxlan controller
WO2015085523A1 (en) Communication method, device and system for virtual extensible local area network
WO2014067080A1 (en) Method and device for transmitting cloud server addresses
CN110995886B (en) Network address management method, device, electronic equipment and medium
US10075410B2 (en) Apparatus and methods for assigning internetwork addresses
WO2014187212A1 (en) Method and device for forwarding message
WO2021253481A1 (en) Unified address allocation method and device for industrial heterogeneous network equipment
US8887237B2 (en) Multimode authentication
WO2016070822A1 (en) Media resource feedback method and device
WO2013083052A1 (en) Method, device, and system for acquiring multicast address
CN104283783A (en) Gateway equipment message transmitting method and device in plug and play network
WO2015117455A1 (en) Network access method, system and terminal device, and computer storage medium
CN107800745B (en) Method, apparatus, and computer-readable storage medium for service announcement and service discovery based on mDNS
WO2016034006A1 (en) Packet sending method and access device
CN105657077A (en) Network address translation traversal method and network address translation equipment
WO2015100869A1 (en) Method and apparatus for indentifying type of nat environment
WO2016177185A1 (en) Method and apparatus for processing media access control (mac) address
US20170272267A1 (en) Method and server for coupling a smart-home device to a mobile terminal
CN104468575A (en) Method and device for achieving domain name registration in local area network
WO2016112613A1 (en) Access control method, device and broadband remote access server (bras)

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14877071

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14877071

Country of ref document: EP

Kind code of ref document: A1