[go: up one dir, main page]

CN101242413A - System and method for obtaining service resource address in same-root multi-layer NAT network - Google Patents

System and method for obtaining service resource address in same-root multi-layer NAT network Download PDF

Info

Publication number
CN101242413A
CN101242413A CNA2008100571905A CN200810057190A CN101242413A CN 101242413 A CN101242413 A CN 101242413A CN A2008100571905 A CNA2008100571905 A CN A2008100571905A CN 200810057190 A CN200810057190 A CN 200810057190A CN 101242413 A CN101242413 A CN 101242413A
Authority
CN
China
Prior art keywords
index service
service unit
network
index
message
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CNA2008100571905A
Other languages
Chinese (zh)
Other versions
CN101242413B (en
Inventor
傅川
秦卓琼
张国清
王迪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Institute of Computing Technology of CAS
Original Assignee
Institute of Computing Technology of CAS
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 Institute of Computing Technology of CAS filed Critical Institute of Computing Technology of CAS
Priority to CN 200810057190 priority Critical patent/CN101242413B/en
Publication of CN101242413A publication Critical patent/CN101242413A/en
Application granted granted Critical
Publication of CN101242413B publication Critical patent/CN101242413B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种同根多层NAT网络中服务资源地址获取系统及方法,通过在同根多层NAT网络中部署索引服务装置,建立私有网络中服务资源在多层NAT网络中的映射,在索引服务装置上注册服务资源,客户端基于索引服务装置对服务资源进行查询,可以利用私有网络中的服务资源。通过应用本发明,在服务器-客户端模式的网络应用中,服务器不仅可以部署于公有网络,还可以部署于多级私有网络中;同时提高了传输的服务质量,降低了对公有网络地址和数据传输能力的需求压力。

Figure 200810057190

The invention discloses a system and method for obtaining service resource addresses in a multi-layer NAT network with the same root. By deploying an index service device in the multi-layer NAT network with the same root, the mapping of service resources in the private network in the multi-layer NAT network is established. The service resource is registered on the service device, and the client can query the service resource based on the index service device, and can use the service resource in the private network. By applying the present invention, in the network application of the server-client mode, the server can be deployed not only in the public network, but also in the multi-level private network; at the same time, the service quality of the transmission is improved, and the need for public network addresses and data is reduced. Demand pressure for transmission capacity.

Figure 200810057190

Description

同根多层NAT网络中服务资源地址获取系统及方法 System and method for obtaining service resource address in same-root multi-layer NAT network

技术领域technical field

本发明涉及计算机网络通信技术领域,更具体地,本发明涉及一种同根多层NAT网络中服务资源地址获取系统及方法。The present invention relates to the technical field of computer network communication, and more specifically, the present invention relates to a system and method for acquiring service resource addresses in a same-root multi-layer NAT network.

背景技术Background technique

目前,基于IPv4的互联网地址空间不足,无法满足众多用户对网络接入的需求,特别是对于诸如我国这样网络需求较大、地址分配不足的国家,空间不足问题显得更为突出。从实际的应用和部署看,网络地址转换(Network Address Translation,NAT)技术是解决互联网IP(Internet Protocol)地址不足的情况下网民接入互联网的一种有效方法。At present, the IPv4-based Internet address space is insufficient to meet the needs of many users for network access, especially for countries such as my country with large network requirements and insufficient address allocation, the problem of insufficient space is more prominent. From the perspective of actual application and deployment, Network Address Translation (NAT) technology is an effective method to solve the problem of insufficient Internet IP (Internet Protocol) addresses for Internet users to access the Internet.

NAT是Internet工程任务组(Internet Engineering Task Force,IETF)的一个标准,允许一个整体机构以一个公用IP地址出现在Internet上,把内部私有网络地址(IP地址)转换成合法网络公用IP地址。网络地址端口转换(Network Address Port Translation,NAPT)是把“NAT”的概念进一步延伸,在转换网络地址的同时,转换传输层标志(例如TCP/UDP的端口号、ICMP的查询ID),从而把多个内部主机的传输层标志复用为一个惟一的外部地址。NAPT使得一组主机可以共享一个惟一的外部地址。通常提到的NAT是指NAPT。NAT is a standard of the Internet Engineering Task Force (IETF), which allows an entire organization to appear on the Internet with a public IP address, and converts internal private network addresses (IP addresses) into legal network public IP addresses. Network Address Port Translation (Network Address Port Translation, NAPT) is to further extend the concept of "NAT", while converting the network address, it also converts the transport layer signs (such as TCP/UDP port number, ICMP query ID), so that the The transport layer identifiers of multiple internal hosts are multiplexed into a unique external address. NAPT enables a group of hosts to share a unique external address. Usually mentioned NAT refers to NAPT.

随着个人信息设备的增多、网络接入设备的普及和网络技术的发展,越来越多的公司、团体和家庭希望将这些信息设备以网络的方式组织在一起,并接入互联网,而且出于安全的考虑,如何在网络上隐藏高安全等级的节点是很多公司面临的问题。在这种IP地址严重缺乏、设备组网互联需求迫切,并且存在大量安全隐患的情况下,通过NAT技术形成的单级或者多级私有网络结构,在实际部署中接入互联网已经越来越普遍。With the increase of personal information equipment, the popularization of network access equipment and the development of network technology, more and more companies, groups and families hope to organize these information equipment together in the form of a network and connect to the Internet. In consideration of security, how to hide nodes with high security level on the network is a problem faced by many companies. In the case of a serious lack of IP addresses, urgent needs for device networking and interconnection, and a large number of security risks, the single-level or multi-level private network structure formed by NAT technology has become more and more common in actual deployment to access the Internet. .

NAT设备的控制范围是由该NAT设备的内网界面沿该界面联接的网络向下延伸到下一个NAT的外网界面间的网络范围,网络范围中不包含其它的NAT设备。相对NAT设备内网界面连接的网络来说,该NAT设备外网界面连接的网络为当前网络的直接上层网络,简称直接上层;相对NAT设备外网界面连接的网络来说,该NAT设备内网界面连接的网络为当前网络的直接下层网络,简称直接下层。直接连接在Internet上的NAT设备称为根NAT。从每个直接上层NAT到直接下层做一条有向边,在所形成的拓扑图中,如果存在从NAT A到NAT B的一条路径,则称NAT A是NAT B的同根上层NAT。若同时也存在NAT A到NAT C的一条路径,则称NAT B和NAT C是同根NAT。The control range of the NAT device extends from the internal network interface of the NAT device along the network connected to the interface to the network range between the external network interface of the next NAT, and other NAT devices are not included in the network range. Compared with the network connected to the internal network interface of the NAT device, the network connected to the external network interface of the NAT device is the direct upper layer network of the current network, referred to as the direct upper layer; The network connected to the interface is the direct lower layer network of the current network, referred to as the direct lower layer. A NAT device directly connected to the Internet is called a root NAT. Make a directed edge from each directly upper-layer NAT to the immediate lower layer. In the formed topology diagram, if there is a path from NAT A to NAT B, then NAT A is said to be the same-root upper-layer NAT of NAT B. If there is also a path from NAT A to NAT C, then NAT B and NAT C are said to be the same root NAT.

目前互联网上的各种服务一般都拥有公网IP地址,而在NAT网络中的私网内部署的服务器(例如Web服务器、FTP服务器等),通常只为该私有网络内的某一公司或者机构服务,只对与其处于同一NAT控制下的主机可见。对于和这些服务器位于同根下层的NAT所辖主机来说,虽然与这些服务器有物理链路,但是由于协议限制,不能访问到这些服务,也就不能获取这些服务器上的资源。At present, various services on the Internet generally have public network IP addresses, and servers (such as Web servers, FTP servers, etc.) The service is only visible to hosts under the same NAT control as it. For hosts under the jurisdiction of NAT located at the same root layer as these servers, although they have physical links with these servers, due to protocol restrictions, they cannot access these services and cannot obtain resources on these servers.

发明内容Contents of the invention

为克服现有同根多层NAT网络环境中服务资源不能获取的缺陷,本发明提出了一种同根多层NAT网络中服务装置地址获取系统及方法。In order to overcome the defect that service resources cannot be obtained in the existing same-root multi-layer NAT network environment, the present invention proposes a system and method for obtaining the address of a service device in the same-root multi-layer NAT network.

根据本发明的一个方面,提供一种同根多层NAT网络中服务资源的索引服务装置,包括:According to one aspect of the present invention, there is provided an index service device for service resources in the same-root multi-layer NAT network, including:

顶级索引服务单元,通过顶级服务总线装置和公有网络连接,记录公有网络和直接与公有网络连接的NAT设备控制的网络中的服务资源的网络地址和端口,并为用户设备提供所述服务资源的网络地址和端口;The top-level index service unit is connected to the public network through the top-level service bus device, records the network address and port of the service resource in the public network and the network controlled by the NAT device directly connected to the public network, and provides the user equipment with the service resource network address and port;

至少一个基本索引服务单元,通过服务总线装置和相应的私有网络连接,记录所述私有网络以及所述私有网络通过NAT设备向下延伸的其他私有网络中的服务资源的网络地址和端口,并为所述私有网络以及所述私有网络通过NAT设备向下延伸的其他私有网络中的用户终端设备提供所述服务资源的网络地址和端口;At least one basic index service unit is connected to the corresponding private network through the service bus device, records the network addresses and ports of the service resources in the private network and other private networks that the private network extends downward through the NAT device, and provides The private network and the user terminal equipment in other private networks extending downward through the private network through the NAT device provide the network address and port of the service resource;

其中,基本索引服务单元向上层索引服务单元发出注册请求申请加入所述索引服务装置,所述上层索引服务单元确定携带所述注册请求的数据分组经过NAT设备,提取所述注册请求中的层级信息,如果所述基本索引服务单元为所述上层索引服务单元的子索引服务单元,所述上层索引服务单元完成所述基本索引服务单元的注册,如果所述基本索引服务单元不是所述上层索引服务单元的子索引服务单元,所述上层索引服务单元返回包含所述NAT设备对应的索引服务单元的网络地址和端口的应答消息。Wherein, the basic index service unit sends a registration request to the upper-level index service unit to apply for joining the index service device, and the upper-level index service unit determines that the data packet carrying the registration request passes through the NAT device, and extracts the layer information in the registration request , if the basic index service unit is a sub-index service unit of the upper-level index service unit, the upper-level index service unit completes the registration of the basic index service unit, and if the basic index service unit is not the upper-level index service unit The sub-index service unit of the unit, the upper-layer index service unit returns a response message including the network address and port of the index service unit corresponding to the NAT device.

其中,如果所述基本索引服务单元的层级比所述上层索引服务单元的层级大1,则所述基本索引服务单元为所述上层索引服务单元的子索引服务单元。Wherein, if the level of the basic index service unit is 1 greater than the level of the upper index service unit, the basic index service unit is a sub-index service unit of the upper index service unit.

其中,所述上层索引服务单元根据所述注册申请的数据分组的源地址和所述注册申请消息中携带的所述基本索引服务单元网络地址是否相同,判断携带所述注册请求的数据分组是否经过NAT设备。Wherein, the upper layer index service unit judges whether the data packet carrying the registration request has passed NAT device.

其中,公有网络连接顶级索引服务单元,私有网络只连接一个基本索引服务单元,所述基本索引服务单元可以为其接入的私有网络以及接入所述私有网络的其他私有网络中的多个网络服务资源注册。Among them, the public network is connected to the top-level index service unit, and the private network is only connected to a basic index service unit, and the basic index service unit can be connected to a private network and multiple networks in other private networks connected to the private network Service resource registration.

其中,所述上层索引服务单元可以是顶级索引服务单元,也可以是基本索引服务单元。Wherein, the upper-level index service unit may be a top-level index service unit, or a basic index service unit.

根据本发明的第二方面,提供一种同根多层NAT网络中服务资源的索引服务设备,包括:According to a second aspect of the present invention, there is provided an index service device for service resources in a same-root multi-layer NAT network, including:

存储介质,所述存储介质用于存储记录所述索引服务设备的标识、主机地址、端口信息和层级信息,所述存储介质用于存储所述索引服务设备的直接上层和直接下层索引服务设备的网络地址和端口信息以及直接下层索引服务设备的标识与直接下层索引服务设备对应NAT设备的网络地址和端口信息,所述存储介质用于存储服务资源的网络地址、端口、资源名称及对应NAT设备的网络地址和端口信息;A storage medium, the storage medium is used to store and record the identification, host address, port information and level information of the index service device, and the storage medium is used to store the index service device directly above and directly below the index service device Network address and port information and the identification of the directly lower index service device and the network address and port information of the NAT device corresponding to the directly lower index service device, and the storage medium is used to store the network address, port, resource name and corresponding NAT device of the service resource network address and port information;

通信单元,所述通信单元同服务总线装置连接,负责收发数据;a communication unit, the communication unit is connected with the service bus device and is responsible for sending and receiving data;

逻辑控制单元,所述逻辑控制单元控制数据的收发和数据的读入和写出。A logic control unit, the logic control unit controls the sending and receiving of data and the reading and writing of data.

其中,所述索引服务设备进一步包括:Wherein, the index service device further includes:

层级信息记录表,用于记录所述索引服务设备的层级信息;A level information record table, used to record the level information of the index service device;

目标索引服务器记录表,用于记录所述索引服务设备的祖先索引服务设备的网络地址和端口信息;A target index server record table, used to record the network address and port information of the ancestor index service device of the index service device;

子索引服务器记录表,用于记录所述索引服务设备的子索引服务设备的标识、网络地址、端口以及对应NAT设备的网络地址和端口信息;A sub-index server record table, used to record the identifier, network address, port of the sub-index service device of the index service device, and the network address and port information of the corresponding NAT device;

网络服务资源装置记录表,用于记录服务资源的网络地址、端口、资源名称及对应NAT设备的网络地址和端口信息;The network service resource device record table is used to record the network address, port, resource name of the service resource and the network address and port information of the corresponding NAT device;

“网络服务资源地址查询消息”应答控制表,用于控制网络服务资源地址查询请求的应答消息的生成;The "network service resource address query message" response control table is used to control the generation of the response message to the network service resource address query request;

索引服务逻辑控制单元,所述索引服务逻辑控制单元分别与所述目标索引服务装置记录表、所述子索引服务单元记录表、所述网络服务资源装置记录表和所述通信单元连接,对所述目标索引服务装置记录表、所述子索引服务单元记录表、所述网络服务资源装置记录表和所述通信单元进行读写操作;所述索引服务逻辑控制单元从“网络服务资源地址查询消息”应答控制表读取控制信息生成应答消息;所述索引服务逻辑控制单元与层级信息记录表连接,读取层级信息。An index service logic control unit, the index service logic control unit is respectively connected with the target index service device record table, the sub-index service unit record table, the network service resource device record table and the communication unit, and controls all The target index service device record table, the sub-index service unit record table, the network service resource device record table and the communication unit perform read and write operations; the index service logic control unit reads and writes from the "network service resource address query message The response control table reads the control information to generate a response message; the index service logic control unit is connected with the hierarchical information recording table to read the hierarchical information.

其中,所述索引服务设备进一步包括:基本配置信息记录表,所述基本配置信息记录表与所述索引服务逻辑控制单元相连,用于记录所述索引服务设备标识、主机地址和端口信息。Wherein, the index service device further includes: a basic configuration information record table, the basic configuration information record table is connected to the index service logic control unit, and is used to record the index service device identifier, host address and port information.

根据本发明的第三方面,提供一种同根多层NAT网络中基本索引服务单元的索引服务注册方法,所述方法包括:According to a third aspect of the present invention, there is provided an index service registration method for a basic index service unit in a same-root multi-layer NAT network, the method comprising:

步骤10)、顶级索引服务单元开始接收注册请求,所述基本索引服务单元通过服务总线装置接入私有网络,向上层索引服务单元发出注册请求;Step 10), the top-level index service unit starts to receive the registration request, the basic index service unit accesses the private network through the service bus device, and sends a registration request to the upper-level index service unit;

步骤20)、当所述上层索引服务单元确定携带所述注册请求的数据分组是否经过NAT设备后,提取所述注册请求中的层级信息;Step 20), after the upper layer index service unit determines whether the data packet carrying the registration request passes through the NAT device, extracts the layer information in the registration request;

步骤30)、如果所述基本索引服务单元为所述上层索引服务单元的子索引服务单元,则在所述上层索引服务单元的子索引服务单元记录表中记录所述基本索引服务单元的网络地址、端口、标识及对应的NAT设备的网络地址和端口,返回成功应答消息;Step 30), if the basic index service unit is a sub-index service unit of the upper-level index service unit, record the network address of the basic index service unit in the sub-index service unit record table of the upper-level index service unit , port, identifier, and the network address and port of the corresponding NAT device, and return a successful response message;

步骤40)、如果所述基本索引服务单元不是所述上层索引服务单元的子索引服务单元,则在所述上层索引服务单元的子索引服务单元记录表查找所述NAT设备对应的索引服务单元,如果所述对应的索引服务单元存在,向提出注册请求的所述基本索引服务单元返回包含所述NAT设备对应的索引服务单元的网络地址和端口的应答消息;Step 40), if the basic index service unit is not a sub-index service unit of the upper-level index service unit, then look up the index service unit corresponding to the NAT device in the sub-index service unit record table of the upper-level index service unit, If the corresponding index service unit exists, return a response message including the network address and port of the index service unit corresponding to the NAT device to the basic index service unit that made the registration request;

步骤50)、提出注册请求的所述基本索引服务单元提取所述应答消息中的网络地址和端口后,向所述对应的索引服务单元发出注册请求。Step 50), after the basic index service unit that made the registration request extracts the network address and port in the response message, it sends a registration request to the corresponding index service unit.

其中,步骤10)中,所述上层索引服务单元可以是顶级索引服务单元,也可以是基本索引服务单元。Wherein, in step 10), the upper-level index service unit may be a top-level index service unit, or a basic index service unit.

其中,步骤20)进一步包括:所述上层索引服务单元根据所述注册申请的数据分组的源地址和所述注册申请消息中携带的所述基本索引服务单元网络地址是否相等,判断携带所述注册请求的数据分组是否经过NAT设备。Wherein, step 20) further includes: the upper layer index service unit judges whether the source address of the data packet of the registration application is equal to the network address of the basic index service unit carried in the registration application message, Whether the requested data packet passes through the NAT device.

其中,步骤30)进一步包括:如果所述基本索引服务单元的层级比所述上层索引服务单元的层级大1,则所述基本索引服务单元为所述上层索引服务单元的子索引服务单元。Wherein, step 30) further includes: if the level of the basic index service unit is 1 greater than the level of the upper index service unit, then the basic index service unit is a sub-index service unit of the upper index service unit.

其中,公有网络连接顶级索引服务单元,私有网络只连接一个基本索引服务单元,所述基本索引服务单元可以为其接入的私有网络以及接入所述私有网络的其他私有网络中的多个网络服务资源注册。Among them, the public network is connected to the top-level index service unit, and the private network is only connected to a basic index service unit, and the basic index service unit can be connected to a private network and multiple networks in other private networks connected to the private network Service resource registration.

根据本发明的第四方面,提供一种同根多层NAT网络中的服务资源地址获取系统,包括:According to a fourth aspect of the present invention, there is provided a service resource address acquisition system in the same-root multi-layer NAT network, including:

所述的索引服务装置;The indexing service device;

顶级服务总线装置,分别与所述索引服务装置的顶级索引服务单元和所述公有网络相连接,将索引服务装置接入公有网络;The top-level service bus device is respectively connected to the top-level index service unit of the index service device and the public network, and connects the index service device to the public network;

服务总线装置,分别与所述索引服务装置的基本索引服务单元和私有网络相连接,将所述索引服务装置接入所述私有网络;The service bus device is respectively connected to the basic index service unit of the index service device and the private network, and connects the index service device to the private network;

其中,所述索引服务装置在接收到索引服务装置客户端通过所述顶级索引服务总线装置或者所述服务总线装置发送的网络服务资源注册/网络服务资源请求消息后,根据逻辑判断是否能够执行,如果能够执行,返回请求成功消息;对于所述网络服务资源注册消息,如果不能执行,并且可以重定向,则返回重定向消息,所述客户端重新注册;对于所述网络服务资源请求消息,如果不能执行,并且如果所述索引服务装置内接受请求的索引服务单元不是顶级索引服务单元,则返回包括所述索引服务单元的目标索引服务装置记录中网络地址和端口的重定向消息,所述客户端重新发送请求。Wherein, after the index service device receives the network service resource registration/network service resource request message sent by the index service device client through the top-level index service bus device or the service bus device, it judges whether it can be executed according to logic, If it can be executed, return a request success message; for the network service resource registration message, if it cannot be executed and can be redirected, then return a redirection message, and the client re-registers; for the network service resource request message, if cannot be executed, and if the index service unit that accepts the request in the index service device is not the top-level index service unit, return a redirection message including the network address and port in the target index service device record of the index service unit, and the client end to resend the request.

其中,所述索引服务装置经顶级服务总线装置连接公有网络,使用公有网络的网络地址进行编址,成为所述公有网络的一部分。Wherein, the index service device is connected to the public network via the top-level service bus device, and uses the network address of the public network for addressing to become a part of the public network.

其中,所述索引服务装置经服务总线装置连接私有网络,使用私有网络的网络地址进行编址,成为所述接入的私有网络的一部分。Wherein, the index service device is connected to the private network via the service bus device, and is addressed by using the network address of the private network, and becomes a part of the accessed private network.

其中,所述索引服务装置中,公有网络连接顶级索引服务单元,私有网络只连接一个基本索引服务单元,所述基本索引服务单元可以为其接入的私有网络以及接入所述私有网络的其他私有网络中的多个网络服务资源注册。Wherein, in the index service device, the public network is connected to the top-level index service unit, and the private network is only connected to a basic index service unit, and the basic index service unit can be connected to the private network and other Multiple web service resource registrations in a private network.

其中,所述索引服务装置客户端包括公有网络和私有网络中的用户机和服务资源设备。Wherein, the client of the index service device includes user machines and service resource devices in the public network and the private network.

根据本发明的第五方面,提供一种同根多层NAT网络中索引服务装置客户端注册网络服务资源的方法,包括:According to a fifth aspect of the present invention, there is provided a method for registering network service resources by an index service device client in a multi-layer NAT network with the same root, including:

步骤10)、所述索引服务装置客户端向索引服务装置发送网络服务资源注册消息,所述注册消息包括服务资源的网络地址、端口及注册的资源名称;Step 10), the index service device client sends a network service resource registration message to the index service device, and the registration message includes the network address, port and registered resource name of the service resource;

步骤20)、收到所述服务注册消息的所述索引服务装置判断所述携带注册消息的数据分组是否经过NAT设备;Step 20), the indexing service device receiving the service registration message judges whether the data packet carrying the registration message passes through the NAT device;

步骤30)、如果经过NAT设备,并且如果注册消息中的层级比所述索引服务单元的层级大1,记录包括所述NAT设备的网络地址、端口的所述服务资源注册消息,返回成功注册消息;Step 30), if the NAT device is passed, and if the level in the registration message is 1 greater than the level of the index service unit, record the service resource registration message including the network address and port of the NAT device, and return a successful registration message ;

步骤40)、如果经过NAT设备,并且如果注册消息中的层级不比所述索引服务单元层级大1,当所述NAT设备控制的网络中有索引服务单元时,向所述客户端返回包括所述索引服务单元的网络地址和端口的重定向消息;Step 40), if passing through the NAT device, and if the level in the registration message is not greater than the level of the index service unit by 1, when there is an index service unit in the network controlled by the NAT device, return to the client including the A redirection message of the network address and port of the indexing service unit;

步骤50)、所述客户端从所述重定向消息中提取所述返回的索引服务单元的网络地址和端口替换原有的索引服务装置的网络地址和端口,发出注册请求。Step 50), the client extracts the network address and port of the returned index service unit from the redirection message to replace the original network address and port of the index service device, and sends a registration request.

其中,所述索引服务装置客户端包括公有网络和私有网络中的用户机和服务资源设备。Wherein, the client of the index service device includes user machines and service resource devices in the public network and the private network.

其中,所述索引服务单元可以是顶级索引服务单元,也可以是基本索引服务单元。Wherein, the index service unit may be a top-level index service unit or a basic index service unit.

其中,所述方法进一步包括:所述索引服务装置客户端设定注册请求的尝试次数和注册请求超时控制,如果注册请求超过设定的所述尝试次数或所述超时控制,结束本次请求。Wherein, the method further includes: the client of the indexing service device sets the number of attempts of the registration request and the timeout control of the registration request, and ends the request if the registration request exceeds the set number of attempts or the timeout control.

其中,步骤20)进一步包括:所述索引服务装置通过判断所述注册消息的源地址和所述客户端的网络地址是否相同,确定所述注册消息是否经过NAT设备。Wherein, step 20) further includes: the index service device determines whether the registration message passes through the NAT device by judging whether the source address of the registration message is the same as the network address of the client.

其中,步骤20)进一步包括:如果所述注册消息没有经过NAT设备,记录注册消息的服务资源信息,返回成功应答消息。Wherein, step 20) further includes: if the registration message does not pass through the NAT device, record the service resource information of the registration message, and return a success response message.

根据本发明的第六方面,提供一种同根多层NAT网络中索引服务装置客户端的查询网络服务资源的方法,包括:According to a sixth aspect of the present invention, there is provided a method for querying network service resources by an index service device client in a same-root multi-layer NAT network, including:

步骤10)、所述索引服务装置客户端判断有无来自索引服务装置的应答消息,然后向所述索引服务装置发送网络服务资源地址查询消息,所述查询消息至少包括服务资源名称,当存在来自所述索引服务装置的应答消息时,所述查询消息还包括所述应答消息中的答复者;Step 10), the client side of the index service device judges whether there is a response message from the index service device, and then sends a network service resource address query message to the index service device, the query message includes at least the name of the service resource, when there is a response message from the index service device When the response message of the index service device, the query message also includes the respondent in the response message;

步骤20)、收到所述网络服务资源查询消息的所述索引服务装置的索引服务单元判断自身是否存在被请求的所述网络服务资源,将被请求资源状态设定为找到、没找到;Step 20), the index service unit of the index service device that receives the network service resource query message determines whether it has the requested network service resource, and sets the status of the requested resource as found or not found;

步骤30)、收到所述网络服务资源查询消息的所述索引服务装置的索引服务单元确定自身的位置状态,包括:独立顶级索引服务单元、顶级索引服务单元、中间索引服务单元、底层索引服务单元;Step 30), the index service unit of the index service device that receives the network service resource query message determines its own location status, including: an independent top-level index service unit, a top-level index service unit, an intermediate index service unit, and a bottom-level index service unit unit;

步骤40)、收到所述网络服务资源查询消息的所述索引服务装置的索引服务单元根据所述查询消息中包括的所述答复者,确定查询消息方向状态:当消息中没有所述答复者时,设定为“初始查询消息”;当所述答复者为收到所述网络服务资源查询消息的所述索引服务单元的子索引服务单元,设定为“向上查询消息”;当所述答复者为收到所述网络服务资源查询消息的所述索引服务单元的目标索引服务器记录中的索引服务单元时,设定为“向下查询消息”;Step 40), the index service unit of the index service device that receives the network service resource query message determines the direction status of the query message according to the responder included in the query message: when there is no responder in the message , it is set as "initial query message"; when the responder is a sub-index service unit of the index service unit that received the network service resource query message, it is set as "upward query message"; when the When the responder is the index service unit in the target index server record of the index service unit that received the network service resource query message, it is set to "downward query message";

步骤50)、收到所述网络服务资源查询消息的所述索引服务装置的索引服务单元根据所述被请求资源状态、所述自身的位置状态和所述查询消息方向状态在下表中匹配,返回对应答复消息;Step 50), the index service unit of the index service device that receives the network service resource query message matches in the following table according to the requested resource state, the location state of itself, and the direction state of the query message, and returns Corresponding reply message;

索引服务单元位置状态Index service unit location status 被请求资源状态The status of the requested resource 查询请求方向query request direction 返回答复消息return reply message 答复消息附加信息Reply message additional information 顶级索引服务单元Top Index Service Unit 没找到did not find 初始查询消息initial query message 重定向消息,重定向目标为相应子索引服务单元网络地址和端口Redirection message, the redirection target is the network address and port of the corresponding sub-index service unit 答复者为本索引服务单元网络地址Respondent-based index service unit network address 顶级索引服务单元Top Index Service Unit 没找到did not find 向上查询消息query message up 失败消息failure message 顶级索引服务单元Top Index Service Unit 找到turn up 初始查询消息initial query message 重定向消息,重定向目标为相应子索引服务单元网络地址和端口,服务资源网络地址和端口Redirection message, the redirection target is the network address and port of the corresponding sub-index service unit, the network address and port of the service resource 答复者为本索引服务单元网络地址,The respondent is the network address of this index service unit, 顶级索引服务单元Top Index Service Unit 找到turn up 向上查询消息query message up 成功消息,包括服务资源网络地址和端口Success message, including service resource network address and port 中间服务单元Intermediate Service Unit 没找到did not find 初始查询消息initial query message 重定向消息redirect message 重定向目标可以根据策略选择:上级索引服务单元、下级索引服务单元、顶级索引服务单元The redirection target can be selected according to the policy: upper-level index service unit, lower-level index service unit, top-level index service unit 中间索引服务单元Intermediate Index Service Unit 没找到did not find 向上查询消息query message up 重定向消息,重定向目标为本地目标索引服务器记录中的网络地址和端口Redirect message to the network address and port in the local target index server record 答复者为本索引服务单元网络地址Respondent-based index service unit network address 中间索引服务单元Intermediate Index Service Unit 没找到did not find 向下查询消息Drill down for messages 重定向消息,重定向目标为相应子索引服务单元网络地址和端口Redirection message, the redirection target is the network address and port of the corresponding sub-index service unit 答复者为本索引服务单元网络地址Respondent-based index service unit network address 中间索引服务单元Intermediate Index Service Unit 找到turn up 初始查询消息initial query message 重定向消息,重定向目标为相应子索引服务单元网络地址和端口,服务资源网络地址和端口Redirection message, the redirection target is the network address and port of the corresponding sub-index service unit, the network address and port of the service resource 答复者为本索引服务单元网络地址Respondent-based index service unit network address 中间索引服务单元Intermediate Index Service Unit 找到turn up 向上查询消息query message up 成功消息,包括服务资源网络地址和端口Success message, including service resource network address and port 答复者为本索引服务单元网络地址Respondent-based index service unit network address 中间索引服务单元Intermediate Index Service Unit 找到turn up 向下查询消息Drill down for messages 重定向消息,重定向目标为相应子索引服务单元网络地址和端口,服务资源网络地址和端口Redirection message, the redirection target is the network address and port of the corresponding sub-index service unit, the network address and port of the service resource 答复者为本索引服务单元网络地址Respondent-based index service unit network address 底层索引服务单元underlying index service unit 没找到did not find 初始查询消息initial query message 重定向消息,重定向目标为本地目标索引服务器记录中的网络地址和端口Redirect message to the network address and port in the local target index server record 答复者为本索引服务单元网络地址Respondent-based index service unit network address 底层索引服务单元underlying index service unit 没找到did not find 向下查询消息Drill down for messages 失败消息failure message 底层索引服务单元underlying index service unit 找到turn up 初始查询消息initial query message 成功消息,包括服务资源网络地址和端口Success message, including service resource network address and port 独立顶级索引服务单元Independent top-level index service unit 没找到did not find 查询消息(初始)query message (initial) 失败消息failure message 独立顶级索引服务单元Independent top-level index service unit 找到turn up 查询消息(初始)query message (initial) 成功消息,包括服务资源网络地址和端口Success message, including service resource network address and port

其中,步骤10)中,所述答复者为所述索引服务装置中发送应答消息的索引服务单元。Wherein, in step 10), the responder is the index service unit that sends the reply message in the index service device.

其中,步骤30)中,所述顶级索引服务单元指该索引服务单元只有下级子索引服务单元、没有上级索引服务单元;所述中间索引服务单元指该索引服务单元有下级子索引服务单元、没有上级索引服务单元;所述底层索引服务单元是指该索引服务单元没有下级子索引服务单元、只有上级索引服务单元;所述独立顶级索引服务单元是指没有子索引服务单元的顶级索引服务单元。Wherein, in step 30), the top-level index service unit means that the index service unit has only lower-level sub-index service units and no upper-level index service unit; the intermediate index service unit means that the index service unit has lower-level sub-index service units and no The upper-level index service unit; the bottom-level index service unit means that the index service unit has no lower-level sub-index service units, but only a higher-level index service unit; the independent top-level index service unit refers to a top-level index service unit without sub-index service units.

通过应用本发明,在服务器-客户端模式的网络应用中,服务器不仅可以部署于公有网络,还可以部署于多级私有网络中;同时提高了传输的服务质量(Qos),降低了对公有网络地址和数据传输能力的需求压力。By applying the present invention, in the network application of the server-client mode, the server can be deployed not only in the public network, but also in the multi-level private network; at the same time, the quality of service (Qos) of the transmission is improved, and the impact on the public network is reduced. Address and data transfer capacity demand pressure.

附图说明Description of drawings

图1是同根多层NAT网络示意图;Fig. 1 is a schematic diagram of the same root multi-layer NAT network;

图2是服务端地址获取系统结构示意图;Fig. 2 is a schematic structural diagram of the server address acquisition system;

图3是NAT设备连接矩阵示意图;Fig. 3 is a schematic diagram of a NAT device connection matrix;

图4是索引服务装置与索引服务单元结构示意图;Fig. 4 is a schematic structural diagram of an index service device and an index service unit;

图5是索引服务装置组建流程示意图;Fig. 5 is a schematic diagram of the establishment process of the index service device;

图6是索引服务装置组建流程示意图;Fig. 6 is a schematic diagram of the establishment process of the index service device;

图7是索引服务装置组建流程示意图;Fig. 7 is a schematic diagram of the establishment process of the index service device;

图8是以公有网络中的公知服务入口为基础的查询方式示意图;Fig. 8 is a schematic diagram of a query method based on a known service entry in a public network;

图9是以本地存储的服务入口为基础的查询方式示意图;FIG. 9 is a schematic diagram of a query method based on a locally stored service entry;

图10是服务客户端通过监听包含服务入口的广播消息获得服务入口的流程示意图;FIG. 10 is a schematic flow diagram of a service client obtaining a service entry by listening to a broadcast message containing the service entry;

图11是服务器代理广播方式示意图;Fig. 11 is a schematic diagram of server agent broadcast mode;

图12是索引服务装置收到服务资源注册消息的处理方法流程图;Fig. 12 is a flowchart of a processing method for receiving a service resource registration message by an index service device;

图13是服务器处理网络服务资源注册消息交互过程流程图;Fig. 13 is a flow chart of the server processing network service resource registration message interaction process;

图14是网络服务资源查询者处理“网络服务资源地址查询消息”交互过程流程图;Fig. 14 is a flow chart of the interaction process of the network service resource queryer processing the "network service resource address query message";

图15是索引服务装置收到客户端的服务资源网络地址请求消息的处理方法流程图;Fig. 15 is a flowchart of a processing method for the index service device to receive a service resource network address request message from a client;

图16是服务资源网络地址请求消息的处理方法流程图。Fig. 16 is a flowchart of a method for processing a service resource network address request message.

具体实施方式Detailed ways

下面结合附图和具体实施例,对本发明提供的同根多层NAT网络中的索引服务装置、服务资源地址获取系统及方法作进一步说明。The index service device, service resource address acquisition system and method in the same-root multi-layer NAT network provided by the present invention will be further described below with reference to the accompanying drawings and specific embodiments.

在传统互联网络中,服务资源一般只部署在公有网络中。而在同根多层NAT网络中,服务资源可以沿着私有网络的连接关系部署在第一层、第二层以及第三层等各层中。同根多层NAT网络不仅可以扩大用户的接入数量,还可以扩大服务资源的部署范围。按照物理连接关系,用户在使用网络服务时,应该可以直接访问部署在各层NAT设备控制的网络中的服务资源,而不仅仅可以访问部署在公有网络中的服务资源,这样,可以有效的减少根NAT设备及其控制的网络的压力,同时也提高了网络服务的服务质量。然而,由于现有网络协议的限制,NAT设备的网络地址不能在网络上路由。因此,同根多层NAT网络中,服务资源请求者无法获取该网络环境中网络服务资源的网络地址和端口。NAT设备的网络地址指同NAT设备的外网界面绑定的网络地址。对于规模较大的私有网络,NAT路由器外网界面可以同多个网络地址进行绑定。在网络管理中,可以通过枚举地址或枚举网段的方式将多个网络地址被映射为一个NAT设备。普通用户可以通过低端NAT路由器自行接入网络,一般该NAT路由器外网界面只与一个网络地址绑定。在下面对NAT路由器的描述中,一个NAT路由器外网界面只与一个网络地址绑定。因此,一个NAT设备可以用一个同该NAT设备的外网界面绑定的网络地址表达。本领域内普通技术人员不难发现,下面的描述也适用于外网界面同多个网络地址绑定的NAT路由器。In the traditional Internet, service resources are generally only deployed in the public network. In the same-root multi-layer NAT network, service resources can be deployed in the first layer, second layer, and third layer along the connection relationship of the private network. The same-root multi-layer NAT network can not only expand the number of user access, but also expand the scope of deployment of service resources. According to the physical connection relationship, when users use network services, they should be able to directly access the service resources deployed in the network controlled by each layer of NAT devices, not just the service resources deployed in the public network. In this way, it can effectively reduce the The pressure on the root NAT device and the network it controls also improves the quality of service of network services. However, due to limitations of existing network protocols, the network address of the NAT device cannot be routed on the network. Therefore, in the same-root multi-layer NAT network, the service resource requester cannot obtain the network address and port of the network service resource in the network environment. The network address of the NAT device refers to the network address bound to the external network interface of the NAT device. For a large-scale private network, the external network interface of the NAT router can be bound with multiple network addresses. In network management, multiple network addresses can be mapped to a NAT device by enumerating addresses or enumerating network segments. Ordinary users can access the network by themselves through a low-end NAT router. Generally, the external network interface of the NAT router is only bound to one network address. In the following description of the NAT router, the external network interface of a NAT router is only bound to one network address. Therefore, a NAT device can be represented by a network address bound to the external network interface of the NAT device. It is not difficult for those skilled in the art to find that the following description is also applicable to a NAT router whose external network interface is bound to multiple network addresses.

图1所示为同根多层NAT网络结构示意图,一个私有网络4-1通过NAT设备1001接入公有网络3,一个私有网络4-2通过另一NAT设备1002接入私有网络4-1。通过NAT设备1001接入公有网络3的私有网络为该NAT设备控制的网络,通过NAT设备1002接入私有网络4-1的私有网络4-2为该NAT设备控制的网络。直接同公有网络3相连的NAT设备为根NAT设备。各私有网络到公有网络3经过的最少NAT设备的个数为该私有网络的层数,该路径为私有网络到公有网络3的最短路径。私有网络到公有网络3的层数越少,表示层级越高。如果两个私有网络到公有网络的最短路径中至少有一个NAT设备相同,则这两个私有网络有共同的根NAT设备。多层NAT网络可以被看作是多个同根多层NAT网络的组合。FIG. 1 is a schematic diagram of the same-root multi-layer NAT network structure. A private network 4-1 accesses the public network 3 through a NAT device 1001, and a private network 4-2 accesses the private network 4-1 through another NAT device 1002. The private network connected to the public network 3 through the NAT device 1001 is a network controlled by the NAT device, and the private network 4-2 connected to the private network 4-1 through the NAT device 1002 is a network controlled by the NAT device. The NAT device directly connected to the public network 3 is the root NAT device. The minimum number of NAT devices that each private network passes through to the public network 3 is the number of layers of the private network, and the path is the shortest path from the private network to the public network 3 . The fewer layers from the private network to the public network 3, the higher the layer. If at least one NAT device in the shortest path from two private networks to the public network is the same, the two private networks have a common root NAT device. A multi-layer NAT network can be viewed as a combination of multiple same-root multi-layer NAT networks.

为了使服务资源请求者可以获得同根多层NAT网络中的网络服务资源的网络地址和端口,在根据本发明的实施例中,提供一种服务资源地址获取系统,用于在同根多层NAT网络中,帮助服务资源请求者获取该网络环境中网络服务资源的网络地址和端口。In order to enable service resource requesters to obtain network addresses and ports of network service resources in the same-root multi-layer NAT network, in an embodiment of the present invention, a service resource address acquisition system is provided for use in the same-root multi-layer NAT network , help the service resource requester obtain the network address and port of the network service resource in the network environment.

图2所示为服务资源地址获取系统结构示意图。服务资源地址获取系统10包括:索引服务装置2001,用于记录公有网络3及各私有网络中的服务器3001的网络地址和端口,并为公有网络3及各私有网络中的用户终端设备6001提供服务器3001的网络地址和端口;顶级服务总线装置1,分别与索引服务装置2001和公有网络相连接,用于将索引服务装置接入公有网络3;服务总线装置2,分别与索引服务装置2001和私有网络相连接,用于将索引服务装置2001接入私有网络。索引服务装置2001通过顶级服务总线装置1同公有网络3相连,接入现有网络,使用公有网络的网络地址进行编址,即为公有网络的一部分;索引服务装置2001通过服务总线装置2同私有网络相连,接入现有网络,使用相连的私有网络的网络地址进行编址,即为接入的私有网络的一部分。FIG. 2 is a schematic structural diagram of a system for obtaining service resource addresses. The service resource address acquisition system 10 includes: an index service device 2001, which is used to record the network address and port of the server 3001 in the public network 3 and each private network, and provide server information for the user terminal equipment 6001 in the public network 3 and each private network. The network address and port of 3001; the top-level service bus device 1 is connected to the index service device 2001 and the public network respectively, and is used to connect the index service device to the public network 3; the service bus device 2 is connected to the index service device 2001 and the private network respectively. The network is connected to connect the index service device 2001 to the private network. The index service device 2001 is connected to the public network 3 through the top-level service bus device 1, accesses the existing network, and uses the network address of the public network for addressing, which is a part of the public network; the index service device 2001 communicates with the private network through the service bus device 2. The network is connected and connected to the existing network, and the network address of the connected private network is used for addressing, which is a part of the connected private network.

公有网络3和私有网络可以通过独立的各个NAT设备连接在一起,也可以通过NAT设备组形成的NAT设备连接矩阵1001连接在一起。各用户终端设备6001和各服务器3001分别同公有网络3和私有网络相连。The public network 3 and the private network can be connected together through independent NAT devices, or can be connected together through a NAT device connection matrix 1001 formed by a NAT device group. Each user terminal device 6001 and each server 3001 are respectively connected to the public network 3 and the private network.

图3示出NAT设备连接矩阵1001的连接方式。在NAT设备连接矩阵1001中,NAT设备间的关系由与NAT设备连接矩阵1001连接的私有网络和公有网络决定。私有网络和公有网络同NAT设备的连接规则为:NAT设备连接矩阵1001至少有一条接入公有网络的线路5;每个私有网络至少有一条接入NAT设备连接矩阵1001的线路6;每个私有网络可以没有、也可以有多条由NAT设备连接矩阵1001向该私有网络接入的线路7。以图3a所示三级NAT网络结构为例,图3b所示为图3a的NAT设备连接矩阵1001连接示意图,其中包括公有网络3、私有网络。NAT设备连接矩阵1001通过线路5接入公有网络,私有网络通过线路6接入NAT设备连接矩阵1001,NAT设备连接矩阵1001通过线路7接入私有网络。FIG. 3 shows the connection manner of the NAT device connection matrix 1001 . In the NAT device connection matrix 1001 , the relationship between NAT devices is determined by the private network and public network connected to the NAT device connection matrix 1001 . The connection rules between the private network and the public network and the NAT device are as follows: the NAT device connection matrix 1001 has at least one line 5 connected to the public network; each private network has at least one line 6 connected to the NAT device connection matrix 1001; each private The network may not have, or may have multiple lines 7 connected to the private network by the NAT device connection matrix 1001 . Taking the three-level NAT network structure shown in FIG. 3a as an example, FIG. 3b shows a connection diagram of the NAT device connection matrix 1001 in FIG. 3a , which includes a public network 3 and a private network. The NAT device connection matrix 1001 is connected to the public network through line 5 , the private network is connected to the NAT device connection matrix 1001 through line 6 , and the NAT device connection matrix 1001 is connected to the private network through line 7 .

图4所示为索引服务装置2001的结构示意图。如图4a所示,索引服务装置2001由顶级索引服务单元2011和至少一个基本索引服务单元2021组成。顶级索引服务单元2011通过顶级服务总线装置1同公有网络3相连接;至少一个基本索引服务单元2021通过服务总线装置2同私有网络4相连接。索引服务单元为顶级索引服务单元2011和基本索引服务单元2021的统称,也可以称为索引服务设备,顶级索引服务单元2011和基本索引服务单元2021的组成结构和功能与索引服务设备即索引服务单元2801相同。FIG. 4 is a schematic structural diagram of the index service device 2001 . As shown in FIG. 4 a , the index service device 2001 is composed of a top-level index service unit 2011 and at least one basic index service unit 2021 . The top-level index service unit 2011 is connected to the public network 3 through the top-level service bus device 1 ; at least one basic index service unit 2021 is connected to the private network 4 through the service bus device 2 . The index service unit is the collective name of the top-level index service unit 2011 and the basic index service unit 2021, and can also be called an index service device. 2801 is the same.

如图4b所示,索引服务单元2801包括:索引服务逻辑控制单元2100、基本配置信息记录表2101、层级信息记录表2102、目标索引服务装置记录表2103、子索引服务单元记录表2104、网络服务资源装置纪录表2105、消息缓存区2109、通信单元2110以及“网络服务资源地址查询消息”应答控制表2108。As shown in Figure 4b, the index service unit 2801 includes: index service logic control unit 2100, basic configuration information record table 2101, hierarchical information record table 2102, target index service device record table 2103, sub-index service unit record table 2104, network service The resource device record table 2105 , the message buffer area 2109 , the communication unit 2110 , and the response control table 2108 for "network service resource address query message".

索引服务逻辑控制单元2100用于控制索引服务的执行,分别与基本配置信息记录表2101、目标索引服务装置记录表2103、子索引服务单元记录表2104、网络服务资源装置纪录表2105、消息缓存区2109和通信单元2110连接,数据双向传输,索引服务逻辑控制单元2100与层级信息记录表2102连接,接收索引服务设备的层级信息;基本配置信息记录表2101用于记录本索引服务单元标识、本索引服务单元主机地址和本索引服务单元服务端口;层级信息记录表2102用于记录本索引服务单元的层级信息;目标索引服务器记录表2103用于记录祖先索引服务单元的网络地址、端口;子索引服务器记录表2104用于记录子索引服务单元的网络地址、端口、标识及对应的NAT设备的网络地址,见表1。The index service logic control unit 2100 is used to control the execution of the index service, and is respectively connected with the basic configuration information record table 2101, the target index service device record table 2103, the sub-index service unit record table 2104, the network service resource device record table 2105, and the message buffer area 2109 is connected to the communication unit 2110 for two-way data transmission, and the index service logic control unit 2100 is connected to the hierarchical information record table 2102 to receive the hierarchical information of the index service equipment; the basic configuration information record table 2101 is used to record the index service unit identification, the index The service unit host address and the service port of the index service unit; the level information record table 2102 is used to record the level information of the index service unit; the target index server record table 2103 is used to record the network address and port of the ancestor index service unit; the child index server The record table 2104 is used to record the network address, port, and identifier of the sub-index service unit and the network address of the corresponding NAT device, see Table 1.

表1子索引服务单元记录表Table 1 Sub-index service unit record table

标识logo 网络地址website address 端口port NAT设备网络地址NAT device network address Config103Config103 10.23.0.2210.23.0.22 1122311223 192.168.1.23192.168.1.23

网络服务资源装置纪录表2105用于记录网络服务资源标识与该资源标识对应的网络地址、端口以及该资源标识对应的NAT设备的网络地址,见表2;The network service resource device record table 2105 is used to record the network service resource identifier, the network address and port corresponding to the resource identifier, and the network address of the NAT device corresponding to the resource identifier, see Table 2;

表2网络服务资源记录表Table 2 Network service resource record table

标识logo 网络地址website address 端口port NAT设备网络地址NAT device network address Server128Server128 10.23.0.12810.23.0.128 8080 192.168.1.23192.168.1.23

消息缓存区2109用于暂存接收到的数据分组中的信息;The message buffer area 2109 is used to temporarily store the information in the received data packet;

通信单元2110同顶级服务总线装置或服务总线装置连接,负责收发基本配置信息、层级信息、目标索引服务装置信息、子索引服务单元信息和网络服务资源装置信息;The communication unit 2110 is connected with the top-level service bus device or the service bus device, and is responsible for sending and receiving basic configuration information, layer information, target index service device information, sub-index service unit information and network service resource device information;

“网络服务资源地址查询消息”应答控制表2108用于控制网络服务资源地址查询请求的应答消息的生成,见表3。The "network service resource address query message" response control table 2108 is used to control the generation of the response message to the network service resource address query request, see Table 3.

表3“网络服务资源地址查询消息”应答控制表Table 3 "Network service resource address query message" response control table

应答消息控制码Reply message control code     消息类型message type 答复单元(Y/N)Answer unit (Y/N) 重定向目标(Y/N)Redirect target (Y/N) 重定向策略(上级、下级、顶级)Redirect strategy (superior, subordinate, top-level) 服务资源(Y/N)Service resources (Y/N)     0000000000     失败 fail     NN     NN     NN     0010000100     成功 success     NN     NN     YY     1110011100     重定向Redirect     YY     YY     下级Subordinate     YY

索引服务逻辑控制单元从基本配置信息记录表2101读取本索引服务单元标识、本索引服务单元主机地址、本索引服务单元服务端口,从层级信息记录2102读取记录层级信息,从目标索引服务器记录2103读取记录祖先索引服务器的网络地址、端口,从子索引服务器记录表2104读取记录子索引服务单元的网络地址、端口、标识及对应的NAT设备的网络地址,从网络服务资源装置纪录表2105读取记录服务装置的网络地址、端口、标识及对应的NAT设备的网络地址,从消息缓存区2109读取暂时保存接收到的数据分组中的信息,从通信单元2110读取收到的数据;同时,索引服务逻辑控制单元根据执行需要向基本配置信息记录表2101写入本单元标识、本单元主机地址、本单元服务端口,向层级信息记录2102写入记录层级信息,向目标索引服务器记录2103写入记录祖先索引服务器的网络地址、端口,向子索引服务器记录表2104写入记录子索引服务单元的网络地址、端口、标识及对应的NAT设备的网络地址,向网络服务资源装置纪录表2105写入记录服务装置的网络地址、端口、标识及对应的NAT设备的网络地址,向消息缓存区2109写入暂时保存接收到的数据分组中的信息,向通信单元2110写入需要发出的数据。The index service logic control unit reads the identification of the index service unit, the host address of the index service unit, and the service port of the index service unit from the basic configuration information record table 2101, reads the record level information from the level information record 2102, and records it from the target index server. 2103 reads and records the network address and port of the ancestor index server, reads and records the network address, port, identification of the sub-index service unit and the network address of the corresponding NAT device from the sub-index server record table 2104, and reads and records the network address of the sub-index service unit from the network service resource device record table 2105 reads the network address, port, identification of the recording service device and the network address of the corresponding NAT device, reads the information in the temporarily stored data packet received from the message buffer area 2109, and reads the received data from the communication unit 2110 At the same time, the index service logic control unit writes the unit identification, the host address of the unit, and the service port of the unit to the basic configuration information record table 2101 according to the execution needs, writes the record level information to the level information record 2102, and records the level information to the target index server 2103 writes and records the network address and port of the ancestor index server, writes to the sub-index server record table 2104 the network address of the record sub-index service unit, port, identification and the network address of the corresponding NAT device, and writes to the network service resource device record table 2105 writes the network address, port, identification of the recording service device and the network address of the corresponding NAT device, writes into the message buffer 2109 to temporarily save the information in the received data packet, and writes the data to be sent to the communication unit 2110 .

索引服务逻辑控制单元根据执行需要从“网络服务资源地址查询消息”应答控制表2108读取控制信息生成应答消息。The indexing service logic control unit reads the control information from the "network service resource address query message" response control table 2108 to generate a response message according to execution needs.

在本发明的实施例的多级NAT网络环境中,索引服务装置为网络中各种服务资源提供注册服务,同时为请求网络服务资源的客户提供网络服务资源对应的网络地址和端口查询服务。In the multi-level NAT network environment of the embodiment of the present invention, the index service device provides registration services for various service resources in the network, and provides network address and port query services corresponding to the network service resources for customers who request network service resources.

当对同根NAT设备下的私有网络的网络资源提供注册和查询时,需要一个索引服务单元加入索引服务装置,在索引服务装置中为所述网络资源提供索引服务。索引服务单元加入索引服务装置的过程包括:由顶级索引服务单元启动,完成索引服务装置初识化,通过服务总线装置接入私有网络,可以进行网络服务资源注册和网络服务资源查询;其次,根NAT设备控制的网络中的基本索引服务单元向索引服务装置注册加入系统;再次,第二层NAT基本索引服务单元向索引服务装置注册加入系统;再次,第三层NAT基本索引服务单元向索引服务装置注册加入系统。按上述方式,根据需要,基本索引服务单元顺序加入索引服务装置,为服务装置端地址获取系统10提供索引服务。公有网络中只有一个顶级索引服务单元;每个私有网络中只有一个基本索引服务单元。索引服务单元可以为同一私有网络中的多台服务器注册。When registering and querying the network resources of the private network under the same root NAT device, an index service unit needs to be added to the index service device to provide index services for the network resources in the index service device. The process of the index service unit joining the index service device includes: starting from the top-level index service unit, completing the initial identification of the index service device, accessing the private network through the service bus device, and performing network service resource registration and network service resource query; secondly, the root The basic index service unit in the network controlled by the NAT device registers with the index service device to join the system; again, the second layer NAT basic index service unit registers with the index service device to join the system; again, the third layer NAT basic index service unit registers with the index service device The device registers with the system. In the manner described above, the basic index service units are sequentially added to the index service device as needed to provide index service for the server device end address acquisition system 10 . There is only one top-level index service unit in a public network; there is only one base index service unit in each private network. The indexing service can register for multiple servers in the same private network.

收到下层索引服务单元的注册消息的索引服务单元按如下步骤执行,索引服务单元根据注册申请的数据分组的源地址和该注册申请消息中携带的索引服务单元网络地址,判断携带的索引服务单元是否在同根NAT设备控制的网络中;如果不在NAT设备控制的网络中,说明该配置服务器不在同根NAT网络中,返回注册失败消息;如果在NAT设备控制的网络中,提取该注册请求中的层级信息,如果层级比当前索引服务单元大1,则在子索引服务单元记录表中记录该索引服务单元的网络地址、端口、标识及对应的NAT设备的网络地址,向提出注册的索引服务单元返回注册成功消息。如果层级不比当前索引服务单元大1,则在子索引服务单元记录表查找同一NAT设备对应的索引服务单元,如果该索引服务单元存在,向提出注册请求的索引服务单元返回包含NAT设备对应的索引服务单元的网络地址和端口的应答消息,提出注册请求的索引服务单元则向所述对应的索引服务单元发出注册请求,如上流程重新执行;如果子索引服务单元记录表中没有该NAT设备对应的索引服务单元的记录,向提出注册请求的索引服务单元返回注册失败消息。The index service unit that receives the registration message from the lower index service unit performs the following steps. The index service unit judges the index service unit carried according to the source address of the data packet of the registration application and the network address of the index service unit carried in the registration application message. Whether it is in the network controlled by the same root NAT device; if it is not in the network controlled by the NAT device, it means that the configuration server is not in the same root NAT network, and returns a registration failure message; if it is in the network controlled by the NAT device, extract the level in the registration request information, if the level is 1 greater than the current index service unit, record the network address, port, identifier and network address of the corresponding NAT device in the sub-index service unit record table, and return to the index service unit that proposed registration Registration success message. If the level is not greater than the current index service unit by 1, search the index service unit corresponding to the same NAT device in the sub-index service unit record table, and if the index service unit exists, return the index corresponding to the NAT device to the index service unit that made the registration request For the response message of the network address and port of the service unit, the index service unit that made the registration request sends a registration request to the corresponding index service unit, and the above process is re-executed; if there is no corresponding NAT device in the sub-index service unit record table The record of the index service unit returns a registration failure message to the index service unit that made the registration request.

图5示出索引服务装置组建流程,用于说明根NAT设备下的基本索引服务单元如何加入索引服务装置,如图所示,索引服务装置2 001通过顶级索引服务单元2011与公有网络相连接进行初识化。该顶级索引服务单元2011配有全球唯一IP地址,该地址及提供服务的端口在系统内为公知服务入口。NAT设备1010直接接入公有网络,为根NAT设备。基本索引服务单元2021与根NAT设备控制的网络相连接。NAT设备对经过的数据分组的源或目的地址进行修改,该图中忽略NAT设备对数据分组修改的描述。以下说明索引服务装置组建的具体流程:Fig. 5 shows the process of establishing the index service device, which is used to illustrate how the basic index service unit under the root NAT device joins the index service device. As shown in the figure, the index service device 2001 is connected to the public network through the top index service unit 2011. Initialization. The top-level index service unit 2011 is equipped with a globally unique IP address, and the address and the service port are well-known service entrances in the system. The NAT device 1010 directly accesses the public network and is the root NAT device. The basic index service unit 2021 is connected to the network controlled by the root NAT device. The NAT device modifies the source or destination address of the passed data packet, and the description of the modification of the data packet by the NAT device is ignored in this figure. The following describes the specific process of setting up the index service device:

●根NAT设备控制的网络中的基本索引服务单元2021向顶级索引服务单元2011发送注册申请消息;该消息中包括索引服务单元2021的网络地址、端口、标识、预设层级信息为1,表明该索引服务单元2021位于根NAT设备控制的网络到公有网络的最短距离。The basic index service unit 2021 in the network controlled by the root NAT device sends a registration application message to the top-level index service unit 2011; the message includes the network address, port, identification, and preset level information of the index service unit 2021 as 1, indicating that the The index service unit 2021 is located at the shortest distance from the network controlled by the root NAT device to the public network.

●顶级索引服务单元2011根据携带该注册申请的数据分组的网络地址及该注册申请消息中携带的索引服务单元网络地址,判断该配置服务器是否在NAT设备控制的网络中;如果在NAT设备控制的网络中,提取该注册请求中的层级信息,如果层级比当前索引服务单元大1,则在子索引服务单元记录表中记录该索引服务单元2021的网络地址、端口、标识及对应的NAT设备1010的网络地址,向索引服务单元2021返回注册成功消息。如果层级不比当前索引服务单元大1,同时子索引服务单元记录表中没有该NAT设备对应的索引服务单元的记录,返回注册失败消息;如果不在NAT设备控制的网络中,返回注册失败消息。The top-level index service unit 2011 judges whether the configuration server is in the network controlled by the NAT device according to the network address of the data packet carrying the registration application and the network address of the index service unit carried in the registration application message; if it is in the network controlled by the NAT device In the network, extract the level information in the registration request, if the level is 1 greater than the current index service unit, record the network address, port, identification and corresponding NAT device 1010 of the index service unit 2021 in the sub-index service unit record table the network address, and return a registration success message to the index service unit 2021. If the level is not greater than the current index service unit by 1, and there is no record of the index service unit corresponding to the NAT device in the sub-index service unit record table, a registration failure message will be returned; if it is not in the network controlled by the NAT device, a registration failure message will be returned.

图6示出索引服务装置组建流程,用于说明第二层NAT设备下的基本索引服务单元加入索引服务装置的流程。该顶级索引服务单元2011配有全球唯一IP地址,该地址及提供服务的端口在系统内为公知服务入口,或可通过系统定义的方法获得。第一NAT设备1010直接接入公有网络,为根NAT设备。第一索引服务单元2021部署在根NAT设备1010控制的网络中。第二NAT设备1020直接接入根NAT设备1010控制的网络,第二索引服务单元2031部署在第二NAT设备1020控制的网络中。NAT设备对经过的数据分组的源或目的地址进行修改,该图中忽略NAT设备对数据分组修改的描述。以下说明索引服务装置组建的具体流程:FIG. 6 shows the establishment process of the index service device, which is used to illustrate the process of adding the basic index service unit under the second-layer NAT device to the index service device. The top-level index service unit 2011 is equipped with a globally unique IP address, and the address and the service port are known service entrances in the system, or can be obtained through a method defined by the system. The first NAT device 1010 directly accesses the public network and is a root NAT device. The first index service unit 2021 is deployed in the network controlled by the root NAT device 1010 . The second NAT device 1020 directly accesses the network controlled by the root NAT device 1010 , and the second index service unit 2031 is deployed in the network controlled by the second NAT device 1020 . The NAT device modifies the source or destination address of the passed data packet, and the description of the modification of the data packet by the NAT device is ignored in this figure. The following describes the specific process of setting up the index service device:

●第二NAT设备1020控制的网络中的第二索引服务单元2031向顶级索引服务单元2011发起注册申请消息,该消息中包括第二索引服务单元2031的网络地址、端口、标识、预制层级信息为2,表明该索引服务单元2031位于第二NAT设备1020控制的网络到公有网络的最短距离。The second index service unit 2031 in the network controlled by the second NAT device 1020 initiates a registration application message to the top-level index service unit 2011, and the message includes the network address, port, identification, and prefabricated level information of the second index service unit 2031 as 2, indicating that the index service unit 2031 is located at the shortest distance from the network controlled by the second NAT device 1020 to the public network.

●顶级索引服务单元2011根据携带该注册申请的数据分组的网络地址及该注册申请消息中携带的索引服务器网络地址,判断该配置服务器是否在NAT设备控制的网络中;如果在NAT设备控制的网络中,提取该注册请求中的层级信息,如果层级不比当前索引服务单元大1,则在子索引服务单元记录表查找同NAT设备1010对应的索引服务单元,如果该索引服务单元存在,向第二索引服务单元2031返回包含NAT设备1010对应的索引服务单元2021的网络地址和端口的应答消息。The top-level index service unit 2011 judges whether the configuration server is in the network controlled by the NAT device according to the network address of the data packet carrying the registration application and the network address of the index server carried in the registration application message; if it is in the network controlled by the NAT device , extract the level information in the registration request, if the level is not 1 greater than the current index service unit, then look up the index service unit corresponding to the NAT device 1010 in the sub-index service unit record table, if the index service unit exists, send the index service unit to the second The index service unit 2031 returns a response message including the network address and port of the index service unit 2021 corresponding to the NAT device 1010 .

●第二索引服务单元2031收到顶级索引服务单元2011的应答消息后,根据消息中包括的索引服务单元2021的网络地址、端口信息,向索引服务装置发起注册申请消息;该申请消息中包括第二索引服务单元2031的网络地址、端口、预制层级信息为2,表明该索引服务单元2031位于第二NAT设备1020控制的网络到公有网络的最短距离。After receiving the response message from the top-level index service unit 2011, the second index service unit 2031 initiates a registration application message to the index service device according to the network address and port information of the index service unit 2021 included in the message; the application message includes the first The network address, port, and prefabricated level information of the second index service unit 2031 are 2, indicating that the index service unit 2031 is located at the shortest distance from the network controlled by the second NAT device 1020 to the public network.

●第一索引服务单元2021根据携带该注册申请的数据分组的网络地址及该注册申请消息中携带的索引服务单元网络地址,判断该索引服务单元是否在NAT设备控制的网络中;如果在NAT设备控制的网络中,提取该注册请求中的层级信息,如果层级比当前索引服务单元大1,则在子索引服务单元记录表中记录该索引服务单元2031的网络地址、端口及对应的NAT设备1020的网络地址,向第二索引服务单元2031返回注册成功消息。如果层级不比当前索引服务单元大1,同时子索引服务单元记录表中没有与该NAT设备1020对应的索引服务单元的记录,返回注册失败消息;如果不在NAT设备控制的网络中,返回注册失败消息。●The first index service unit 2021 judges whether the index service unit is in the network controlled by the NAT device according to the network address of the data packet carrying the registration application and the network address of the index service unit carried in the registration application message; In the controlled network, extract the level information in the registration request, if the level is 1 greater than the current index service unit, record the network address, port and corresponding NAT device 1020 of the index service unit 2031 in the sub-index service unit record table the network address, and return a registration success message to the second index service unit 2031. If the level is not 1 greater than the current index service unit, and there is no record of the index service unit corresponding to the NAT device 1020 in the sub-index service unit record table, return a registration failure message; if not in the network controlled by the NAT device, return a registration failure message .

图7示出索引服务装置组建流程,用于说明第二层NAT设备下的基本索引服务单元代理使用广播方式加入索引服务装置的流程。顶级索引服务单元2011配有全球唯一IP地址,该地址及提供服务的端口在系统内为公知服务入口,或可通过系统定义的方法获得。第一NAT设备1010直接接入公有网络,为根NAT设备。第一索引服务单元2021部署在根NAT设备1010控制的网络中;第二NAT设备1020直接接入根NAT设备1010控制的网络,第一索引服务单元代理2032和第二索引服务单元2031部署在第二NAT设备1020控制的网络中。NAT设备对经过的数据分组地源或目的地址进行修改,该图中忽略NAT设备对数据分组修改的描述。以下说明索引服务装置组建的具体流程:Fig. 7 shows the establishment process of the index service device, which is used to explain the process of the basic index service unit agent under the second-layer NAT device joining the index service device by broadcasting. The top-level index service unit 2011 is equipped with a globally unique IP address, and the address and the service port are well-known service entrances in the system, or can be obtained through a method defined by the system. The first NAT device 1010 directly accesses the public network and is a root NAT device. The first index service unit 2021 is deployed in the network controlled by the root NAT device 1010; the second NAT device 1020 directly accesses the network controlled by the root NAT device 1010, and the first index service unit agent 2032 and the second index service unit 2031 are deployed at the In the network controlled by the second NAT device 1020 . The NAT device modifies the source or destination address of the passed data packet, and the description of the modification of the data packet by the NAT device is ignored in this figure. The following describes the specific process of setting up the index service device:

●第一索引服务单元代理2032在第二NAT设备1020控制的网络中广播包含索引服务装置网络地址和端口的消息,消息中包含被代理索引服务单元的层级信息,也就是第一索引服务单元的层级信息。The first index service unit proxy 2032 broadcasts a message containing the network address and port of the index service device in the network controlled by the second NAT device 1020, and the message contains the level information of the proxy index service unit, that is, the first index service unit Hierarchy information.

●第二索引服务单元2031监听第二NAT设备1020控制的网络中广播的包含索引服务装置网络地址和端口的消息。● The second index service unit 2031 listens to the messages broadcast in the network controlled by the second NAT device 1020 that include the network address and port of the index service device.

●第二索引服务单元2031收到包含索引服务装置网络地址和端口的消息,根据消息中提供的层级,增加一级后设置本地层级信息,并根据消息中提供的索引服务装置的网络地址和端口向第一索引服务单元2021发起注册申请消息,该消息中包括第二索引服务单元2031的网络地址、端口、预设层级信息,即表明该索引服务单元2031位于第二NAT设备1020控制的网络到公有网络的最短距离。●The second index service unit 2031 receives the message containing the network address and port of the index service device, according to the level provided in the message, set the local level information after adding one level, and according to the network address and port of the index service device provided in the message Initiate a registration application message to the first index service unit 2021, which includes the network address, port, and preset level information of the second index service unit 2031, which means that the index service unit 2031 is located in the network controlled by the second NAT device 1020. The shortest distance of the public network.

●第一索引服务单元2021根据携带该注册申请的数据分组的转换IP地址及该注册申请消息中携带的索引服务单元网络地址,判断该索引服务单元是否在NAT设备控制的网络中;如果在NAT设备控制的网络中,提取该注册请求中的层级信息,如果层级比当前索引服务单元大1,则在子索引服务单元记录表中记录该索引服务单元2031的网络地址、端口及对应的NAT设备1020的网络地址,向第二索引服务单元2031返回注册成功消息。如果层级不比当前索引服务单元大1,同时子索引服务单元记录表中没有该NAT设备1020对应的索引服务单元的记录,返回注册失败消息;如果不在NAT设备控制的网络中,返回注册失败消息。●The first index service unit 2021 judges whether the index service unit is in the network controlled by the NAT device according to the converted IP address of the data packet carrying the registration application and the network address of the index service unit carried in the registration application message; if in the NAT In the network controlled by the device, extract the level information in the registration request, if the level is 1 greater than the current index service unit, record the network address, port and corresponding NAT device of the index service unit 2031 in the sub-index service unit record table 1020, and return a registration success message to the second index service unit 2031. If the level is not 1 greater than the current index service unit, and there is no record of the index service unit corresponding to the NAT device 1020 in the sub-index service unit record table, the registration failure message is returned; if not in the network controlled by the NAT device, the registration failure message is returned.

图7所示第一索引服务单元代理不提供消息转发功能。如果必要,开发人员不难开发出有消息转发功能的索引服务器代理。The first index service unit proxy shown in FIG. 7 does not provide the message forwarding function. It is not difficult for developers to develop an index server agent with message forwarding function if necessary.

另外,该广播方式可以根据各种服务代理所处网络环境使用有线、无线或有线和无线等。In addition, the broadcast method can use wired, wireless, or both wired and wireless according to the network environment where various service agents are located.

此外,参考图5、图6和图7,按照所述的具体实施例的说明,本领域普通技术人员可以在多级NAT网络中实现索引服务装置的部署。In addition, referring to FIG. 5 , FIG. 6 and FIG. 7 , according to the description of the specific embodiments, those skilled in the art can implement the deployment of the index service device in a multi-level NAT network.

此外,考虑到安全性问题,可以对注册消息进行全部加密或局部加密。该安全性问题在构成服务端地址获取系统10的各种服务装置中都要考虑,其基本方法是对各服务装置内和服务装置间的通信消息进行全部加密或局部加密。In addition, considering security issues, all or part of the registration message can be encrypted. This security problem must be considered in various service devices constituting the server address acquisition system 10, and the basic method is to encrypt all or part of the communication messages in each service device and between service devices.

同根多级NAT网络环境下,服务器向索引服务装置2001注册网络服务资源和客户向索引服务装置2001查询网络服务资源的网络地址和端口的交互过程基本相同。图8-图11描述了这一交互过程。图中用索引服务装置客户端9004表示注册网络服务资源的服务器和查询网络服务资源的客户端,同时将服务器和客户端发向索引服务装置2001的服务装置注册消息或服务装置地址请求消息统称为服务请求消息。Under the same root multi-level NAT network environment, the interaction process of the server registering the network service resource with the index service device 2001 and the client querying the index service device 2001 for the network address and port of the network service resource are basically the same. Figures 8-11 describe this interactive process. In the figure, the index service device client 9004 is used to represent the server registering network service resources and the client querying network service resources. At the same time, the service device registration message or service device address request message sent by the server and the client to the index service device 2001 is collectively referred to as Service request message.

图8为以公有网络中索引服务装置公知网络地址和端口为基础,索引服务客户端向索引服务装置请求或提交数据的流程,用于说明索引服务装置客户端获得索引服务装置服务。顶级索引服务单元2011配有全球唯一IP地址,该地址及提供服务的端口在系统内为公知服务入口,或可通过系统定义的方法获得。第一NAT设备1010直接接入公有网络,为根NAT设备。第二基本索引服务单元2021部署在根NAT设备1010控制的网络中;第二NAT设备1020直接接入根NAT设备1010控制的网络,第三基本索引服务单元2022部署在第二NAT设备1020控制的网络中,索引服务装置客户端9004部署在第二NAT设备1020控制的网络中;NAT设备对经过的数据分组地源或目的地址进行修改,该图中忽略NAT设备对数据分组修改的描述。具体流程叙述如下:FIG. 8 is a flow chart of the index service client requesting or submitting data to the index service device based on the known network address and port of the index service device in the public network, which is used to illustrate that the index service device client obtains the service of the index service device. The top-level index service unit 2011 is equipped with a globally unique IP address, and the address and the service port are well-known service entrances in the system, or can be obtained through a method defined by the system. The first NAT device 1010 directly accesses the public network and is a root NAT device. The second basic index service unit 2021 is deployed in the network controlled by the root NAT device 1010; the second NAT device 1020 directly accesses the network controlled by the root NAT device 1010, and the third basic index service unit 2022 is deployed in the network controlled by the second NAT device 1020. In the network, the index server client 9004 is deployed in the network controlled by the second NAT device 1020; the NAT device modifies the source or destination address of the passing data packet, and the description of the modification of the data packet by the NAT device is omitted in this figure. The specific process is described as follows:

●索引服务装置客户端9004向部署在公有网络中的顶级索引服务单元2011发送服务请求消息;The index service device client 9004 sends a service request message to the top-level index service unit 2011 deployed in the public network;

●顶级索引服务单元2011收到服务请求消息后,根据逻辑判断是否能够执行,如果能够执行,返回成功消息,如果不能执行,判断是否可以重定向到子索引服务单元,如果可以,返回重定向消息,否则返回失败消息;本例子中,返回的重定向消息包括第二基本索引服务单元2021网络地址和端口消息。After receiving the service request message, the top-level index service unit 2011 judges whether it can be executed according to logic, and if it can be executed, returns a success message; if it cannot be executed, judges whether it can be redirected to the sub-index service unit, and if yes, returns a redirection message , otherwise a failure message is returned; in this example, the redirection message returned includes the network address and port information of the second basic index service unit 2021 .

●索引服务装置客户端9004根据重定向消息中包含的索引服务装置的网络地址和端口,向索引服务装置的第二基本索引服务单元2021发送服务请求消息;The index service device client 9004 sends a service request message to the second basic index service unit 2021 of the index service device according to the network address and port of the index service device included in the redirection message;

●第二基本索引服务单元2021收到服务请求消息后,根据逻辑判断是否能够执行,如果能够执行,返回成功消息,如果不能执行,判断是否可以重定向到子索引服务单元,如果可以,返回重定向消息,否则返回失败消息,本例子中返回的重定向消息包括第三基本索引服务单元2022网络地址和端口消息●After receiving the service request message, the second basic index service unit 2021 judges logically whether it can be executed, and if it can be executed, returns a success message; if not, judges whether it can be redirected to the sub-index service unit, and if yes, returns Orientation message, otherwise a failure message is returned, and the redirection message returned in this example includes the third basic index service unit 2022 network address and port message

●索引服务装置客户端9004根据应答消息中包含的索引服务装置的网络地址和端口,向索引服务装置发服务请求消息;The index service device client 9004 sends a service request message to the index service device according to the network address and port of the index service device included in the response message;

●第二基本索引服务单元2021收到服务请求消息后,根据逻辑判断是否能够执行,如果能够执行,返回成功消息,如果不能执行,判断是否可以重定向到子索引服务单元,如果可以,返回重定向消息,否则返回失败消息。●After receiving the service request message, the second basic index service unit 2021 judges logically whether it can be executed, and if it can be executed, returns a success message; if not, judges whether it can be redirected to the sub-index service unit, and if yes, returns Orientation message, otherwise a failure message is returned.

图8中的请求消息可以通过有线或/和无线收发。The request message in FIG. 8 can be sent and received by wire or/and wirelessly.

图9为以本地存储的索引服务装置网络地址和端口为基础,索引服务客户端向索引服务装置请求或提交数据的流程。该流程图是索引服务装置客户端获得索引服务装置服务的例子。顶级索引服务单元2011配有全球唯一IP地址,该地址及提供服务的端口在系统内为公知服务入口,或可通过系统定义的方法获得。第一NAT设备1010直接接入公有网络,为根NAT设备。第二基本索引服务单元2021部署在根NAT设备1010控制的网络中;第二NAT设备1020直接接入根NAT设备1010控制的网络,第三基本索引服务单元2022部署在第二NAT设备1020控制的网络中,索引服务装置客户端9004部署在第二NAT设备1020控制的网络中;NAT设备对经过的数据分组的源或目的地址进行修改,该图中忽略NAT设备对数据分组修改的描述。具体流程叙述如下:FIG. 9 is a flowchart of the index service client requesting or submitting data to the index service device based on the locally stored network address and port of the index service device. The flow chart is an example of the index server client obtaining the index service device service. The top-level index service unit 2011 is equipped with a globally unique IP address, and the address and the service port are well-known service entrances in the system, or can be obtained through a method defined by the system. The first NAT device 1010 directly accesses the public network and is a root NAT device. The second basic index service unit 2021 is deployed in the network controlled by the root NAT device 1010; the second NAT device 1020 directly accesses the network controlled by the root NAT device 1010, and the third basic index service unit 2022 is deployed in the network controlled by the second NAT device 1020. In the network, the index service device client 9004 is deployed in the network controlled by the second NAT device 1020; the NAT device modifies the source or destination address of the passing data packet, and the description of the modification of the data packet by the NAT device is omitted in this figure. The specific process is described as follows:

●索引服务装置客户端9004向部署在第二NAT设备1020控制的网络中的第三基本索引服务单元2022发服务请求消息;The index service device client 9004 sends a service request message to the third basic index service unit 2022 deployed in the network controlled by the second NAT device 1020;

●第三基本索引服务单元2022收到服务请求消息后,根据逻辑判断是否能够执行,如果能够执行,返回成功消息,如果不能执行,判断是否为顶级索引服务单元,如果是,返回失败消息,如果不是,返回目标索引服务装置记录中的网络地址和端口,本例子中返回包含第二基本索引服务单元2021网络地址和端口的重定向消息。After the third basic index service unit 2022 receives the service request message, it judges logically whether it can be executed, if it can be executed, it returns a success message, if it cannot be executed, it judges whether it is a top-level index service unit, if yes, it returns a failure message, if No, return the network address and port in the record of the target index service device, in this example return a redirection message including the network address and port of the second basic index service unit 2021 .

●索引服务装置客户端9004根据应答消息中包含的索引服务装置的网络地址和端口,向索引服务装置的第二基本索引服务单元2021发服务请求消息;The index service device client 9004 sends a service request message to the second basic index service unit 2021 of the index service device according to the network address and port of the index service device included in the response message;

●第二基本索引服务单元2021收到服务请求消息后,根据逻辑判断是否能够执行,如果能够执行,返回成功消息,如果不能执行,判断是否为顶级索引服务单元,如果是,返回失败消息,如果不是,返回目标索引服务装置记录中的网络地址和端口,本例子中返回包含顶级索引服务单元2011网络地址和端口的重定向消息。After receiving the service request message, the second basic index service unit 2021 judges logically whether it can be executed, and if it can be executed, returns a success message; if not, judges whether it is a top-level index service unit, and if so, returns a failure message, if No, return the network address and port in the record of the target index service device. In this example, return a redirection message including the network address and port of the top-level index service unit 2011.

●索引服务装置客户端9004根据应答消息中包含的索引服务装置的网络地址和端口,向索引服务装置发服务请求消息;The index service device client 9004 sends a service request message to the index service device according to the network address and port of the index service device included in the response message;

●顶级索引服务单元2011收到服务请求消息后,根据逻辑判断是否能够执行,如果能够执行,返回成功消息,如果不能执行,判断是否为顶级索引服务单元,如果是,返回失败消息,如果不是,返回目标索引服务装置记录中的网络地址和端口。After the top-level index service unit 2011 receives the service request message, it judges logically whether it can be executed, and if it can be executed, it returns a success message; if it cannot be executed, it judges whether it is a top-level index service unit; Returns the network address and port in the target index server record.

图9中的请求消息可以通过有线或/和无线收发。The request message in FIG. 9 can be sent and received by wire or/and wirelessly.

图10为通过监听包含索引服务装置网络地址和端口为基础,索引服务客户端向索引服务装置请求或提交数据的流程。该流程图是索引服务装置客户端获得索引服务装置服务的例子。顶级索引服务单元2011配有全球唯一IP地址,该地址及提供服务的端口在系统内为公知服务入口,或可通过系统定义的方法获得。第一NAT设备1010直接接入公有网络,为根NAT设备。第二基本索引服务单元2021部署在根NAT设备1010控制的网络中;第二NAT设备1020直接接入根NAT设备1010控制的网络,第三基本索引服务单元2022部署在第二NAT设备1020控制的网络中,索引服务装置客户端9004部署在第二NAT设备1020控制的网络中;NAT设备对经过的数据分组地源或目的地址进行修改,该图中忽略NAT设备对数据分组修改的描述。具体流程叙述如下:FIG. 10 is a flow of the index service client requesting or submitting data to the index service device based on monitoring the network address and port of the index service device. The flow chart is an example of the index server client obtaining the index service device service. The top-level index service unit 2011 is equipped with a globally unique IP address, and the address and the service port are well-known service entrances in the system, or can be obtained through a method defined by the system. The first NAT device 1010 directly accesses the public network and is a root NAT device. The second basic index service unit 2021 is deployed in the network controlled by the root NAT device 1010; the second NAT device 1020 directly accesses the network controlled by the root NAT device 1010, and the third basic index service unit 2022 is deployed in the network controlled by the second NAT device 1020. In the network, the index server client 9004 is deployed in the network controlled by the second NAT device 1020; the NAT device modifies the source or destination address of the passing data packet, and the description of the modification of the data packet by the NAT device is omitted in this figure. The specific process is described as follows:

●第三基本索引服务单元2022在所属NAT控制的网络中广播包含索引服务装置网络地址和端口的消息;●The third basic index service unit 2022 broadcasts a message including the network address and port of the index service device in the network controlled by the NAT to which it belongs;

●索引服务装置客户端9004在所属NAT控制的网络中监听包含索引服务装置网络地址和端口的消息的广播消息;The index service device client 9004 monitors the broadcast message containing the network address and port of the index service device in the network controlled by the NAT to which it belongs;

●索引服务装置客户端9004收到第三基本索引服务单元2022在所属NAT控制的网络中广播的包含索引服务装置网络地址和端口的消息后,向索引服务装置发服务请求消息;The index service device client 9004 sends a service request message to the index service device after receiving the message containing the network address and port of the index service device broadcast by the third basic index service unit 2022 in the network controlled by the NAT to which it belongs;

●第三基本索引服务单元2022收到上述服务请求消息后,根据逻辑判断是否能够执行,如果能够执行,返回成功消息,如果不能执行,判断是否符合向索引服务装置转发该服务请求的条件,如果符合,则索引服务装置转发该服务请求,如果不符合,向索引服务装置转发该服务请求的条件,判断是否可以重定向到子索引服务单元,如果可以,返回重定向消息,否则返回失败消息,本例子中向索引服务装置客户端9004返回包含服务装置网络地址和端口的成功消息。After receiving the above-mentioned service request message, the third basic index service unit 2022 judges logically whether it can be executed, and if it can be executed, returns a success message; Meet, then the index service device forwards the service request, if not, forward the condition of the service request to the index service device, judge whether it can be redirected to the sub-index service unit, if yes, return the redirection message, otherwise return the failure message, In this example, a success message including the network address and port of the service device is returned to the index service device client 9004.

此外,图10中所述通过广播形式发布服务入口的方式可以使用公示、预先告知用户等方式代替,由用户通过人工的方式对服务客户端9004进行配置。In addition, the method of broadcasting the service entry in FIG. 10 can be replaced by means of publicity and pre-informing the user, and the user configures the service client 9004 manually.

图11为通过监听包含索引服务装置网络地址和端口为基础,索引服务客户端向索引服务装置请求或提交数据的流程。该流程图是索引服务装置客户端获得索引服务装置服务的例子。顶级索引服务单元2011配有全球唯一IP地址,该地址及提供服务的端口在系统内为公知服务入口,或可通过系统定义的方法获得。第一NAT设备1010直接接入公有网络,为根NAT设备。第二基本索引服务单元2021部署在根NAT设备1010控制的网络中;第二NAT设备1020直接接入根NAT设备1010控制的网络,第二基本索引服务单元代理2023部署在第二NAT设备1020控制的网络中,索引服务装置客户端9004部署在第二NAT设备1020控制的网络中;NAT设备对经过的数据分组地源或目的地址进行修改,该图中忽略NAT设备对数据分组修改的描述。服务功能实体代理和被代理服务对象间可以有私有通信接口,用于服务功能实体代理和被代理服务对象间的信息交互。该图中忽略NAT路由设备对数据分组的转换。FIG. 11 is a flow of the index service client requesting or submitting data to the index service device based on monitoring the network address and port of the index service device. The flow chart is an example of the index server client obtaining the index service device service. The top-level index service unit 2011 is equipped with a globally unique IP address, and the address and the service port are well-known service entrances in the system, or can be obtained through a method defined by the system. The first NAT device 1010 directly accesses the public network and is a root NAT device. The second basic index service unit 2021 is deployed in the network controlled by the root NAT device 1010; the second NAT device 1020 directly accesses the network controlled by the root NAT device 1010, and the second basic index service unit agent 2023 is deployed in the network controlled by the second NAT device 1020 In the network, the index service device client 9004 is deployed in the network controlled by the second NAT device 1020; the NAT device modifies the source or destination address of the passing data packet, and the description of the modification of the data packet by the NAT device is ignored in this figure. There may be a private communication interface between the service function entity proxy and the proxied service object, which is used for information exchange between the service function entity proxy and the proxied service object. In this figure, the transformation of the data packet by the NAT routing device is ignored.

●第二基本索引服务单元代理2023部署在第二NAT设备1020控制的网络中广播包含索引服务装置网络地址和端口的消息;●The second basic index service unit agent 2023 is deployed in the network controlled by the second NAT device 1020 to broadcast a message containing the network address and port of the index service device;

●索引服务装置客户端9004在所属NAT控制的网络中监听包含索引服务装置网络地址和端口的消息的广播消息;The index service device client 9004 monitors the broadcast message containing the network address and port of the index service device in the network controlled by the NAT to which it belongs;

●索引服务装置客户端9004收到第二基本索引服务单元代理2023在所属NAT控制的网络中广播的包含索引服务装置网络地址和端口的消息后,索引服务装置2022发服务请求消息;After the index service device client 9004 receives the message containing the network address and port of the index service device broadcast by the agent 2023 of the second basic index service unit in the network controlled by the NAT to which it belongs, the index service device 2022 sends a service request message;

●第二基本索引服务单元2021收到上述服务请求消息后,根据逻辑判断是否能够执行,如果能够执行,返回成功消息,如果不能执行,判断是否符合向索引服务装置转发该服务请求的条件,如果符合,则索引服务装置转发该服务请求,如果不符合,向索引服务装置转发该服务请求的条件,判断是否可以重定向到子索引服务单元,如果可以,返回重定向消息,否则返回失败消息,本例子中向索引服务装置客户端9 004返回包含服务装置网络地址和端口的成功消息。After receiving the above-mentioned service request message, the second basic index service unit 2021 judges logically whether it can be executed, and if it can be executed, returns a success message; if it cannot be executed, it judges whether it meets the conditions for forwarding the service request to the index service device, if Meet, then the index service device forwards the service request, if not, forward the condition of the service request to the index service device, judge whether it can be redirected to the sub-index service unit, if yes, return the redirection message, otherwise return the failure message, In this example, a successful message including the server network address and port is returned to the index server client 9004.

图11所示第二索引服务单元代理不提供消息转发功能。如果必要,开发人员不难开发出有消息转发功能的索引服务器代理。The second index service unit proxy shown in FIG. 11 does not provide the message forwarding function. It is not difficult for developers to develop an index server agent with message forwarding function if necessary.

另外,在多级NAT网络中,开发人员不难根据本流程提出相关流程。流程的执行过程可以是有线或/和无线。In addition, in a multi-level NAT network, it is not difficult for developers to propose relevant procedures according to this procedure. The execution process of the process can be wired or/and wireless.

此外,图11中所述通过广播形式发布服务入口的方式可以使用公示、预先告知用户等方式代替,由用户通过人工的方式对服务客户端进行配置,索引服务装置中的消息及相关内容见下表4。In addition, the method of broadcasting the service entry in Figure 11 can be replaced by means of publicity, pre-informing users, etc., and the user configures the service client manually. The information and related content in the index service device are as follows Table 4.

表4索引服务装置配置表Table 4 Index service device configuration table

  消息名称message name   目的 Purpose 消息基本内容Basic content of the message 附加说明Additional information   网络服务资源注册消息Web service resource registration message   服务器向索引服务装置注册网络服务资源The server registers network service resources with the index service device 消息类型标识,网络资源名称、网络地址、端口和层级信息Message type identification, network resource name, network address, port and hierarchy information 网络资源名称用URI或URL表示Network resource names are represented by URI or URL   网络服务资源地址查询消息Network service resource address query message   客户向索引服务装置查询网络服务资源的地址The client queries the address of the network service resource from the index service device 消息类型标识,网络资源名称、消息发送者标识。Message type identifier, network resource name, message sender identifier. 网络资源名称用字符串表示,如URI或URL;如果对应的重定向消息中有的答复单元,在本消息中添加答复单元信息。The network resource name is represented by a character string, such as URI or URL; if there is a reply unit in the corresponding redirection message, add the reply unit information in this message.   成功应答消息Successful response message   向消息发出者返回成功信息,Return a success message to the sender of the message, 消息类型标识,message type identifier, 对于“网络服务资源地址查询消息”的应答,包括网络服务资源的网络地址和端口。成功应答消息为应答消息的一种。The response to the "network service resource address query message" includes the network address and port of the network service resource. A successful response message is a type of response message.   失败应答消息Failed response message   向消息发出者返回失败信息Return a failure message to the sender of the message 消息类型标识,message type identifier, 对于“网络服务资源地址查询消息”的应答,包括网络服务资源的网络地址和端口号。失败应答消息为应答消息的一种。The response to the "network service resource address query message" includes the network address and port number of the network service resource. The failure reply message is a kind of reply message.   重定向消息Redirect message   向消息发出者返回还包括索引服务装置的网络地址和端口Return to the sender of the message and also include the network address and port of the index service device 消息类型标识;答复索引服务单元的网络地址;(简称答复单元)索引服务装置重定向目标的网络地址和端口。(简称重定向目标)Message type identification; network address of the reply index service unit; (reply unit for short) the network address and port of the redirection target of the index service device. (Redirect target for short) 对于“网络服务资源地址查询消息”的应答,可包含包括网络服务资源的网络地址和端口。重定向消息为应答消息的一种。The response to the "network service resource address query message" may include the network address and port of the network service resource. A redirect message is a type of reply message.

图12为索引服务装置收到服务资源注册消息、客户端发的服务资源网络地址请求消息的处理方法。Fig. 12 is a processing method for receiving a service resource registration message and a service resource network address request message sent by the client by the index service device.

S101开始;S101 starts;

S102等待接收数据;S102 waits to receive data;

S103判断是否收到数据,如果没有收到数据,转S102;如果收到数据,转S104;S103 judges whether data is received, if no data is received, go to S102; if data is received, go to S104;

S104判断消息类型,如果为“网络服务资源地址查询消息”转S110,如果为“网络服务资源注册消息”转S130,如果非上述消息转S120;S104 judges the message type, if it is a "network service resource address query message", go to S110, if it is a "network service resource registration message", go to S130, if it is not the above message, go to S120;

S130提取“网络服务资源注册消息”内容;S130 extracting the content of the "network service resource registration message";

S131判断携带消息的数据分组是否经过NAT设备,即分组的源地址和消息中的消息发出者网络地址是否相同,如果相同转S133,如果不同转S134;S131 judges whether the data packet carrying the message passes through the NAT device, that is, whether the source address of the packet is the same as the network address of the message sender in the message, if they are the same, turn to S133, if they are different, turn to S134;

S133判别注册消息中的层级信息是否比当前索引服务单元的层级大1,如果是,转S134,如果不是,转S135;S133 judges whether the level information in the registration message is greater than the level of the current index service unit by 1, if yes, turn to S134, if not, turn to S135;

S134记录服务资源注册消息的内容及相关信息,如NAT设备的地址,并返回成功应答消息;S134 records the content and relevant information of the service resource registration message, such as the address of the NAT device, and returns a successful response message;

S135判别该NAT设备控制的网络中是否有索引服务单元,如果没有,转S136,如果有,转S137;S135 judges whether there is an index service unit in the network controlled by the NAT device, if not, turn to S136, if there is, turn to S137;

S136向发请求消息者返回失败应答消息;S136 returns a failure response message to the sender of the request message;

S137向发请求消息者返回索引服务单元的网络地址和端口;S137 returns the network address and port of the index service unit to the sender of the request message;

S110“网络服务资源地址查询消息”处理流程(见图16),并返回S102;S110 "network service resource address query message" processing flow (see Figure 16), and return to S102;

S120向发请求消息者返回失败应答消息。S120 Return a failure response message to the sender of the request message.

图13为服务器处理“网络服务资源注册消息”交互过程的流程图。Fig. 13 is a flow chart of the interaction process of the server processing the "network service resource registration message".

S200开始;S200 start;

S201将发装置注册消息的尝试次数设为0,设置最大尝试次数,并设定超时控制;S201 sets the number of attempts to send the device registration message to 0, sets the maximum number of attempts, and sets timeout control;

S202在得到索引服务装置的网络地址和端口后,向索引服务装置发“网络服务资源注册消息”,消息中至少包括服务装置的网络地址、端口及注册的资源名称等信息,尝试次数加1;S202 After obtaining the network address and port of the index service device, send a "network service resource registration message" to the index service device, the message at least includes information such as the network address, port and registered resource name of the service device, and the number of attempts is increased by 1;

S203等待应答消息;S203 waits for a response message;

S204判断是否收到数据,如果收到数据,转S208,如果没有收到数据,转S205;S204 judges whether to receive data, if received data, turn to S208, if not received data, turn to S205;

S205判断是否超时,如果没有超时,转S203,如果超时,转S206;S205 judges whether it is overtime, if not overtime, turn to S203, if overtime, turn to S206;

S206判断尝试次数是否超过限制;如果没有超过尝试次数限制,转S202,如果超过尝试次数限制,转S207;S206 judges whether the number of attempts exceeds the limit; if it does not exceed the limit of attempts, turn to S202, and if it exceeds the limit of attempts, turn to S207;

S208判断收到消息的类型,如果是“重定向应答消息”,转S221,如果是“成功应答消息”或者“失败应答消息”,转S207;S208 judges the type of the received message, if it is a "redirection response message", go to S221, if it is a "success response message" or "failure response message", go to S207;

S221提取应答消息中索引服务装置的网络地址和端口,使用新的索引服务装置的网络地址和端口替换原有索引服务装置的网络地址和端口。S221 extracts the network address and port of the indexing service device in the response message, and replaces the network address and port of the original indexing service device with the network address and port of the new indexing service device.

S207结束处理。S207 End processing.

网络服务资源查询者需要有网络服务资源地址对应表,见表5;Network service resource queryers need to have a network service resource address correspondence table, see Table 5;

表5用户终端的网络服务资源表Table 5 Network service resource list of user terminal

网络服务资源网络地址Network service resource network address 网络服务资源端口Web service resource port 网络服务资源名称Web service resource name 10.23.0.12810.23.0.128 1122311223 URL/URIURL/URI

图14为网络服务资源查询者处理“网络服务资源地址查询消息”交互过程的流程图,服务资源请求者在获得索引服务装置的网络地址和端口后,按如下步骤处理网络服务资源查询交互过程:Figure 14 is a flow chart of the network service resource queryer processing the interactive process of "network service resource address query message". After the service resource requester obtains the network address and port of the index service device, the network service resource query interaction process is processed according to the following steps:

S300开始S300 start

S301初始化超时时间、初始化最大尝试次数S301 initialization timeout, maximum number of initialization attempts

S302尝试次数初始化为0S302 The number of attempts is initialized to 0

S303根据目标索引服务装置纪录,向索引服务装置发网络服务资源地址查询消息,尝试次数加1S303 Send a network service resource address query message to the index service device according to the record of the target index service device, and add 1 to the number of attempts

S304等待应答消息;S304 waits for a response message;

S305是否收到数据,如果没有转S306,如果有转S320;Whether S305 has received the data, if not transferred to S306, if yes transferred to S320;

S306是否超时,如果是转S307,如果没有转S304;Whether S306 is timed out, if it is transferred to S307, if not transferred to S304;

S307是否超过尝试次数限制,如果不是转S309,如果是转S322;S307 Whether the number of attempts exceeds the limit, if not to S309, if it is to S322;

S322在网络服务资源表中搜索请求服务资源的纪录,如果没有转S308,如果有转S323S322 searches for the record of the requested service resource in the network service resource table, if not turn to S308, if there is turn to S323

S323提取网络服务资源表中相关纪录;S323 extracting relevant records in the network service resource table;

S308结束S308 end

S309初始化超时时间;S309 initialization timeout;

S310重新发网络服务资源地址查询消息,尝试次数加1,返回S304;S310 resends the network service resource address query message, adds 1 to the number of attempts, and returns to S304;

S320消息类型判断,如果是“失败消息”转S322,如果是“成功应答消息”转S321,S320 message type judgment, if it is a "failure message" turn to S322, if it is a "success response message" turn to S321,

如果是“重定向应答消息”转S312;If it is a "redirect response message", go to S312;

S321提取消息中网络服务资源的网络地址和端口,到S308S321 extracts the network address and port of the network service resource in the message, to S308

S312提取消息中答复索引服务装置、重定向目标的网络地址和端口;S312 extracting the network address and port of the reply indexing service device and redirection target in the message;

S313判断消息中是否存在网络服务资源的网络地址和端口,如果有转S314,如果没有转S316;S313 judges whether the network address and the port of the network service resource exist in the message, if there is, turn to S314, if not turn to S316;

S314提取消息中网络服务资源的网络地址和端口;S314 extracting the network address and port of the network service resource in the message;

S315在网络服务资源表中存储网络服务资源的网络地址、端口及资源名称,如有相关纪录替代已有记录;S315 Store the network address, port and resource name of the network service resource in the network service resource table, and replace the existing record if there is a relevant record;

S316初始化超时时间、初始化最大尝试次数;S316 initialization timeout, initialization maximum number of attempts;

S317尝试次数初始化为0;S317 The number of attempts is initialized to 0;

S318使用重定向目标的网络地址和端口代替目标索引服务装置纪录中的网络地址和端口,向索引服务装置发网络服务资源地址查询消息,如果有答复索引服务装置的网络地址,则在消息中包括答复索引服务装置的网络地址,尝试次数加1,返回S304。S318 Use the network address and port of the redirection target to replace the network address and port in the target index service device record, send a network service resource address query message to the index service device, if there is a reply to the network address of the index service device, include in the message Reply to the network address of the index service device, add 1 to the number of attempts, and return to S304.

图15为“网络服务资源地址查询消息”处理流程:Figure 15 is the processing flow of the "network service resource address query message":

S8999开始;S8999 start;

S9000提取“网络服务资源地址查询消息”内容;The S9000 extracts the content of the "network service resource address query message";

S9001携带消息的数据分组是否经过NAT设备,如果是转S9005,如果不是转S9100;Whether the data packet carrying the message of S9001 passes through the NAT device, if it is transferred to S9005, if not transferred to S9100;

S9100判断本索引服务单元是否有被请求服务装置的记录,如果没有转S9110,如果有转S9101;S9100 judges whether the index service unit has a record of the requested service device, if not, go to S9110, if yes, go to S9101;

S9101向发请求消息者返回包含被请求的服务装置的网络地址和端口的成功应答消息;S9101 returns a successful response message including the network address and port of the requested service device to the sender of the request message;

S9102结束。S9102 ends.

S9110判别本索引服务单元是否为顶级索引服务单元,如果不是转S9120,如果是转S9111;S9110 judges whether the index service unit is a top-level index service unit, if not, turn to S9120, if it is, turn to S9111;

S9111向发请求消息者返回失败消息后,到S9102;After S9111 returns a failure message to the sender of the request message, go to S9102;

S9120判别该消息中是否携带索引服务单元的网络地址,如果不是,转S9122,如果是,转S9121;S9120 judges whether the message carries the network address of the index service unit, if not, go to S9122, if yes, go to S9121;

S9121向发请求消息者返回失败消息后,到S9102;After S9121 returns a failure message to the sender of the request message, go to S9102;

S9122向发请求消息者返回包含本索引服务单元、本地目标索引服务单元的网络地址和端口的重定向消息,本索引服务单元为答复单元,本地目标索引服务单元为重定向目标,到S9102;S9122 Return a redirection message including the network address and port of the index service unit and the local target index service unit to the sender of the request message, the index service unit is the reply unit, and the local target index service unit is the redirection target, go to S9102;

S9005判别该NAT设备控制的网络中是否有索引服务单元,如果没有,转S9100,如果有,转S9200;S9005 judges whether there is an index service unit in the network controlled by the NAT device, if not, go to S9100, if yes, go to S9200;

S9200判别网络服务资源记录表中是否有被请求的网络服务资源,如果有,转S9300,如果没有,转S9201;S9200 judges whether there is the requested network service resource in the network service resource record table, if yes, go to S9300, if not, go to S9201;

S9201判别本索引服务单元是否为顶级索引服务单元,如果没有,转S9205,如果有,转S9202;S9201 judges whether the index service unit is a top-level index service unit, if not, go to S9205, if yes, go to S9202;

S9202判别该消息中是否携带索引服务单元的网络地址,如果没有,转S9204,如果有,转S9203;S9202 Determine whether the message carries the network address of the index service unit, if not, go to S9204, if yes, go to S9203;

S9203向发请求消息者返回失败消息后,到S9102;After S9203 returns a failure message to the sender of the request message, go to S9102;

S9204向发请求消息者返回包含本索引服务单元、该NAT设备对应的索引服务单元的网络地址和端口的重定向消息,本索引服务单元为答复单元,该NAT设备对应的索引服务单元为重定向目标,到S9102;S9204 Return a redirection message including the network address and port of the index service unit and the index service unit corresponding to the NAT device to the sender of the request message, the index service unit is a reply unit, and the index service unit corresponding to the NAT device is a redirection message target, to S9102;

S9205判别该消息中是否携带索引服务单元的网络地址,如果有,转S9207,如果没有,转S9206;S9205 judges whether the message carries the network address of the index service unit, if yes, go to S9207, if not, go to S9206;

S9206向发请求消息者返回包含顶级索引服务单元网络地址和端口的重定向消息,顶级索引服务单元为重定向目标,到S9102;S9206 returns a redirection message including the network address and port of the top-level index service unit to the sender of the request message, the top-level index service unit is the redirection target, and goes to S9102;

S9207判别该网络地址同本地目标索引服务器记录中的网络地址是否相等,如果相等,转S9209,如果不相等,转S9208;S9207 judges whether the network address is equal to the network address in the local target index server record, if they are equal, go to S9209, if not, go to S9208;

S9208向发请求消息者返回包含本索引服务单元、本地目标索引服务单元的网络地址和端口的重定向消息,本索引服务单元为答复单元,本地目标索引服务单元为重定向目标,到S9102;S9208 Return a redirection message including the network address and port of the index service unit and the local target index service unit to the sender of the request message, the index service unit is the reply unit, and the local target index service unit is the redirection target, go to S9102;

S9209向发请求消息者返回包含本索引服务单元、该NAT设备对应的索引服务单元的网络地址和端口的重定向消息,本索引服务单元为答复单元,该NAT设备对应的索引服务单元为重定向目标,到S9102;S9209 Return a redirection message including the network address and port of the index service unit and the index service unit corresponding to the NAT device to the sender of the request message, the index service unit is a reply unit, and the index service unit corresponding to the NAT device is a redirection message target, to S9102;

S9300判别该消息中是否携带索引服务单元的网络地址,如果是,转S9302,如果不是,转S9301S9300 judges whether the message carries the network address of the index service unit, if yes, go to S9302, if not, go to S9301

S9301向发请求消息者返回包含本索引服务单元、该NAT设备对应的索引服务单元、被请求网络服务资源的网络地址和端口的重定向消息,本索引服务单元为答复单元,该NAT设备对应的索引服务单元为重定向目标,到S9102;S9301 Return to the sender of the request message a redirection message including the index service unit, the index service unit corresponding to the NAT device, the network address and port of the requested network service resource, the index service unit is the reply unit, and the index service unit corresponding to the NAT device The indexing service unit is the redirection target, to S9102;

S9302判别该网络地址是否同本地目标索引服务器记录相同,如果是,转S9304,如果不是,转S9303;S9302 judges whether the network address is the same as the local target index server record, if yes, go to S9304, if not, go to S9303;

S9303向发请求消息者返回包含被请求的服务装置的网络地址和端口的成功应答消息后,到S9102;After S9303 returns a successful response message including the network address and port of the requested service device to the sender of the request message, go to S9102;

S9304向发请求消息者返回包含本索引服务单元、该NAT设备对应的索引服务单元、被请求网络服务资源的网络地址和端口的重定向消息,本索引服务单元为答复单元,该NAT设备对应的索引服务单元为重定向目标,到S9102。S9304 Return to the sender of the request message a redirection message including the index service unit, the index service unit corresponding to the NAT device, the network address and port of the requested network service resource, the index service unit is the reply unit, and the index service unit corresponding to the NAT device The indexing service unit is the redirection target, and it goes to S9102.

对于图15所示的“网络服务资源地址查询消息”处理流程,本发明提出另一优选的实施例,如下所述。For the processing flow of the "network service resource address query message" shown in FIG. 15 , the present invention proposes another preferred embodiment, as described below.

索引服务装置客户端在查询网络资源时,需要同索引服务装置的索引服务单元反复交互信息。由于服务资源注册在各索引服务单元中,索引服务装置不维护服务资源的全局信息,接收到查询请求的索引服务单元不知道其它索引服务单元中的信息。因此接收到查询请求的索引服务单元需要根据索引服务单元的当前状态确定答复内容。当前状态包括:索引服务单元位置状态、被请求资源状态、“网络服务资源地址查询消息”的查询请求方向。When the client of the index service device queries network resources, it needs to repeatedly exchange information with the index service unit of the index service device. Since the service resource is registered in each index service unit, the index service device does not maintain the global information of the service resource, and the index service unit that receives the query request does not know the information in other index service units. Therefore, the indexing service unit that receives the query request needs to determine the reply content according to the current state of the indexing service unit. The current state includes: the location state of the index service unit, the state of the requested resource, and the query request direction of the "network service resource address query message".

索引服务单元位置状态包括:顶级索引服务单元、中间索引服务单元、底层索引服务单元、独立顶级索引服务单元。顶级索引服务单元是指该索引服务单元只有下级子索引服务单元、没有上级索引服务单元;中间索引服务单元是指该索引服务单元有下级子索引服务单元、没有上级索引服务单元;底层索引服务单元是指该单元没有下级子索引服务单元、只有上级索引服务单元。独立顶级索引服务单元是指没有子索引服务单元的顶级索引服务单元。The location status of the index service unit includes: top-level index service unit, intermediate index service unit, bottom-level index service unit, and independent top-level index service unit. The top-level index service unit means that the index service unit has only lower-level sub-index service units and no upper-level index service unit; the intermediate index service unit means that the index service unit has lower-level sub-index service units and no upper-level index service unit; the bottom-level index service unit It means that the unit has no lower-level sub-index service unit, but only a higher-level index service unit. An independent top-level index service unit refers to a top-level index service unit without child index service units.

被请求资源状态包括:在本索引服务单元有被请求资源记录、在本索引服务单元没有被请求资源记录。The requested resource status includes: there is a requested resource record in this index service unit, and there is no requested resource record in this index service unit.

“网络服务资源地址查询消息”的查询请求方向包括:该消息是否为初始查询消息,即由用户发出、消息中不包括索引服务单元的信息;查询消息,即由用户发出、消息中包括索引服务单元的信息。根据查询消息中的包括索引服务单元的信息,收到查询消息的服务单元将查询消息进而分成向上查询消息、向下查询消息。向上查询消息是指消息中的索引服务单元为本索引服务单元的子索引服务记录表中的索引服务单元;向下查询消息是指消息中的索引服务单元为本索引服务单元的目标索引服务器记录中的索引服务单元。查询消息方向总体上分:初始查询消息、向上查询消息、向下查询消息。The query request direction of the "network service resource address query message" includes: whether the message is an initial query message, that is, sent by the user, and the information of the index service unit is not included in the message; query message, that is, sent by the user, and the index service unit is included in the message unit information. According to the information including the index service unit in the query message, the service unit receiving the query message further divides the query message into an upward query message and a downward query message. The upward query message means that the index service unit in the message is the index service unit in the sub-index service record table of this index service unit; the downward query message means that the index service unit in the message is the target index server record of this index service unit The indexing service unit in . The query message direction is generally divided into: initial query message, upward query message, and downward query message.

根据索引服务单元的位置、本索引服务单元是否存在被请求资源、查询请求方向等信息,收到“网络服务资源地址查询消息”的索引服务单元可以按表6的组合进行答复。According to the location of the index service unit, whether there is a requested resource in the index service unit, the direction of the query request, etc., the index service unit that receives the "Internet service resource address query message" can reply according to the combination in Table 6.

表6“网络服务资源地址查询消息”应答决策表Table 6 "Network service resource address query message" response decision table

索引服务单元位置状态Index service unit location status 被请求资源状态The status of the requested resource 查询请求方向query request direction 返回答复消息return reply message 答复消息附加信息Reply message additional information 顶级索引服务单元Top Index Service Unit 没找到did not find 初始查询消息initial query message 重定向消息,重定向目标为相应子索引服务单元网络地址和端口Redirection message, the redirection target is the network address and port of the corresponding sub-index service unit 答复者为本索引服务单元网络地址Respondent-based index service unit network address 顶级索引服务单元Top Index Service Unit 没找到did not find 向上查询消息query message up 失败消息failure message 顶级索引服务单元Top Index Service Unit 找到turn up 初始查询消息initial query message 重定向消息,重定向目标为相应子索引服务单元网络地址和端口,服务资源网络地址和端口Redirection message, the redirection target is the network address and port of the corresponding sub-index service unit, the network address and port of the service resource 答复者为本索引服务单元网络地址,The respondent is the network address of this index service unit, 顶级索引服务单元Top Index Service Unit 找到turn up 向上查询消息query message up 成功消息,包括服务资源网络地址和端口Success message, including service resource network address and port 中间服务单Intermediate Service Order 没找到did not find 初始查询initial query 重定向消息redirect message 重定向目标可以根据策Redirect targets can be based on policy

Yuan 消息information 略选择:上级索引服务单元、下级索引服务单元、顶级索引服务单元Slight selection: upper-level index service unit, lower-level index service unit, top-level index service unit   中间索引服务单元Intermediate index service unit   没找到 did not find   向上查询消息Query message up   重定向消息,重定向目标为本地目标索引服务器记录中的网络地址和端口Redirection message, the redirection target is the network address and port in the record of the local target index server   答复者为本索引服务单元网络地址Responder-oriented index service unit network address   中间索引服务单元Intermediate index service unit   没找到 did not find   向下查询消息Query message down   重定向消息,重定向目标为相应子索引服务单元网络地址和端口Redirection message, the redirection target is the network address and port of the corresponding sub-index service unit   答复者为本索引服务单元网络地址Responder-oriented index service unit network address   中间索引服务单元Intermediate index service unit   找到 turn up   初始查询消息Initial query message   重定向消息,重定向目标为相应子索引服务单元网络地址和端口,服务资源网络地址和端口Redirection message, the redirection target is the network address and port of the corresponding sub-index service unit, the network address and port of the service resource   答复者为本索引服务单元网络地址Responder-oriented index service unit network address   中间索引服务单元Intermediate index service unit   找到 turn up   向上查询消息Query message up   成功消息,包括服务资源网络地址和端口Success message, including service resource network address and port   答复者为本索引服务单元网络地址Responder-oriented index service unit network address   中间索引服务单元Intermediate index service unit   找到 turn up   向下查询消息Query message down   重定向消息,重定向目标为相应子索引服务单元网络地址和端口,服务资源网络地址和端口Redirection message, the redirection target is the network address and port of the corresponding sub-index service unit, the network address and port of the service resource   答复者为本索引服务单元网络地址Responder-oriented index service unit network address   底层索引服务单元The underlying index service unit   没找到 did not find   初始查询消息Initial query message   重定向消息,重定向目标为本地目标索引服务器记录中的网络地址和端口Redirection message, the redirection target is the network address and port in the record of the local target index server   答复者为本索引服务单元网络地址Responder-oriented index service unit network address   底层索引服务单元The underlying index service unit   没找到 did not find   向下查询消息Query message down   失败消息failure message   底层索引服务单元The underlying index service unit   找到 turn up   初始查询消息Initial query message   成功消息,包括服务资源网络地址和端口Success message, including service resource network address and port   独立顶级索引服务单元Independent top-level index service unit   没找到 did not find   查询消息(初始)query message (initial)   失败消息failure message   独立顶级索引服务单元Independent top-level index service unit   找到 turn up   查询消息(初始)query message (initial)   成功消息,包括服务资源网络地址和端口Success message, including service resource network address and port

基于上述应答决策表,可以使用多种方法来产生答复消息。考虑到实际运行环境中,消息并发量大、处理速度等问题。下面采用状态编码的方式,对每种情况的输入条件进行编码。在三种状态确定的状态空间中,任意两种情况的编码不相同。Based on the reply decision table described above, a number of methods can be used to generate the reply message. Taking into account the actual operating environment, the large number of concurrent messages, processing speed and other issues. In the following, the input conditions of each case are encoded by means of state encoding. In the state space determined by the three states, the encodings of any two cases are different.

在每个索引服务单元存储一个“网络服务资源地址查询消息”应答控制表,控制表中的应答消息控制码由索引单元位置状态位(索引服务单元位置状态位)、被请求资源状态位(资源状态位)、查询消息方向状态位组成(消息方向位)等组成。服务端程序使用该应答控制表控制应答消息的生成。重定向策略分为上级、下级、顶级。上级为本地目标索引服务器的纪录,下级为相应子索引服务单元的网络地址和端口,顶级为目标索引服务标索引服务单元的网络地址和端口。A "network service resource address query message" response control table is stored in each index service unit, and the response message control code in the control table consists of the index unit position status bit (index service unit position status bit), the requested resource status bit (resource Status bit), query message direction status bit composition (message direction bit) and other components. The server program uses the response control table to control the generation of response messages. Redirection strategies are divided into upper-level, lower-level, and top-level. The upper level is the record of the local target index server, the lower level is the network address and port of the corresponding sub-index service unit, and the top level is the network address and port of the target index service unit.

下面是应答消息控制码编码方案,该方案是应答消息控制码编码方案的一个例子。The following is the encoding scheme of the response message control code, which is an example of the encoding scheme of the response message control code.

索引服务单元位置状态包括:独立顶级索引服务单元(00)、顶级索引服务单元(11)、中间索引服务单元(01)、底层索引服务单元(10);The location status of the index service unit includes: an independent top index service unit (00), a top index service unit (11), an intermediate index service unit (01), and a bottom index service unit (10);

被请求资源状态:在本索引服务单元有记录(1)、在本索引服务单元没有记录(0)。The status of the requested resource: there is a record in this index service unit (1), and there is no record in this index service unit (0).

查询消息方向状态:初始查询消息(00)、向上查询消息(01)、向下查询消息(10)。Query message direction status: initial query message (00), upward query message (01), downward query message (10).

图16为“网络服务资源地址查询消息”处理流程。Fig. 16 is the processing flow of the "network service resource address query message".

S9000:开始;S9000: start;

S9001:对应答消息控制码进行初始化,例如00000;S9001: Initialize the response message control code, such as 00000;

S9002:计算索引服务单元位置状态,得到位置状态编码;使用位置状态编码对应答消息控制码中“索引服务单元位置状态位”置位,例如:与当前应答消息控制码“索引服务单元位置状态位”进行或运算;S9002: Calculate the location status of the index service unit to obtain the location status code; use the location status code to set the "index service unit location status bit" in the response message control code, for example: the same as the current response message control code "index service unit location status bit" " OR operation;

S9004:读取请求消息内容被请求服务资源,计算被请求资源状态,得到被请求资源状态编码;S9004: Read the content of the request message for the requested service resource, calculate the status of the requested resource, and obtain the status code of the requested resource;

S9005:使用资源状态编码对应答消息控制码中“资源位”置位,例如:与当前应答消息控制码“资源位”位进行或运算;S9005: Use the resource status code to set the "resource bit" in the response message control code, for example: perform an OR operation with the "resource bit" bit of the current response message control code;

S9006:检查、读取请求消息中的答复者信息,计算查询消息方向状态,得到查询消息方向状态编码;S9006: Check and read the responder information in the request message, calculate the direction status of the query message, and obtain the direction status code of the query message;

S9007:使用消息方向状态编码对应答消息控制码中“消息方向位”置位,例如:与当前应答消息控制码“消息方向位”位进行或运算;S9007: Use the message direction state code to set the "message direction bit" in the response message control code, for example: perform an OR operation with the "message direction bit" bit of the current response message control code;

S9008:判别当前应答消息控制码是否属于“网络服务资源地址查询消息”应答控制表中的应答消息控制码,如果属于转S9010,如果不属于转S9009;S9008: Determine whether the current response message control code belongs to the response message control code in the "network service resource address query message" response control table, if it belongs, go to S9010, if not, go to S9009;

S9009:向消息发起者返回失败消息,转S9012;S9009: Return a failure message to the message originator, and turn to S9012;

S9010:按“网络服务资源地址查询消息”应答控制表生成应答消息;S9010: Generate a response message according to the "network service resource address query message" response control table;

S9011:向消息发起者返回应答消息;S9011: Return a response message to the message initiator;

S9012:结束。S9012: end.

此外基于“网络服务资源地址查询消息”应答决策表,“网络服务资源地址查询消息”应答控制表中的应答消息控制码可以使用并行方式生成。In addition, based on the "network service resource address query message" response decision table, the response message control codes in the "network service resource address query message" response control table can be generated in parallel.

最后应说明的是,以上实施例仅用以说明本发明的技术方案而非对其限制,并且在应用上可以延伸到其他的修改、变化、应用和实施例,同时认为所有这样的修改、变化、应用、实施例都在本发明的精神和范围内。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention without limiting them, and can be extended to other modifications, changes, applications and embodiments in application, and all such modifications and changes are considered to be , applications, and embodiments are all within the spirit and scope of the present invention.

Claims (27)

1、一种同根多层NAT网络中服务资源的索引服务装置,包括:1. An index service device for service resources in a multi-layer NAT network with the same root, comprising: 顶级索引服务单元,通过顶级服务总线装置和公有网络连接,记录公有网络和直接与公有网络连接的NAT设备控制的网络中的服务资源的网络地址和端口,并为用户设备提供所述服务资源的网络地址和端口;The top-level index service unit is connected to the public network through the top-level service bus device, records the network address and port of the service resource in the public network and the network controlled by the NAT device directly connected to the public network, and provides the user equipment with the service resource network address and port; 至少一个基本索引服务单元,通过服务总线装置和相应的私有网络连接,记录所述私有网络以及所述私有网络通过NAT设备向下延伸的其他私有网络中的服务资源的网络地址和端口,并为所述私有网络以及所述私有网络通过NAT设备向下延伸的其他私有网络中的用户终端设备提供所述服务资源的网络地址和端口;At least one basic index service unit is connected to the corresponding private network through the service bus device, records the network addresses and ports of the service resources in the private network and other private networks that the private network extends downward through the NAT device, and provides The private network and the user terminal equipment in other private networks extending downward through the private network through the NAT device provide the network address and port of the service resource; 其中,基本索引服务单元向上层索引服务单元发出注册请求申请加入所述索引服务装置,所述上层索引服务单元确定携带所述注册请求的数据分组经过NAT设备,提取所述注册请求中的层级信息,如果所述基本索引服务单元为所述上层索引服务单元的子索引服务单元,所述上层索引服务单元完成所述基本索引服务单元的注册,如果所述基本索引服务单元不是所述上层索引服务单元的子索引服务单元,所述上层索引服务单元返回包含所述NAT设备对应的索引服务单元的网络地址和端口的应答消息。Wherein, the basic index service unit sends a registration request to the upper-level index service unit to apply for joining the index service device, and the upper-level index service unit determines that the data packet carrying the registration request passes through the NAT device, and extracts the layer information in the registration request , if the basic index service unit is a sub-index service unit of the upper-level index service unit, the upper-level index service unit completes the registration of the basic index service unit, and if the basic index service unit is not the upper-level index service unit The sub-index service unit of the unit, the upper-layer index service unit returns a response message including the network address and port of the index service unit corresponding to the NAT device. 2、权利要求1的索引服务装置,其中,如果所述基本索引服务单元的层级比所述上层索引服务单元的层级大1,则所述基本索引服务单元为所述上层索引服务单元的子索引服务单元。2. The index service device of claim 1, wherein if the level of the basic index service unit is one greater than the level of the upper index service unit, the basic index service unit is a sub-index of the upper index service unit service unit. 3、权利要求1的索引服务装置,其中,所述上层索引服务单元根据所述注册申请的数据分组的源地址和所述注册申请消息中携带的所述基本索引服务单元网络地址是否相同,判断携带所述注册请求的数据分组是否经过NAT设备。3. The index service device of claim 1, wherein the upper layer index service unit determines whether the source address of the data packet of the registration application is the same as the network address of the basic index service unit carried in the registration application message Whether the data packet carrying the registration request passes through the NAT device. 4、权利要求1的索引服务装置,其中,公有网络连接顶级索引服务单元,私有网络只连接一个基本索引服务单元,所述基本索引服务单元可以为其接入的私有网络以及接入所述私有网络的其他私有网络中的多个网络服务资源注册。4. The indexing service device of claim 1, wherein the public network is connected to the top-level indexing service unit, and the private network is only connected to one basic indexing service unit, and the basic indexing service unit can be connected to the private network and the private Multiple web service resource registrations in other private networks of the network. 5、权利要求1的索引服务装置,其中,所述上层索引服务单元可以是顶级索引服务单元,也可以是基本索引服务单元。5. The index service device of claim 1, wherein the upper-level index service unit may be a top-level index service unit or a basic index service unit. 6、一种同根多层NAT网络中服务资源的索引服务设备,包括:6. An index service device for service resources in a same-root multi-layer NAT network, comprising: 存储介质,所述存储介质用于存储记录所述索引服务设备的标识、主机地址、端口信息和层级信息,所述存储介质用于存储所述索引服务设备的直接上层和直接下层索引服务设备的网络地址和端口信息以及直接下层索引服务设备的标识与直接下层索引服务设备对应NAT设备的网络地址和端口信息,所述存储介质用于存储服务资源的网络地址、端口、资源名称及对应NAT设备的网络地址和端口信息;A storage medium, the storage medium is used to store and record the identification, host address, port information and level information of the index service device, and the storage medium is used to store the index service device directly above and directly below the index service device Network address and port information and the identification of the directly lower index service device and the network address and port information of the NAT device corresponding to the directly lower index service device, and the storage medium is used to store the network address, port, resource name and corresponding NAT device of the service resource network address and port information; 通信单元,所述通信单元同服务总线装置连接,负责收发数据;a communication unit, the communication unit is connected with the service bus device and is responsible for sending and receiving data; 逻辑控制单元,所述逻辑控制单元控制数据的收发和数据的读入和写出。A logic control unit, the logic control unit controls the sending and receiving of data and the reading and writing of data. 7、权利要求6的索引服务设备,进一步包括:7. The indexing service device of claim 6, further comprising: 层级信息记录表,用于记录所述索引服务设备的层级信息;A level information record table, used to record the level information of the index service device; 目标索引服务装置记录表,用于记录所述索引服务设备的祖先索引服务设备的网络地址和端口信息;A target index service device record table, used to record the network address and port information of the ancestor index service device of the index service device; 子索引服务单元记录表,用于记录所述索引服务设备的子索引服务设备的标识、网络地址、端口以及对应NAT设备的网络地址和端口信息;Sub-index service unit record table, used to record the identification, network address, port of the sub-index service device of the index service device, and the network address and port information of the corresponding NAT device; 网络服务资源装置记录表,用于记录服务资源的网络地址、端口、资源名称及对应NAT设备的网络地址和端口信息;The network service resource device record table is used to record the network address, port, resource name of the service resource and the network address and port information of the corresponding NAT device; 网络服务资源地址查询消息应答控制表,用于控制网络服务资源地址查询请求的应答消息的生成;The network service resource address query message response control table is used to control the generation of the response message to the network service resource address query request; 索引服务逻辑控制单元,所述索引服务逻辑控制单元分别与所述目标索引服务装置记录表、所述子索引服务单元记录表、所述网络服务资源装置记录表和所述通信单元连接,对所述目标索引服务装置记录表、所述子索引服务单元记录表、所述网络服务资源装置记录表和所述通信单元进行读写操作;所述索引服务逻辑控制单元从网络服务资源地址查询消息应答控制表读取控制信息生成应答消息;所述索引服务逻辑控制单元与层级信息记录表连接,读取层级信息。An index service logic control unit, the index service logic control unit is respectively connected with the target index service device record table, the sub-index service unit record table, the network service resource device record table and the communication unit, and controls all The target index service device record table, the sub-index service unit record table, the network service resource device record table and the communication unit perform read and write operations; the index service logic control unit queries the message response from the network service resource address The control table reads the control information to generate a response message; the index service logic control unit is connected with the layer information recording table to read the layer information. 8、权利要求7的索引服务设备,进一步包括:基本配置信息记录表,所述基本配置信息记录表与所述索引服务逻辑控制单元相连,用于记录所述索引服务设备标识、主机地址和端口信息。8. The index service device of claim 7, further comprising: a basic configuration information record table, the basic configuration information record table is connected to the index service logic control unit, and is used to record the index service device identifier, host address and port information. 9、一种同根多层NAT网络中基本索引服务单元的索引服务注册方法,所述方法包括:9. An index service registration method for a basic index service unit in a same-root multi-layer NAT network, the method comprising: 步骤10)、顶级索引服务单元开始接收注册请求,所述基本索引服务单元通过服务总线装置接入私有网络,向上层索引服务单元发出注册请求;Step 10), the top-level index service unit starts to receive the registration request, the basic index service unit accesses the private network through the service bus device, and sends a registration request to the upper-level index service unit; 步骤20)、当所述上层索引服务单元确定携带所述注册请求的数据分组是否经过NAT设备后,提取所述注册请求中的层级信息;Step 20), after the upper layer index service unit determines whether the data packet carrying the registration request passes through the NAT device, extracts the layer information in the registration request; 步骤30)、如果所述基本索引服务单元为所述上层索引服务单元的子索引服务单元,则在所述上层索引服务单元的子索引服务单元记录表中记录所述基本索引服务单元的网络地址、端口、标识及对应的NAT设备的网络地址和端口,返回成功应答消息;Step 30), if the basic index service unit is a sub-index service unit of the upper-level index service unit, record the network address of the basic index service unit in the sub-index service unit record table of the upper-level index service unit , port, identifier, and the network address and port of the corresponding NAT device, and return a successful response message; 步骤40)、如果所述基本索引服务单元不是所述上层索引服务单元的子索引服务单元,则在所述上层索引服务单元的子索引服务单元记录表查找所述NAT设备对应的索引服务单元,如果所述对应的索引服务单元存在,向提出注册请求的所述基本索引服务单元返回包含所述NAT设备对应的索引服务单元的网络地址和端口的应答消息;Step 40), if the basic index service unit is not a sub-index service unit of the upper-level index service unit, then look up the index service unit corresponding to the NAT device in the sub-index service unit record table of the upper-level index service unit, If the corresponding index service unit exists, return a response message including the network address and port of the index service unit corresponding to the NAT device to the basic index service unit that made the registration request; 步骤50)、提出注册请求的所述基本索引服务单元提取所述应答消息中的网络地址和端口后,向所述对应的索引服务单元发出注册请求。Step 50), after the basic index service unit that made the registration request extracts the network address and port in the response message, it sends a registration request to the corresponding index service unit. 10、权利要求9的方法,其中,步骤10)中,所述上层索引服务单元可以是顶级索引服务单元,也可以是基本索引服务单元。10. The method of claim 9, wherein, in step 10), the upper-level index service unit may be a top-level index service unit or a basic index service unit. 11、权利要求9的方法,其中,步骤20)进一步包括:所述上层索引服务单元根据所述注册申请的数据分组的源地址和所述注册申请消息中携带的所述基本索引服务单元网络地址是否相等,判断携带所述注册请求的数据分组是否经过NAT设备。11. The method of claim 9, wherein, step 20) further comprises: the upper layer index service unit according to the source address of the data packet of the registration application and the network address of the basic index service unit carried in the registration application message Whether they are equal, judging whether the data packet carrying the registration request passes through the NAT device. 12、权利要求9的方法,其中,步骤30)进一步包括:如果所述基本索引服务单元的层级比所述上层索引服务单元的层级大1,则所述基本索引服务单元为所述上层索引服务单元的子索引服务单元。12. The method of claim 9, wherein step 30) further comprises: if the level of the basic index service unit is 1 greater than the level of the upper index service unit, then the basic index service unit serves the upper index Unit's child index service unit. 13、权利要求9的方法,其中,公有网络连接顶级索引服务单元,私有网络只连接一个基本索引服务单元,所述基本索引服务单元可以为其接入的私有网络以及接入所述私有网络的其他私有网络中的多个网络服务资源注册。13. The method of claim 9, wherein the public network is connected to the top-level index service unit, and the private network is only connected to a basic index service unit, and the basic index service unit can be connected to the private network and the private network connected to the private network. Multiple web service resource registrations in other private networks. 14、一种同根多层NAT网络中的服务资源地址获取系统,包括:14. A system for acquiring service resource addresses in a same-root multi-layer NAT network, comprising: 权利要求3所述的索引服务装置;The index service device as claimed in claim 3; 顶级服务总线装置,分别与所述索引服务装置的顶级索引服务单元和所述公有网络相连接,将索引服务装置接入公有网络;The top-level service bus device is respectively connected to the top-level index service unit of the index service device and the public network, and connects the index service device to the public network; 服务总线装置,分别与所述索引服务装置的基本索引服务单元和私有网络相连接,将所述索引服务装置接入所述私有网络;The service bus device is respectively connected to the basic index service unit of the index service device and the private network, and connects the index service device to the private network; 其中,所述索引服务装置在接收到索引服务装置客户端通过所述顶级索引服务总线装置或者所述服务总线装置发送的网络服务资源注册/网络服务资源请求消息后,根据逻辑判断是否能够执行,如果能够执行,返回请求成功消息;对于所述网络服务资源注册消息,如果不能执行,并且可以重定向,则返回重定向消息,所述客户端重新注册;对于所述网络服务资源请求消息,如果不能执行,并且如果所述索引服务装置内接受请求的索引服务单元不是顶级索引服务单元,则返回包括所述索引服务单元的目标索引服务装置记录中网络地址和端口的重定向消息,所述客户端重新发送请求。Wherein, after the index service device receives the network service resource registration/network service resource request message sent by the index service device client through the top-level index service bus device or the service bus device, it judges whether it can be executed according to logic, If it can be executed, return a request success message; for the network service resource registration message, if it cannot be executed and can be redirected, then return a redirection message, and the client re-registers; for the network service resource request message, if cannot be executed, and if the index service unit that accepts the request in the index service device is not the top-level index service unit, return a redirection message including the network address and port in the target index service device record of the index service unit, and the client end to resend the request. 15、权利要求14的系统,其中,所述索引服务装置经顶级服务总线装置连接公有网络,使用公有网络的网络地址进行编址,成为所述公有网络的一部分。15. The system of claim 14, wherein said index service device is connected to a public network via a top-level service bus device, is addressed using a network address of the public network, and becomes a part of said public network. 16、权利要求14的系统,其中,所述索引服务装置经服务总线装置连接私有网络,使用私有网络的网络地址进行编址,成为所述接入的私有网络的一部分。16. The system of claim 14, wherein said index service device is connected to a private network via a service bus device, is addressed using a network address of the private network, and becomes a part of said accessed private network. 17、权利要求14的系统,其中,所述索引服务装置中,公有网络连接顶级索引服务单元,私有网络只连接一个基本索引服务单元,所述基本索引服务单元可以为其接入的私有网络以及接入所述私有网络的其他私有网络中的多个网络服务资源注册。17. The system of claim 14, wherein, in the index service device, the public network is connected to the top-level index service unit, and the private network is only connected to a basic index service unit, and the basic index service unit can be connected to the private network and A plurality of network service resources in other private networks accessing the private network are registered. 18、权利要求14的系统,其中,所述索引服务装置客户端包括公有网络和私有网络中的用户机和服务资源设备。18. The system of claim 14, wherein said index service device clients include user machines and service resource devices in public networks and private networks. 19、一种同根多层NAT网络中索引服务装置客户端注册网络服务资源的方法,包括:19. A method for registering network service resources by a client of an index service device in a same-root multi-layer NAT network, comprising: 步骤10)、所述索引服务装置客户端向索引服务装置发送网络服务资源注册消息,所述注册消息包括服务资源的网络地址、端口及注册的资源名称;Step 10), the index service device client sends a network service resource registration message to the index service device, and the registration message includes the network address, port and registered resource name of the service resource; 步骤20)、收到所述服务注册消息的所述索引服务装置判断所述携带注册消息的数据分组是否经过NAT设备;Step 20), the indexing service device receiving the service registration message judges whether the data packet carrying the registration message passes through the NAT device; 步骤30)、如果经过NAT设备,并且如果注册消息中的层级比所述索引服务单元的层级大1,记录包括所述NAT设备的网络地址、端口的所述服务资源注册消息,返回成功注册消息;Step 30), if the NAT device is passed, and if the level in the registration message is 1 greater than the level of the index service unit, record the service resource registration message including the network address and port of the NAT device, and return a successful registration message ; 步骤40)、如果经过NAT设备,并且如果注册消息中的层级不比所述索引服务单元层级大1,当所述NAT设备控制的网络中有索引服务单元时,向所述客户端返回包括所述索引服务单元的网络地址和端口的重定向消息;Step 40), if passing through the NAT device, and if the level in the registration message is not greater than the level of the index service unit by 1, when there is an index service unit in the network controlled by the NAT device, return to the client including the A redirection message of the network address and port of the indexing service unit; 步骤50)、所述客户端从所述重定向消息中提取所述返回的索引服务单元的网络地址和端口替换原有的索引服务装置的网络地址和端口,发出注册请求。Step 50), the client extracts the network address and port of the returned index service unit from the redirection message to replace the original network address and port of the index service device, and sends a registration request. 20、权利要求19的方法,其中,所述索引服务装置客户端包括公有网络和私有网络中的用户机和服务资源设备。20. The method of claim 19, wherein said index service device clients include user computers and service resource devices in public networks and private networks. 21、权利要求19的方法,其中,所述索引服务单元可以是顶级索引服务单元,也可以是基本索引服务单元。21. The method of claim 19, wherein the index service unit can be a top-level index service unit or a basic index service unit. 22、权利要求19的方法,其中,所述方法进一步包括:所述索引服务装置客户端设定注册请求的尝试次数和注册请求超时控制,如果注册请求超过设定的所述尝试次数或所述超时控制,结束本次请求。22. The method of claim 19, wherein the method further comprises: setting the number of attempts of registration requests and the timeout control of registration requests by the client of the index service device, if the registration request exceeds the set number of attempts or the Timeout control, end this request. 23、权利要求19的方法,其中,步骤20)进一步包括:所述索引服务装置通过判断所述注册消息的源地址和所述客户端的网络地址是否相同,确定所述注册消息是否经过NAT设备。23. The method of claim 19, wherein step 20) further comprises: said indexing service device determines whether said registration message passes through a NAT device by judging whether the source address of said registration message is the same as the network address of said client. 24、权利要求19的方法,其中,步骤20)进一步包括:如果所述注册消息没有经过NAT设备,记录注册消息的服务资源信息,返回成功应答消息。24. The method of claim 19, wherein step 20) further comprises: if the registration message does not pass through the NAT device, recording the service resource information of the registration message, and returning a success response message. 25、一种同根多层NAT网络中索引服务装置客户端的查询网络服务资源的方法,包括:25. A method for querying network service resources by a client of an index service device in a same-root multi-layer NAT network, comprising: 步骤10)、所述索引服务装置客户端判断有无来自索引服务装置的应答消息,然后向所述索引服务装置发送网络服务资源地址查询消息,所述查询消息至少包括服务资源名称,当存在来自所述索引服务装置的应答消息时,所述查询消息还包括所述应答消息中的答复者;Step 10), the client side of the index service device judges whether there is a response message from the index service device, and then sends a network service resource address query message to the index service device, the query message includes at least the name of the service resource, when there is a response message from the index service device When the response message of the index service device, the query message also includes the respondent in the response message; 步骤20)、收到所述网络服务资源查询消息的所述索引服务装置的索引服务单元判断自身是否存在被请求的所述网络服务资源,将被请求资源状态设定为找到或没找到;Step 20), the index service unit of the index service device that receives the network service resource query message determines whether the requested network service resource exists, and sets the status of the requested resource as found or not found; 步骤30)、收到所述网络服务资源查询消息的所述索引服务装置的索引服务单元确定自身的位置状态,包括:独立顶级索引服务单元、顶级索引服务单元、中间索引服务单元、底层索引服务单元;Step 30), the index service unit of the index service device that receives the network service resource query message determines its own location status, including: an independent top-level index service unit, a top-level index service unit, an intermediate index service unit, and a bottom-level index service unit unit; 步骤40)、收到所述网络服务资源查询消息的所述索引服务装置的索引服务单元根据所述查询消息中包括的所述答复者,确定查询消息方向状态:当消息中没有所述答复者时,设定为“初始查询消息”;当所述答复者为收到所述网络服务资源查询消息的所述索引服务单元的子索引服务单元,设定为“向上查询消息”;当所述答复者为收到所述网络服务资源查询消息的所述索引服务单元的目标索引服务器记录中的索引服务单元时,设定为“向下查询消息”;Step 40), the index service unit of the index service device that receives the network service resource query message determines the direction status of the query message according to the responder included in the query message: when there is no responder in the message , it is set as "initial query message"; when the responder is a sub-index service unit of the index service unit that received the network service resource query message, it is set as "upward query message"; when the When the responder is the index service unit in the target index server record of the index service unit that received the network service resource query message, it is set to "downward query message"; 步骤50)、收到所述网络服务资源查询消息的所述索引服务装置的索引服务单元根据所述被请求资源状态、所述自身的位置状态和所述查询消息方向状态在下表中匹配,返回对应答复消息;Step 50), the index service unit of the index service device that receives the network service resource query message matches in the following table according to the requested resource state, the location state of itself, and the direction state of the query message, and returns Corresponding reply message; 索引服务单元位置状态Index service unit location status 被请求资源状态The status of the requested resource 查询请求方向query request direction 返回答复消息return reply message 答复消息附加信息Reply message additional information 顶级索引服务单元Top Index Service Unit 没找到did not find 初始查询消息initial query message 重定向消息,重定向目标为相应子索引服务单元网络地址和端口Redirection message, the redirection target is the network address and port of the corresponding sub-index service unit 答复者为本索引服务单元网络地址Respondent-based index service unit network address 顶级索引服务单元Top Index Service Unit 没找到did not find 向上查询消息query message up 失败消息failure message 顶级索引服务单元Top Index Service Unit 找到turn up 初始查询消息initial query message 重定向消息,重定向目标为相应子索引服务单元网络地址和端口,服务资源网络地址和端口Redirection message, the redirection target is the network address and port of the corresponding sub-index service unit, the network address and port of the service resource 答复者为本索引服务单元网络地址,The respondent is the network address of the index service unit, 顶级索引服务单元Top Index Service Unit 找到turn up 向上查询消息query message up 成功消息,包括服务资源网络地址和端口Success message, including service resource network address and port 中间服务单元Intermediate Service Unit 没找到did not find 初始查询消息initial query message 重定向消息redirect message 重定向目标可以根据策略选择:上级索引服务单元、下级索引服务单元、顶级索引服务单元The redirection target can be selected according to the policy: upper-level index service unit, lower-level index service unit, top-level index service unit 中间索引服务单元Intermediate Index Service Unit 没找到did not find 向上查询消息query message up 重定向消息,重定向目标为本地目标索引服务器记录中的网络地址和端口Redirect message to the network address and port in the local target index server record 答复者为本索引服务单元网络地址Respondent-based index service unit network address 中间索引服务单元Intermediate Index Service Unit 没找到did not find 向下查询消息Drill down for messages 重定向消息,重定向目标为相应子索引服务单元网络地址和端口Redirection message, the redirection target is the network address and port of the corresponding sub-index service unit 答复者为本索引服务单元网络地址Respondent-based index service unit network address 中间索引服务单元Intermediate Index Service Unit 找到turn up 初始查询消息initial query message 重定向消息,重定向目标为相应子索引服务单元网络地址和端口,服务资源网络地址和端口Redirection message, the redirection target is the network address and port of the corresponding sub-index service unit, the network address and port of the service resource 答复者为本索引服务单元网络地址Respondent-based index service unit network address 中间索引服务单元Intermediate Index Service Unit 找到turn up 向上查询消息query message up 成功消息,包括服务资源网络地址和端口Success message, including service resource network address and port 答复者为本索引服务单元网络地址Respondent-based index service unit network address 中间索引服务单元Intermediate Index Service Unit 找到turn up 向下查询消息Drill down for messages 重定向消息,重定向目标为相应子索引服务单元网络地址和端口,服务资源网络地址和端口Redirection message, the redirection target is the network address and port of the corresponding sub-index service unit, the network address and port of the service resource 答复者为本索引服务单元网络地址Respondent-based index service unit network address 底层索引服务单元underlying index service unit 没找到did not find 初始查询消息initial query message 重定向消息,重定向目标为本地目标索引服务器记录中的网络地址和端口Redirect message to the network address and port in the local target index server record 答复者为本索引服务单元网络地址Respondent-based index service unit network address 底层索引服务单元underlying index service unit 没找到did not find 向下查询消息Drill down for messages 失败消息failure message 底层索引服务单元underlying index service unit 找到turn up 初始查询消息initial query message 成功消息,包括服务资源网络地址和端口Success message, including service resource network address and port 独立顶级索引服务单元Independent top-level index service unit 没找到did not find 查询消息(初始)query message (initial) 失败消息failure message 独立顶级索引服务单元Independent top-level index service unit 找到turn up 查询消息(初始)query message (initial) 成功消息,包括服务资源网络地址和端口Success message, including service resource network address and port
26、权利要求25的方法,其中,步骤10)中,所述答复者为所述索引服务装置中发送应答消息的索引服务单元。26. The method of claim 25, wherein, in step 10), the responder is the index service unit that sends the reply message in the index service device. 27、权利要求25的方法,其中,步骤30)中,所述顶级索引服务单元指该索引服务单元只有下级子索引服务单元、没有上级索引服务单元;所述中间索引服务单元指该索引服务单元有下级子索引服务单元、没有上级索引服务单元;所述底层索引服务单元是指该索引服务单元没有下级子索引服务单元、只有上级索引服务单元;所述独立顶级索引服务单元是指没有子索引服务单元的顶级索引服务单元。27. The method of claim 25, wherein, in step 30), the top-level index service unit means that the index service unit has only subordinate sub-index service units and no upper-level index service unit; the intermediate index service unit refers to the index service unit There are lower-level sub-index service units and no upper-level index service units; the lower-level index service unit means that the index service unit has no lower-level sub-index service units, but only upper-level index service units; the independent top-level index service unit means that there is no sub-index The service unit's top-level index service unit.
CN 200810057190 2008-01-30 2008-01-30 Service resource address acquisition system and method in multi-layer NAT network under one root Expired - Fee Related CN101242413B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810057190 CN101242413B (en) 2008-01-30 2008-01-30 Service resource address acquisition system and method in multi-layer NAT network under one root

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810057190 CN101242413B (en) 2008-01-30 2008-01-30 Service resource address acquisition system and method in multi-layer NAT network under one root

Publications (2)

Publication Number Publication Date
CN101242413A true CN101242413A (en) 2008-08-13
CN101242413B CN101242413B (en) 2012-12-12

Family

ID=39933624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810057190 Expired - Fee Related CN101242413B (en) 2008-01-30 2008-01-30 Service resource address acquisition system and method in multi-layer NAT network under one root

Country Status (1)

Country Link
CN (1) CN101242413B (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465852B (en) * 2008-10-24 2012-10-31 广东威创视讯科技股份有限公司 Method for implementing network inner penetration in network videoconference system
CN105812442A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Data file combining method and FTP transponder
CN105933228A (en) * 2015-02-26 2016-09-07 思科技术公司 Traffic engineering for bit indexed explicit replication
CN108292332A (en) * 2015-11-30 2018-07-17 微软技术许可有限责任公司 Joint figure is extended using third party's data and metadata
US10404482B2 (en) 2013-09-17 2019-09-03 Cisco Technology, Inc. Bit indexed explicit replication forwarding optimization
US10432425B2 (en) 2017-03-30 2019-10-01 Cisco Technology, Inc. Internet protocol based encapsulation for bit indexed explicit replication (BIER)
US10461946B2 (en) 2013-09-17 2019-10-29 Cisco Technology, Inc. Overlay signaling for bit indexed explicit replication
US10498547B2 (en) 2013-09-17 2019-12-03 Cisco Technology, Inc. Bit indexed explicit replication
US10536324B2 (en) 2013-09-17 2020-01-14 Cisco Technology, Inc. Per-prefix LFA FRR with bit indexed explicit replication
US10574479B2 (en) 2017-04-28 2020-02-25 Cisco Technology, Inc. Bridging of non-capable subnetworks in bit indexed explicit replication
US10630743B2 (en) 2016-09-23 2020-04-21 Cisco Technology, Inc. Unicast media replication fabric using bit indexed explicit replication
US10637675B2 (en) 2016-11-09 2020-04-28 Cisco Technology, Inc. Area-specific broadcasting using bit indexed explicit replication
US10637686B2 (en) 2015-01-27 2020-04-28 Cisco Technology, Inc. Capability aware routing
CN111464573A (en) * 2019-01-21 2020-07-28 胡俊喜 Network communication system, method and device for forwarding cross-communication protocol data
US10764076B2 (en) 2013-09-17 2020-09-01 Cisco Technology, Inc. Bit indexed explicit replication for layer 2 networking
CN111858537A (en) * 2019-04-25 2020-10-30 中兴通讯股份有限公司 Data analysis method and device
CN112929401A (en) * 2019-12-06 2021-06-08 华为技术有限公司 Registration method and device
US11451474B2 (en) 2013-09-17 2022-09-20 Cisco Technology, Inc. Equal cost multi-path with bit indexed explicit replication

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107341048B (en) * 2017-06-23 2021-03-23 苏州浪潮智能科技有限公司 A method and device for querying clients that occupy specific resources of a server

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1410579B1 (en) * 2000-08-17 2014-02-26 Advanced Network Technology Laboratories Pte Ltd. Method for configuring a computer network
CN101064712B (en) * 2006-04-24 2013-04-24 上海信息安全基础设施研究中心 System and method for realizing Linux inner core based dual-channel through multistage NAT and fireproof wall
CN101098284A (en) * 2006-07-02 2008-01-02 冼剑光 Method for implementing network seamless interlinkage

Cited By (40)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465852B (en) * 2008-10-24 2012-10-31 广东威创视讯科技股份有限公司 Method for implementing network inner penetration in network videoconference system
US10708075B2 (en) 2013-09-17 2020-07-07 Cisco Technology, Inc. Bit indexed explicit replication using internet protocol version 6
US11451474B2 (en) 2013-09-17 2022-09-20 Cisco Technology, Inc. Equal cost multi-path with bit indexed explicit replication
US12068871B2 (en) 2013-09-17 2024-08-20 Cisco Technology, Inc. Bit indexed explicit replication using multiprotocol label switching
US10659242B2 (en) 2013-09-17 2020-05-19 Cisco Technology, Inc. Bit indexed explicit replication using multiprotocol label switching
US11646906B2 (en) 2013-09-17 2023-05-09 Cisco Technology, Inc. Bit indexed explicit forwarding optimization
US11601296B2 (en) 2013-09-17 2023-03-07 Cisco Technology, Inc. Bit indexed explicit replication for layer 2 networking
US10404482B2 (en) 2013-09-17 2019-09-03 Cisco Technology, Inc. Bit indexed explicit replication forwarding optimization
US10764076B2 (en) 2013-09-17 2020-09-01 Cisco Technology, Inc. Bit indexed explicit replication for layer 2 networking
US11206148B2 (en) 2013-09-17 2021-12-21 Cisco Technology, Inc. Bit indexed explicit replication
US10461946B2 (en) 2013-09-17 2019-10-29 Cisco Technology, Inc. Overlay signaling for bit indexed explicit replication
US10498547B2 (en) 2013-09-17 2019-12-03 Cisco Technology, Inc. Bit indexed explicit replication
US11153108B2 (en) 2013-09-17 2021-10-19 Cisco Technology, Inc. Bit indexed explicit replication using multiprotocol label switching
US10536324B2 (en) 2013-09-17 2020-01-14 Cisco Technology, Inc. Per-prefix LFA FRR with bit indexed explicit replication
US11044112B2 (en) 2013-09-17 2021-06-22 Cisco Technology, Inc. Bit indexed explicit forwarding optimization
CN105812442A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Data file combining method and FTP transponder
CN105812442B (en) * 2014-12-31 2019-02-12 华为技术有限公司 A method and FTP forwarder for merging data files
US10637686B2 (en) 2015-01-27 2020-04-28 Cisco Technology, Inc. Capability aware routing
CN105933228B (en) * 2015-02-26 2019-12-13 思科技术公司 Traffic Engineering for Bit Index Explicit Replication
CN105933228A (en) * 2015-02-26 2016-09-07 思科技术公司 Traffic engineering for bit indexed explicit replication
US10693765B2 (en) 2015-02-26 2020-06-23 Cisco Technology, Inc. Failure protection for traffic-engineered bit indexed explicit replication
US10958566B2 (en) 2015-02-26 2021-03-23 Cisco Technology, Inc. Traffic engineering for bit indexed explicit replication
US10341222B2 (en) 2015-02-26 2019-07-02 Cisco Technology, Inc. Traffic engineering for bit indexed explicit replication
US10341221B2 (en) 2015-02-26 2019-07-02 Cisco Technology, Inc. Traffic engineering for bit indexed explicit replication
CN108292332A (en) * 2015-11-30 2018-07-17 微软技术许可有限责任公司 Joint figure is extended using third party's data and metadata
CN108292332B (en) * 2015-11-30 2021-11-16 微软技术许可有限责任公司 Extending federated graphs with third-party data and metadata
US10630743B2 (en) 2016-09-23 2020-04-21 Cisco Technology, Inc. Unicast media replication fabric using bit indexed explicit replication
US11297117B2 (en) 2016-09-23 2022-04-05 Cisco Technology, Inc. Unicast media replication fabric using bit indexed explicit replication
US11438186B2 (en) 2016-11-09 2022-09-06 Cisco Technology, Inc. Area-specific broadcasting using bit indexed explicit replication
US10637675B2 (en) 2016-11-09 2020-04-28 Cisco Technology, Inc. Area-specific broadcasting using bit indexed explicit replication
US10447496B2 (en) 2017-03-30 2019-10-15 Cisco Technology, Inc. Multicast traffic steering using tree identity in bit indexed explicit replication (BIER)
US10432425B2 (en) 2017-03-30 2019-10-01 Cisco Technology, Inc. Internet protocol based encapsulation for bit indexed explicit replication (BIER)
US10985942B2 (en) 2017-03-30 2021-04-20 Cisco Technology, Inc. Multicast traffic steering using tree identity in bit indexed explicit replication (BIER)
US10574479B2 (en) 2017-04-28 2020-02-25 Cisco Technology, Inc. Bridging of non-capable subnetworks in bit indexed explicit replication
US11303470B2 (en) 2017-04-28 2022-04-12 Cisco Technology, Inc. Bridging of non-capable subnetworks in bit indexed explicit replication
CN111464573A (en) * 2019-01-21 2020-07-28 胡俊喜 Network communication system, method and device for forwarding cross-communication protocol data
CN111464573B (en) * 2019-01-21 2023-07-28 胡俊喜 Network communication system, method and device for data forwarding across communication protocols
CN111858537A (en) * 2019-04-25 2020-10-30 中兴通讯股份有限公司 Data analysis method and device
CN112929401A (en) * 2019-12-06 2021-06-08 华为技术有限公司 Registration method and device
CN112929401B (en) * 2019-12-06 2023-12-19 华为云计算技术有限公司 A registration method and device

Also Published As

Publication number Publication date
CN101242413B (en) 2012-12-12

Similar Documents

Publication Publication Date Title
CN101242413B (en) Service resource address acquisition system and method in multi-layer NAT network under one root
US8767737B2 (en) Data center network system and packet forwarding method thereof
JP5167225B2 (en) Technology that allows multiple virtual filers on one filer to participate in multiple address spaces with overlapping network addresses
CN104486589B (en) Access method and device in video monitoring system based on GVRP
CN101098284A (en) Method for implementing network seamless interlinkage
TW201012155A (en) Secure resource name resolution using a cache
CN105812261A (en) Message forwarding method and system in information center network
CN109729187B (en) Proxy communication method, system, device and storage medium
US8612557B2 (en) Method for establishing connection between user-network of other technology and domain name system proxy server for controlling the same
CN101321128A (en) Communication device, communication network system and communication method
CN104539752B (en) Access method and system between multilevel field platform
CN107580079A (en) A kind of message transmitting method and device
CN103618801A (en) Method, device and system for sharing P2P (Peer-to-Peer) resources
CN102098356A (en) Method for translating Internet protocol version 4 (IPv4)/Internet protocol version 6 (IPv6) initiating communication by using IPv4 based on cloud service
WO2007094398A1 (en) Name system in communication network and naming method
CN102984297B (en) Its system of IDN register method realized based on domain name group
CN102185935B (en) Resource-oriented hierarchical name resolution system
US20060193320A1 (en) Data transmission method having improved network address translation method in home gateway and a system thereof
CN101242421A (en) Application-oriented name registration system and its service method under multi-layer NAT environment
KR101899802B1 (en) An apparatus for constructing unified identification structure in future internet environments and the method by using the same
US7788407B1 (en) Apparatus and methods for providing an application level gateway for use in networks
CN101247408A (en) Application-oriented name registration system and method in multi-layer NAT network
CN101227507B (en) Method and system for obtaining service resource address in same root multi-layer NAT network
KR101485764B1 (en) Domain Name Management Method Using Open API
CN1249572C (en) Plug-and-play ether net access system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121212

Termination date: 20200130

CF01 Termination of patent right due to non-payment of annual fee