[go: up one dir, main page]

CN117424928B - Network equipment and resource sharing method - Google Patents

Network equipment and resource sharing method Download PDF

Info

Publication number
CN117424928B
CN117424928B CN202311733234.2A CN202311733234A CN117424928B CN 117424928 B CN117424928 B CN 117424928B CN 202311733234 A CN202311733234 A CN 202311733234A CN 117424928 B CN117424928 B CN 117424928B
Authority
CN
China
Prior art keywords
information
equipment
network
connection
resource
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.)
Active
Application number
CN202311733234.2A
Other languages
Chinese (zh)
Other versions
CN117424928A (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.)
Chengdu Sobey Digital Technology Co Ltd
Original Assignee
Chengdu Sobey Digital Technology Co Ltd
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 Chengdu Sobey Digital Technology Co Ltd filed Critical Chengdu Sobey Digital Technology Co Ltd
Priority to CN202311733234.2A priority Critical patent/CN117424928B/en
Publication of CN117424928A publication Critical patent/CN117424928A/en
Application granted granted Critical
Publication of CN117424928B publication Critical patent/CN117424928B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1061Peer-to-peer [P2P] networks using node-based peer discovery mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明提供了一种网络设备和资源分享的方法,包括:设备发现:本机设备启动P2P连接服务,并准备自身设备信息,同时部署多播DNS和发现服务在整个网络内发布自身设备信息和探测其他网络设备;资源分享:本机设备获取其他网络设备的信息,并根据信息与对应设备建立P2P连接,通过P2P连接通信分享资源信息。本发明无需用户指定设备IP地址,零配置接入,设备和资源状态能实时同步更新,可以运行在所有支持标准IP协议栈的操作系统平台和设备上,不同的操作系统也能直接分享资源信息。

The present invention provides a method for sharing network equipment and resources, including: device discovery: the local device starts P2P connection service and prepares its own device information, and simultaneously deploys multicast DNS and discovery services to publish its own device information and Detect other network devices; resource sharing: The local device obtains information from other network devices, establishes a P2P connection with the corresponding device based on the information, and shares resource information through P2P connection communication. This invention does not require the user to specify the device IP address, with zero-configuration access. The device and resource status can be updated synchronously in real time. It can run on all operating system platforms and devices that support standard IP protocol stacks. Different operating systems can also directly share resource information. .

Description

网络设备和资源分享的方法Methods for sharing network equipment and resources

技术领域Technical field

本发明涉及资源交互领域,特别涉及一种网络设备和资源分享的方法。The present invention relates to the field of resource interaction, and in particular to a network device and a resource sharing method.

背景技术Background technique

网络设备和资源分享即用户可以在任意一台计算机上访问网络中的其它设备和资源信息,包括文件、音视频媒体流、图片等数字内容。用户在访问网络设备前需要指定设备IP地址和端口,无法直接获得当前网络中有哪些设备和资源,有一些网上邻居协议可以自动发现其它网络设备(例如,简单服务发现协议-SSDP,服务器消块-SMB,网络服务动态发现协议WS-D),但是它们只适用于特定类型资源的分享(例如文件,打印机),无法跨子网运行,设备间没有P2P长连接导致无法在线实时感知设备和资源状态,而且不同的操作系统平台存在无法互通的情况。Network equipment and resource sharing means that users can access other equipment and resource information on the network on any computer, including files, audio and video media streams, pictures and other digital content. Users need to specify the device IP address and port before accessing network devices. They cannot directly obtain the devices and resources on the current network. There are some network neighbor protocols that can automatically discover other network devices (for example, Simple Service Discovery Protocol-SSDP, Server Blocking -SMB, Network Service Dynamic Discovery Protocol WS-D), but they are only suitable for sharing specific types of resources (such as files, printers), cannot run across subnets, and there is no P2P long connection between devices, resulting in the inability to sense devices and resources online in real time status, and different operating system platforms may not be able to communicate with each other.

发明内容Contents of the invention

针对现有技术中存在的问题,提供了网络设备和资源分享的方法,使用多播DNS(域名系统)和发现服务器相组合,让网络设备间可以互相自动发现,同时能跨子网运行。设备间互相发现后再通过P2P连接组网互相交互资源信息,可以保障设备和资源状态在线实时更新,连接建立后可以传输任意形式的数据,设备间分享的资源不再限于特定类型。In view of the problems existing in the existing technology, a method for sharing network equipment and resources is provided, using a combination of multicast DNS (domain name system) and a discovery server, so that network equipment can automatically discover each other and run across subnets. After the devices discover each other, they can then exchange resource information with each other through P2P connection networking, which can ensure that device and resource status are updated online in real time. After the connection is established, any form of data can be transmitted, and the resources shared between devices are no longer limited to specific types.

本发明采用的技术方案如下:网络设备和资源分享的方法,包括:The technical solution adopted by the present invention is as follows: a method for sharing network equipment and resources, including:

设备发现:本机设备启动P2P连接服务,并准备自身设备信息,同时部署多播DNS和发现服务在整个网络内发布自身设备信息和探测其他网络设备;Device discovery: The local device starts the P2P connection service and prepares its own device information. At the same time, it deploys multicast DNS and discovery services to publish its own device information and detect other network devices throughout the network;

资源分享:本机设备获取其他网络设备的信息,并根据信息与对应设备建立P2P连接,通过P2P连接通信分享资源信息。Resource sharing: The local device obtains information from other network devices, establishes a P2P connection with the corresponding device based on the information, and shares resource information through P2P connection communication.

进一步的,准备的自身设备信息包括:Further, the prepared own device information includes:

①使用TCP或其他可靠IP传输协议绑定一个本机端口;① Use TCP or other reliable IP transmission protocols to bind a local port;

②记录所使用的协议名称;②Record the protocol name used;

③生成一个随机设备编号;③Generate a random device number;

④收集本机设备的网络IP信息。④Collect the network IP information of the local device.

进一步的,所述多播DNS的具体工作过程包括:Further, the specific working process of the multicast DNS includes:

步骤A1、本机设备上线后,自动加入一个IP组播,并构建一个DNS响应报文;响应报文构建完成后立即发送至组播地址,网络中的其他网络设备收到响应报文解析出设备信息后开始尝试连接本机设备;Step A1. After the local device goes online, it automatically joins an IP multicast and constructs a DNS response message. After the response message is constructed, it is immediately sent to the multicast address. Other network devices in the network receive the response message and parse it out. After entering the device information, try to connect to the local device;

步骤A2、查询网络中的其他设备,构建一个DNS查询报文,将查询报文发送到目标组播地址,其他网络设备收到查询报文后解析查询类型和域名,域名匹配后构建响应报文发送给查询设备;Step A2: Query other devices in the network, construct a DNS query message, and send the query message to the target multicast address. After receiving the query message, other network devices parse the query type and domain name, and construct a response message after the domain name matches. Sent to query device;

步骤A3、等待网络中的其他网络设备DNS响应报文,收到报文后解析出设备的P2P服务连接信息,并根据解析出的信息尝试连接设备进行资源分享;Step A3: Wait for DNS response messages from other network devices in the network. After receiving the messages, parse out the P2P service connection information of the device, and try to connect to the device for resource sharing based on the parsed information;

步骤A4、持续监测网络中其他设备上线DNS报文或下线DNS报文,并验证报文内容以及解析获取对应的设备信息,使用设备编号区分不同设备;本机设备下线时,发送下线DNS报文至组播地址中。Step A4: Continuously monitor the online DNS messages or offline DNS messages of other devices in the network, verify the message content and parse to obtain the corresponding device information, and use device numbers to distinguish different devices; when the local device goes offline, send offline DNS message to the multicast address.

进一步的,所述步骤A2中,域名匹配规则为:Further, in step A2, the domain name matching rules are:

比较服务名和协议名,与本机的服务器名和协议名相同即为匹配成功;Compare the service name and protocol name. If they are the same as the local server name and protocol name, the match is successful;

名称按照字符串串规则匹配,不区分大小写。Names are matched according to string rules and are not case-sensitive.

进一步的,发现服务的工作过程包括:Further, the working process of discovery service includes:

步骤B1、使用WebSocket协议绑定服务器地址和端口,监听连接请求并响应;Step B1. Use the WebSocket protocol to bind the server address and port, listen for connection requests and respond;

步骤B2、在设备中部署本地DNS服务器或使用当前网络中的DNS服务器,在DNS服务器中添加发现服务的记录,包括域名和发现服务器的IP地址;Step B2. Deploy a local DNS server in the device or use the DNS server in the current network, and add the discovery service record to the DNS server, including the domain name and IP address of the discovery server;

步骤B3、网络中的其他设备通过DNS查询解析发现服务地址;Step B3: Other devices in the network discover the service address through DNS query and resolution;

步骤B4、本机设备连接到发现服务器,注册本机设备信息;Step B4: The local device connects to the discovery server and registers the local device information;

步骤B5、发现服务器分发注册的设备信息,将已注册设备的信息编列成设备信息表,并将设备信息表发送给每个已连接的设备;Step B5: The discovery server distributes the registered device information, compiles the registered device information into a device information table, and sends the device information table to each connected device;

步骤B6、本机设备收到设备信息表后解析出其他设备的P2P连接信息,尝试发起连接。Step B6: After receiving the device information table, the local device parses the P2P connection information of other devices and attempts to initiate a connection.

进一步的,在所述步骤B3中,若无法执行步骤B2时,直接配置本机设备DNS缓存记录添加发现服务器的IP地址。Further, in step B3, if step B2 cannot be performed, directly configure the local device DNS cache record to add the IP address of the discovery server.

进一步的,在所述步骤B5中,当设备信息改变、建立连接或断开连接后,具体的数据管理方式如下:Further, in step B5, when the device information changes, a connection is established or a connection is disconnected, the specific data management method is as follows:

当设备建立连接或信息改变后,使用设备编号作为主键更新到当前设备信息列表中,同时设备编号和当前的连接映射绑定,再将设备信息表发送给其他已连接的设备;When the device establishes a connection or the information changes, use the device number as the primary key to update the current device information list. At the same time, the device number is bound to the current connection mapping, and then the device information table is sent to other connected devices;

当设备断开连接后,通过其设备编号删除设备信息表的对应数据,再将设备信息表发送给其他已连接的设备。When the device is disconnected, the corresponding data in the device information table is deleted through its device number, and then the device information table is sent to other connected devices.

进一步的,所述根据信息与对应设备建立P2P连接的具体过程包括:Further, the specific process of establishing a P2P connection with the corresponding device based on the information includes:

步骤C1、通过设备编号整合设备的连接信息生成地址信息表,将编号相同的信息视为同一个设备的信息;Step C1: Integrate the connection information of the device through the device number to generate an address information table, and treat information with the same number as information of the same device;

步骤C2、遍历信息表,从第一个地址信息开始连接;Step C2: Traverse the information table and start connecting from the first address information;

步骤C3、若连接失败,则尝试连接下一个地址,若过程中信息表有更新则重新进入步骤C2;Step C3. If the connection fails, try to connect to the next address. If the information table is updated during the process, re-enter step C2;

步骤C4、连接成功,停止遍历,并保持连接;Step C4. If the connection is successful, stop traversing and keep the connection;

步骤C5、若连接断开,检测信息表是否有更新,若有更新则进入步骤C2,若无更新则停止连接过程,对方设备下线。Step C5: If the connection is disconnected, check whether the information table is updated. If there is an update, proceed to step C2. If there is no update, stop the connection process and the other device goes offline.

进一步的,所述通过P2P连接通信分享资源信息的具体过程包括:Further, the specific process of sharing resource information through P2P connection communication includes:

在连接建立后,双方设备立即向对方设备发送一次本机分享的资源信息;其中,每个设备的资源信息通过对应的资源编号构建索引,并存入资源信息表中;After the connection is established, the devices on both sides immediately send the resource information shared by the other device to the other device; the resource information of each device is indexed by the corresponding resource number and stored in the resource information table;

当整个网络中的设备都互相建立连接交互资源信息后,某一设备资源信息和状态发生变更时,需要将相应的变化同步到网络中的其他设备。When devices in the entire network establish connections with each other and exchange resource information, when the resource information and status of a certain device change, the corresponding changes need to be synchronized to other devices in the network.

进一步的,所述同步过程为:Further, the synchronization process is:

步骤D1、新增资源信息时,生成一个新的本机唯一的资源编号,并将资源编号与资源信息绑定,更新到资源信息表中;Step D1. When adding resource information, generate a new local unique resource number, bind the resource number to the resource information, and update it to the resource information table;

步骤D2、资源信息变化或删除,通过资源编号索引资源信息进行更新;Step D2: Resource information changes or is deleted, and the resource information is updated by indexing the resource number;

步骤D3、将更新后的资源信息表通过P2P连接发送到当前已连接的所有其他设备上;Step D3: Send the updated resource information table to all other currently connected devices through the P2P connection;

步骤D4、其他设备收到后,通过设备编号索引到对应的资源信息表,更新数据。Step D4: After other devices receive it, they index to the corresponding resource information table through the device number and update the data.

与现有技术相比,采用上述技术方案的有益效果为:本发明无需用户指定设备IP地址,零配置接入,设备和资源状态能实时同步更新,可以运行在所有支持标准IP协议栈的操作系统平台和设备上,不同的操作系统也能直接分享资源信息。Compared with the existing technology, the beneficial effects of adopting the above technical solution are: the present invention does not require users to specify device IP addresses, has zero-configuration access, device and resource status can be updated synchronously in real time, and can run on all operations that support standard IP protocol stacks On system platforms and devices, different operating systems can also directly share resource information.

附图说明Description of the drawings

图1为本发明提出的网络设备和资源分享的方法流程图。Figure 1 is a flow chart of a method for sharing network equipment and resources proposed by the present invention.

图2为本发明一实施例中设备发现的应用系统示意图。Figure 2 is a schematic diagram of an application system for device discovery in an embodiment of the present invention.

图3为本发明一实施例中建立连接的过程示意图。Figure 3 is a schematic diagram of the process of establishing a connection in an embodiment of the present invention.

具体实施方式Detailed ways

下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的模块或具有相同或类似功能的模块。下面通过参考附图描述的实施例是示例性的,仅用于解释本申请,而不能理解为对本申请的限制。相反,本申请的实施例包括落入所附加权利要求书的精神和内涵范围内的所有变化、修改和等同物。The embodiments of the present application are described in detail below. Examples of the embodiments are shown in the drawings, where the same or similar reference numerals throughout represent the same or similar modules or modules with the same or similar functions. The embodiments described below with reference to the drawings are exemplary and are only used to explain the present application and cannot be understood as limiting the present application. On the contrary, the embodiments of the present application include all changes, modifications and equivalents falling within the spirit and scope of the appended claims.

本发明实施例提出了一种网络设备可以自由分享不同类型的资源信息的方法,同时无需用户指定设备IP地址,零配置接入,设备和资源状态能实时同步更新,可以运行在所有支持标准IP协议栈的操作系统平台和设备上,不同的操作系统也能直接分享资源信息。具体的:The embodiment of the present invention proposes a method in which network devices can freely share different types of resource information. At the same time, there is no need for users to specify device IP addresses, zero-configuration access, device and resource status can be updated synchronously in real time, and it can run on all devices that support standard IP On the operating system platform and device of the protocol stack, different operating systems can also directly share resource information. specific:

请参考图1,该网络设备和资源分享的方法包括设备发现和资源分享两部分。其中,Please refer to Figure 1. The network device and resource sharing method includes two parts: device discovery and resource sharing. in,

(一)设备发现部分包括:本机设备启动后,首先启动P2P连接服务,用于后续P2P连接建立。服务启动后,准备自身设备信息,在后续设备信息交换中使用。之后开始设备连接信息发现过程,多播DNS和发现服务同时工作可在整个网络范围内发布自身设备信息和探测其它设备,具体系统如图2所示。(1) The device discovery part includes: after the local device is started, the P2P connection service is first started for subsequent P2P connection establishment. After the service is started, its own device information is prepared and used in subsequent device information exchanges. Then the device connection information discovery process begins. Multicast DNS and discovery services work simultaneously to publish their own device information and detect other devices throughout the network. The specific system is shown in Figure 2.

在一个实施例中,自身设备信息包括绑定的本地端口信息、P2P协议类型、设备编号以及网络IP信息。其获取方法包括:In one embodiment, the own device information includes bound local port information, P2P protocol type, device number, and network IP information. Its acquisition methods include:

a)使用TCP或可使用其它可靠IP传输协议绑定一个本机端口;a) Use TCP or other reliable IP transmission protocols to bind a local port;

b)记录使用的协议名称,例如“tcp”;b) Record the protocol name used, such as "tcp";

c)生成一个长度为32比特的随机设备编号(id);c) Generate a random device number (id) with a length of 32 bits;

d)收集本机设备的网络IP信息。d) Collect the network IP information of the local device.

下面针对设备发现工作中的多播DNS和发现服务进行进一步的说明。The following is a further explanation of multicast DNS and discovery services in device discovery work.

多播DNS的工作过程包括:The working process of multicast DNS includes:

步骤A1、本机设备上线后,自动加入一个IP组播,并构建一个DNS响应报文;响应报文构建完成后立即发送至组播地址,网络中的其他网络设备收到响应报文解析出设备信息后即可开始尝试连接本机设备。Step A1. After the local device goes online, it automatically joins an IP multicast and constructs a DNS response message. After the response message is constructed, it is immediately sent to the multicast address. Other network devices in the network receive the response message and parse it out. After receiving the device information, you can start trying to connect to the local device.

应当注意,DNS响应报文中必须包含以下记录:It should be noted that the DNS response message must contain the following records:

a)一条A类型或是AAAA类型记录数据,域名字段需要符合RFC8533中描述的规则,包含协议名和服务名,服务名默认使用“_nvi”;a) For an A-type or AAAA-type record data, the domain name field must comply with the rules described in RFC8533, including the protocol name and service name. The service name uses "_nvi" by default;

b)一条SRV类型数据,包含本机设备名称和本地P2P连接服务绑定的端口;b) A piece of SRV type data, including the local device name and the port bound to the local P2P connection service;

c)一条TXT类型扩展数据,数据内容使用“k=v”字典格式,包含设备编号(“id=123”);c) A piece of TXT type extended data, the data content uses the "k=v" dictionary format and includes the device number ("id=123");

d)生存时间字段必须大于0。d) The survival time field must be greater than 0.

在一个实施例中,IP组播用于接收其他设备的消息,可使用RFC6762中约定的默认地址和端口。In one embodiment, IP multicast is used to receive messages from other devices, and the default address and port specified in RFC6762 can be used.

步骤A2、查询网络中的其他设备,构建一个DNS查询报文,将构建完成的查询报文发送到目标组播地址,路由器会转发组播报文到其他网络设备上,其他网络设备收到查询报文后解析查询类型和域名,域名匹配后构建响应报文发送给查询设备。Step A2: Query other devices in the network, construct a DNS query message, and send the constructed query message to the target multicast address. The router will forward the multicast message to other network devices, and other network devices receive the query. After the message is parsed, the query type and domain name are parsed. After the domain name is matched, a response message is constructed and sent to the query device.

本实施例中,DNS查询报文必须包含以下记录:In this embodiment, the DNS query message must contain the following records:

a)一条A类型或是AAAA类型或是SRV类型或是PTR类型的查询数据;a) A piece of query data of type A, type AAAA, type SRV, or type PTR;

b)查询的域名字段需要符合RFC8533中描述的规则,包含协议名和服务名,服务名默认使用“_nvi”。b) The domain name field queried needs to comply with the rules described in RFC8533, including the protocol name and service name. The service name uses "_nvi" by default.

在一个实施例中,域名匹配的规则为:In one embodiment, the domain name matching rules are:

a)比较服务名和协议名,和本机的服务名和协议相同即认为匹配成功;a) Compare the service name and protocol name. If they are the same as the service name and protocol of the local machine, the match is considered successful;

b)名称按照字符串规则匹配,不区分大小写。b) Names are matched according to string rules and are not case-sensitive.

步骤A3、等待网络中的其他网络设备DNS响应报文,收到报文后解析出设备的P2P服务连接信息,并根据解析出的信息尝试连接设备进行资源分享。Step A3: Wait for DNS response messages from other network devices in the network. After receiving the messages, parse out the device's P2P service connection information, and try to connect to the device for resource sharing based on the parsed information.

本实施例中,DNS响应报文必须包含以下记录:In this embodiment, the DNS response message must contain the following records:

a)一条A类型或是AAAA类型记录,有正确的IP地址;a) An A type or AAAA type record with a correct IP address;

b)一条SRV类型数据,包含设备名称和P2P连接服务绑定的端口;b) A piece of SRV type data, including the device name and the port bound to the P2P connection service;

c)一条TXT类型扩展数据,数据内容使用“k=v”字典格式,包含设备编号(例“id=123”)。c) A piece of TXT type extended data. The data content uses the "k=v" dictionary format and includes the device number (for example, "id=123").

步骤A4、持续监测网络中其他设备上线或下线的DNS报文,按照步骤A3中描述的报文内容要求验证收到的报文,解析并获取IP地址、端口、设备编号数据,使用设备编号来区分不同的设备。Step A4: Continuously monitor the DNS messages of other devices in the network that go online or offline, verify the received messages according to the message content requirements described in step A3, parse and obtain the IP address, port, and device number data, and use the device number to distinguish between different devices.

步骤A5、本机设备下线,向A1步骤中加入的组播地址发送下线DNS报文,该报文中必须包含:Step A5: The local device goes offline and sends an offline DNS message to the multicast address added in step A1. The message must contain:

a)一条TXT类型扩展数据,数据内容使用“k=v”字典格式,包含设备编号(例“id=123”);a) A piece of TXT type extended data, the data content uses the "k=v" dictionary format and includes the device number (for example, "id=123");

b)生存时间字段必须设置为0。b) The time-to-live field must be set to 0.

通过多播DNS交换设备信息完成,整个过程无需用户配置介入,完全系统自动完成。The exchange of device information is completed through multicast DNS. The entire process does not require user configuration intervention and is completely completed automatically by the system.

在跨多个子网或是一些禁用多播报文路由的情况下,多播DNS不能发现其他设备,网络管理员通过部署发现服务来帮助设备间信息分享。发现服务可使用WebSocket协议通信,只使用单播报文保证路由正常工作,同时可配置本地DNS解析发现服务器IP地址,设备可通过DNS零配置接入。具体的:Multicast DNS cannot discover other devices across multiple subnets or when multicast packet routing is disabled. Network administrators deploy discovery services to help share information between devices. The discovery service can communicate using the WebSocket protocol and only uses unicast messages to ensure normal routing. At the same time, local DNS can be configured to resolve the discovery server IP address, and the device can be accessed through DNS zero configuration. specific:

发现服务的工作过程包括:The working process of discovery service includes:

步骤B1、部署发现服务,使用WebSocket协议绑定服务器地址和端口,监听连接请求并响应。Step B1. Deploy the discovery service, use the WebSocket protocol to bind the server address and port, listen for connection requests and respond.

步骤B2、在DNS服务器中添加发现服务的记录,包括域名和发现服务器的IP地址,其中,域名可使用“sd.nvi”,将记录的IP地址配置为发现服务器IP地址。该DNS服务器可以是部署的一个本地DNS服务器或是使用当前网络中的DNS服务器。Step B2: Add a record of the discovery service to the DNS server, including the domain name and the IP address of the discovery server. The domain name can be "sd.nvi" and the recorded IP address is configured as the IP address of the discovery server. The DNS server can be a local DNS server deployed or use a DNS server in the current network.

步骤B3、网络中的其他设备通过DNS查询解析发现服务地址。如果无法执行步骤B2,就无法通过DNS查询解析发现服务地址,此时可直接配置本机DNS缓存记录添加发现服务器的IP地址。例如,在Windows系统中可在"C:\Windows\System32\drivers\etc\hosts"文件中添加一行记录"10.1.1.2 sd.nvi"。Step B3: Other devices in the network discover the service address through DNS query and resolution. If step B2 cannot be performed, the discovery service address cannot be resolved through DNS query. In this case, you can directly configure the local DNS cache record to add the IP address of the discovery server. For example, in Windows systems, you can add a line of record "10.1.1.2 sd.nvi" in the "C:\Windows\System32\drivers\etc\hosts" file.

步骤B4、本机设备连接到发现服务器,注册本机设备信息。Step B4: The local device connects to the discovery server and registers the local device information.

本实施例中,注册信息必须包括表1所示的数据:In this embodiment, the registration information must include the data shown in Table 1:

表1 注册信息表Table 1 Registration information table

步骤B5、发现服务器分发注册的设备信息,将已注册设备的信息编列成设备信息表,并将设备信息表发送给每个已连接的设备;其中,设备信息表中每行数据包含了完整的设备注册信息。Step B5: The discovery server distributes the registered device information, compiles the registered device information into a device information table, and sends the device information table to each connected device; each row of data in the device information table contains a complete Device registration information.

在一个实施例中,当设备信息改变、建立连接和断开连接后具体的数据的管理方式如下:In one embodiment, when the device information changes, the connection is established and the connection is disconnected, the specific data management method is as follows:

a)当一个设备建立来了解或信息改变后,使用设备编号作为主键更新到当前设备信息列表中,同时设备编号和当前的连接映射绑定,再将设备信息表发送给其它已连接的设备。a) When a device is established or the information changes, use the device number as the primary key to update the current device information list. At the same time, the device number is bound to the current connection mapping, and then the device information table is sent to other connected devices.

b)当一个设备断开连接,通过该设备的编号删除信息表中的数据,再将设备信息表发送给其它已连接的设备。b) When a device disconnects, delete the data in the information table through the device number, and then send the device information table to other connected devices.

步骤B6、本机设备收到设备信息表后解析出其他设备的P2P连接信息,尝试发起连接。Step B6: After receiving the device information table, the local device parses the P2P connection information of other devices and attempts to initiate a connection.

通过多播DNS和发现服务能够使得设备分享覆盖整个网络,与整个网络的其他设备建立连接。Through multicast DNS and discovery services, devices can be shared across the entire network and established connections with other devices throughout the network.

(二)资源分享部分包括:通过设备发现工作后获取到其他网络设备的IP地址、P2P连接协议类型和端口信息等,使用这些信息就可以开始尝试和网络中的设备建立P2P连接,然后通过P2P连接通信分享资源信息。(2) The resource sharing part includes: obtaining the IP addresses, P2P connection protocol types and port information of other network devices through device discovery. Using this information, you can start to try to establish P2P connections with devices on the network, and then use P2P Connect and communicate to share resource information.

一个网络设备可能处于多个网络,相应的会具有多个IP地址,需要找到一个可以互相通信的地址建立连接。请参考图3,建立连接的具体过程包括:A network device may be in multiple networks, and accordingly it will have multiple IP addresses. It needs to find an address that can communicate with each other to establish a connection. Please refer to Figure 3. The specific process of establishing a connection includes:

步骤C1、通过设备编号整合设备的连接信息生成地址信息表,将编号相同的信息视为同一个设备的信息。Step C1: Integrate the connection information of the device through the device number to generate an address information table, and treat information with the same number as information of the same device.

步骤C2、遍历信息表,从第一个地址信息开始连接。Step C2: Traverse the information table and start connecting from the first address information.

步骤C3、若连接失败,则尝试连接下一个地址,若过程中信息表有更新则重新进入步骤C2。Step C3: If the connection fails, try to connect to the next address. If the information table is updated during the process, re-enter step C2.

步骤C4、连接成功,停止遍历,并保持连接。Step C4: If the connection is successful, stop traversing and keep the connection.

步骤C5、若连接断开,检测信息表是否有更新,若有更新则进入步骤C2,若无更新则停止连接过程,对方设备下线。Step C5: If the connection is disconnected, check whether the information table is updated. If there is an update, proceed to step C2. If there is no update, stop the connection process and the other device goes offline.

应当注意,连接建立后一直保持,并按周期发送保活数据包,设备离线后自动断开连接。It should be noted that the connection is maintained after it is established and keep-alive packets are sent periodically. The device automatically disconnects when it goes offline.

在连接建立后,双方设备立即向对方设备发送一次本机分享的资源信息,这样连接双方就可以获取到对方的资源信息。其中,每个设备的资源信息通过对应的资源编号构建索引,并存入资源信息表中。每个设备中的资源信息的数据字段包含但不限于表2所示内容:After the connection is established, the devices on both sides immediately send the resource information shared by the machine to the other device, so that both parties can obtain the resource information of the other party. Among them, the resource information of each device is indexed through the corresponding resource number and stored in the resource information table. The data fields of resource information in each device include but are not limited to the content shown in Table 2:

表2 资源信息表Table 2 Resource information table

当整个网络中的设备都互相建立连接交互资源信息后,用户在任意一台设备上都可以获取到其他设备分享的资源信息。应当注意,一旦某一设备资源信息和状态发生变更时,需要将相应的变化同步到网络中的其他设备。具体的同步过程为:When devices in the entire network establish connections with each other and exchange resource information, users can obtain resource information shared by other devices on any device. It should be noted that once the resource information and status of a certain device change, the corresponding changes need to be synchronized to other devices in the network. The specific synchronization process is:

步骤D1、新增资源信息时,生成一个新的本机唯一的资源编号,并将资源编号与资源信息绑定,更新到资源信息表中;Step D1. When adding resource information, generate a new local unique resource number, bind the resource number to the resource information, and update it to the resource information table;

步骤D2、资源信息变化或删除,通过资源编号索引资源信息进行更新;Step D2: Resource information changes or is deleted, and the resource information is updated by indexing the resource number;

步骤D3、将更新后的资源信息表通过P2P连接发送到当前已连接的所有其他设备上;Step D3: Send the updated resource information table to all other currently connected devices through the P2P connection;

步骤D4、其他设备收到后,通过设备编号索引到对应的资源信息表,更新数据。Step D4: After other devices receive it, they index to the corresponding resource information table through the device number and update the data.

本发明通过多播DNS(域名系统)和发现服务器相组合,让网络设备间可以互相自动发现,同时能跨子网运行。设备间互相发现后再通过P2P连接组网互相交互资源信息,可以保障设备和资源状态在线实时更新,连接建立后可以传输任意形式的数据,设备间分享的资源不再限于特定类型。The present invention combines a multicast DNS (domain name system) and a discovery server to allow network devices to automatically discover each other and run across subnets at the same time. After the devices discover each other, they can then exchange resource information with each other through P2P connection networking, which can ensure that device and resource status are updated online in real time. After the connection is established, any form of data can be transmitted, and the resources shared between devices are no longer limited to specific types.

应当注意,本说明书中涉及到具体步骤的过程,各步骤之间并非完全存在前后依赖关系,也可为并列关系。It should be noted that the specific steps involved in this description are not completely dependent on each other, and may also be parallel.

附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。其中,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present application. Each block in the flow chart or block diagram may represent a module, program segment, or part of the code. The above-mentioned module, program segment, or part of the code includes one or more executable components for implementing the specified logical function. instruction. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved. It will also be noted that each block in the block diagram or flowchart illustration, and combinations of blocks in the block diagram or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or may be implemented by special purpose hardware-based systems that perform the specified functions or operations. Achieved by a combination of specialized hardware and computer instructions.

描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现,所描述的单元也可以设置在处理器中。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments of this application can be implemented in software or hardware, and the described units can also be provided in a processor. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances.

作为另一方面,本申请还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述实施例中所述的网络设备和资源分享的方法。As another aspect, the present application also provides a computer program product or computer program, which computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the network device and resource sharing method described in the above embodiments.

作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该电子设备执行时,使得该电子设备实现上述实施例中所述的网络设备和资源分享的方法。As another aspect, this application also provides a computer-readable medium. The computer-readable medium may be included in the electronic device described in the above embodiments; it may also exist independently without being assembled into the electronic device. middle. The computer-readable medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device implements the network device and resource sharing method described in the above embodiments.

应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本申请的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into being embodied by multiple modules or units.

通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本申请实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、触控终端、或者网络设备等)执行根据本申请实施方式的方法。Through the above description of the embodiments, those skilled in the art can easily understand that the example embodiments described here can be implemented by software, or can be implemented by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which can be a personal computer, server, touch terminal, or network device, etc.) to execute the method according to the embodiment of the present application.

对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义;实施例中的附图用以对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本发明实施例的组件可以以各种不同的配置来布置和设计。For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood in specific situations; the drawings in the embodiments are used to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, all The described embodiments are some, but not all, of the embodiments of the present invention. The components of the embodiments of the invention generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations.

尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present application have been shown and described above, it can be understood that the above-mentioned embodiments are illustrative and cannot be understood as limitations of the present application. Those of ordinary skill in the art can make modifications to the above-mentioned embodiments within the scope of the present application. The embodiments are subject to changes, modifications, substitutions and variations.

Claims (8)

1. The network equipment and the resource sharing method are characterized by comprising the following steps:
the device discovers: the local equipment starts P2P connection service, prepares self equipment information, deploys multicast DNS and discovery service to release self equipment information and detect other network equipment in the whole network;
and (3) resource sharing: the local equipment acquires information of other network equipment, establishes P2P connection with corresponding equipment according to the information, and shares resource information through P2P connection communication;
the specific working process of the multicast DNS comprises the following steps:
step A1, after local equipment is online, automatically adding an IP multicast, and constructing a DNS response message; immediately sending the response message to the multicast address after the construction is completed, and starting to attempt to connect the local equipment after other network equipment in the network receives the response message and analyzes the equipment information;
a2, inquiring other network equipment in the network, constructing a DNS inquiry message, sending the inquiry message to a target multicast address, analyzing the inquiry type and the domain name after the other network equipment receives the inquiry message, and constructing a response message after the domain name is matched and sending the response message to the inquiry equipment;
a3, waiting for DNS response messages of other network devices in the network, analyzing P2P service connection information of the devices after receiving the messages, and attempting to connect the devices for resource sharing according to the analyzed information;
step A4, continuously monitoring the online DNS messages or the offline DNS messages of other network devices in the network, verifying the content of the messages, analyzing and obtaining corresponding device information, and distinguishing different devices by using device numbers; when the local equipment is offline, an offline DNS message is sent to a multicast address;
the working process of the discovery service comprises the following steps:
step B1, binding a server address and a port by using a WebSocket protocol, monitoring a connection request and responding;
step B2, a local DNS server is deployed in the equipment or a DNS server in the current network is used, and a record of the discovery service, comprising a domain name and an IP address of the discovery server, is added in the DNS server;
step B3, other network equipment in the network analyzes and discovers the service address through DNS inquiry;
step B4, the local equipment is connected to a discovery server, and the local equipment information is registered;
step B5, the discovery server distributes registered equipment information, compiles the information of the registered equipment into an equipment information table, and sends the equipment information table to each connected equipment;
and B6, after receiving the device information table, the local device analyzes the P2P connection information of other network devices and tries to initiate connection.
2. The network device and the resource sharing method according to claim 1, wherein the prepared own device information includes:
(1) binding a native port using TCP or other reliable IP transport protocol;
(2) recording the name of the protocol used;
(3) generating a random device number;
(4) network IP information of the local device is collected.
3. The method for sharing resources and network equipment according to claim 1, wherein in the step A2, the domain name matching rule is:
comparing the service name and the protocol name, wherein the service name and the protocol name are the same as the server name and the protocol name of the local machine, namely the matching is successful;
names are matched according to the string rule, and case are not distinguished.
4. The method for sharing resources and network device according to claim 1, wherein in the step B3, if the step B2 cannot be executed, the local device DNS cache record is directly configured to add the IP address of the discovery server.
5. The method for sharing resources and network devices according to claim 1, wherein in step B5, after the device information is changed, connection is established or disconnected, a specific data management manner is as follows:
when the equipment establishes connection or information is changed, using the equipment number as a primary key to update the equipment information list, binding the equipment number with the current connection mapping, and then sending the equipment information list to other connected equipment;
and after the equipment is disconnected, deleting the corresponding data of the equipment information table through the equipment number, and then sending the equipment information table to other connected equipment.
6. The method for sharing resources by network devices according to claim 1, wherein the specific process of establishing a P2P connection with the corresponding device according to the information includes:
step C1, generating an address information table through the connection information of the equipment number integration equipment, and regarding the information with the same number as the information of the same equipment;
step C2, traversing the information table, and starting connection from the first address information;
step C3, if the connection fails, the next address is tried to be connected, and if the information table is updated in the process, the step C2 is restarted;
step C4, successfully connecting, stopping traversing, and maintaining connection;
and step C5, if the connection is disconnected, detecting whether the information table is updated, if so, entering a step C2, and if not, stopping the connection process, and if not, disconnecting the opposite equipment.
7. The method for sharing resources by network devices according to claim 1 or 6, wherein the specific process of sharing resource information through P2P connection communication includes:
after connection is established, the two devices immediately send the resource information shared by the two devices for one time to the other device; the resource information of each device constructs an index through the corresponding resource number and stores the index into a resource information table;
when the resource information and the state of a certain device are changed after the devices in the whole network establish the connection interaction resource information, the corresponding change needs to be synchronized to other network devices in the network.
8. The network device and resource sharing method of claim 7, wherein the synchronization process is:
step D1, when the resource information is newly added, generating a new unique resource number of the machine, binding the resource number with the resource information, and updating the resource number into a resource information table;
step D2, changing or deleting the resource information, and updating the resource information through the resource number index;
step D3, the updated resource information table is sent to all other network devices which are connected at present through P2P connection;
and D4, after receiving the data, other network equipment indexes the corresponding resource information table through the equipment number, and updates the data.
CN202311733234.2A 2023-12-18 2023-12-18 Network equipment and resource sharing method Active CN117424928B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311733234.2A CN117424928B (en) 2023-12-18 2023-12-18 Network equipment and resource sharing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311733234.2A CN117424928B (en) 2023-12-18 2023-12-18 Network equipment and resource sharing method

Publications (2)

Publication Number Publication Date
CN117424928A CN117424928A (en) 2024-01-19
CN117424928B true CN117424928B (en) 2024-03-12

Family

ID=89525150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311733234.2A Active CN117424928B (en) 2023-12-18 2023-12-18 Network equipment and resource sharing method

Country Status (1)

Country Link
CN (1) CN117424928B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925444A (en) * 2006-09-14 2007-03-07 华为技术有限公司 Method for establishing point-to-point collection in P2P network and nodes in P2P network
CN101442558A (en) * 2008-12-26 2009-05-27 中国科学院计算技术研究所 Method and system for providing index service for P2SP network
CN107800745A (en) * 2016-09-06 2018-03-13 北京京东尚科信息技术有限公司 The method that service declaration and service discovery are carried out based on mDNS
CN107852430A (en) * 2015-07-06 2018-03-27 康维达无线有限责任公司 Wide area service discovery for internet of things
CN114979196A (en) * 2013-06-25 2022-08-30 谷歌有限责任公司 Efficient communication of devices for home network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7594030B2 (en) * 2000-11-22 2009-09-22 Microsoft Corporation Locator and tracking service for peer to peer resources
US8037135B2 (en) * 2007-06-29 2011-10-11 Microsoft Corporation Automatic distributed downloading
US9479422B2 (en) * 2013-03-15 2016-10-25 Cable Television Laboratories, Inc. mDNS-DNS architecture

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925444A (en) * 2006-09-14 2007-03-07 华为技术有限公司 Method for establishing point-to-point collection in P2P network and nodes in P2P network
CN101442558A (en) * 2008-12-26 2009-05-27 中国科学院计算技术研究所 Method and system for providing index service for P2SP network
CN114979196A (en) * 2013-06-25 2022-08-30 谷歌有限责任公司 Efficient communication of devices for home network
CN107852430A (en) * 2015-07-06 2018-03-27 康维达无线有限责任公司 Wide area service discovery for internet of things
CN107800745A (en) * 2016-09-06 2018-03-13 北京京东尚科信息技术有限公司 The method that service declaration and service discovery are carried out based on mDNS

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Discovery in SOA-governed industrial middleware with mDNS and DNS-SD;Ahmed Ismail等;《2016 IEEE 21st International Conference on Emerging Technologies and Factory Automation (ETFA)》;20161107;全文 *
基于STUN和mDNS协议的NAT穿越方法的研究与实现;吴小龙;《中国优秀硕士学位论文全文数据库》;20220216;全文 *
网络音频应用的发现服务研究;罗攀;;广播与电视技术;20200415(第04期);全文 *

Also Published As

Publication number Publication date
CN117424928A (en) 2024-01-19

Similar Documents

Publication Publication Date Title
US7978631B1 (en) Method and apparatus for encoding and mapping of virtual addresses for clusters
EP2112788B1 (en) A method and node for p2p content sharing
US10681127B2 (en) File upload method and system
CA2611146C (en) Method for data communication and system thereof
JP4417417B2 (en) How to establish a peer-to-peer connection
WO2008034353A1 (en) A method, system and device for establishing a peer to peer connection in a p2p network
CN106790420B (en) A kind of more session channel method for building up and system
CN102065136B (en) P2P (Peer-to-Peer) network safety data transmission method and system
CN112055048B (en) P2P network communication method and system for high-throughput distributed account book
WO2019223534A1 (en) Method and device for monitoring forwarding table entry
CN101911593B (en) Network location service methods, devices and systems
US20210368006A1 (en) Request response method, device, and system applied to bit torrent system
CN101335681B (en) Method for acquiring thru resource, peer-to-peer network node and peer-to-peer network
CN105637806A (en) Method and device for determining network topology, centralized network state information storage device
CN102413052A (en) Method, device and system for accessing network
CN102598637B (en) Communication Systems
CN100426769C (en) Method for establishing pier-to-pier direct channels
CN101146130A (en) A method and system for transmitting data between clients
CN117424928B (en) Network equipment and resource sharing method
CN1917512B (en) A Method for Establishing Peer-to-Peer Direct Channel
CN104660636A (en) Peer-to-peer application identification processing method and peer-to-peer application identification processing device
CN115865844B (en) Dynamic traffic scheduling method and device based on virtual and real combination based on SDN and NDN
CN115941255A (en) A method, device, electronic equipment and storage medium for transferring ARP entry to host routing
WO2012048576A1 (en) Method, server and system for controlling p2p (peer-to-peer) download
CN110809033A (en) Message forwarding method and device and switching server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant