[go: up one dir, main page]

CN104579766B - A kind of more application layer webmaster concurrent access methods and device - Google Patents

A kind of more application layer webmaster concurrent access methods and device Download PDF

Info

Publication number
CN104579766B
CN104579766B CN201410835419.9A CN201410835419A CN104579766B CN 104579766 B CN104579766 B CN 104579766B CN 201410835419 A CN201410835419 A CN 201410835419A CN 104579766 B CN104579766 B CN 104579766B
Authority
CN
China
Prior art keywords
network management
access layer
variable
management process
socket
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.)
Expired - Fee Related
Application number
CN201410835419.9A
Other languages
Chinese (zh)
Other versions
CN104579766A (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.)
Lingyun Tianbo Photoelectric Technology Co Ltd
Original Assignee
Lingyun Tianbo Photoelectric 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 Lingyun Tianbo Photoelectric Technology Co Ltd filed Critical Lingyun Tianbo Photoelectric Technology Co Ltd
Priority to CN201410835419.9A priority Critical patent/CN104579766B/en
Publication of CN104579766A publication Critical patent/CN104579766A/en
Application granted granted Critical
Publication of CN104579766B publication Critical patent/CN104579766B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

本申请实施例公开了一种多应用层网管并发访问方法和装置。以I/O复用的方式同时监控多个局端网管进程,当接收到局端网管进程的连接请求时,建立与局端网管进程的通信,当局端网管进程发送数据时再开始进入接收数据的过程,因而不会出现通信阻塞的情况,响应速度快,效率高,实现局端网管进程的并发访问。同时对局端网管进程和局端访问层进程之间传输的数据进行类封装,对多个局端网管进程并发的传输数据进行统一的处理,避免并发访问时因为处理过程不一致而出现冲突和错误。

The embodiment of the present application discloses a multi-application layer network management concurrent access method and device. Simultaneously monitor multiple local-end network management processes in the form of I/O multiplexing. When receiving a connection request from the local-end network management process, establish communication with the local-end network management process, and start receiving data when the central-side network management process sends data. process, so there will be no communication blockage, fast response and high efficiency, and realize concurrent access of the local network management process. At the same time, class encapsulation is performed on the data transmitted between the central network management process and the local access layer process, and the concurrent transmission data of multiple local network management processes is uniformly processed to avoid conflicts and errors due to inconsistent processing processes during concurrent access. .

Description

一种多应用层网管并发访问方法及装置A multi-application layer network management concurrent access method and device

技术领域technical field

本发明涉及网络技术领域,尤其涉及一种多应用层网管并发访问方法及装置。The invention relates to the field of network technology, in particular to a multi-application layer network management concurrent access method and device.

背景技术Background technique

MOCA(Multimedia Over Coax Alliance,同轴电缆多媒体联盟)是通过使用家庭内现有同轴电缆连接家庭网络设备和消费电子设备的标准。MOCA接入网设备包括MOCA局端设备和MOCA终端设备,MOCA局端设备的作用在于将网络信号和电视信号等进行混合,由同轴口传输到MOCA终端,对终端进行配置管理。MOCA局端设备的输入包括网线中传输来的网络信号以及同轴线中的电视信号(电视信号可由光接收机通过同轴线发出)等,其输出为由同轴电缆传输的射频信号。MOCA终端设备将同轴线输入的信号解析,例如通过同轴线将电视信号传输到电视机,通过网线将数据信号和语音信号分别传输到电脑和电话。一个局端设备可以对多台终端设备进行管理。MOCA (Multimedia Over Coax Alliance, Multimedia Over Coax Alliance) is a standard for connecting home network devices and consumer electronics devices by using existing coaxial cables in the home. MOCA access network equipment includes MOCA central office equipment and MOCA terminal equipment. The function of MOCA central office equipment is to mix network signals and TV signals, transmit them to MOCA terminals through the coaxial port, and configure and manage the terminals. The input of MOCA central equipment includes the network signal transmitted in the network cable and the TV signal in the coaxial cable (the TV signal can be sent by the optical receiver through the coaxial cable), etc., and its output is the radio frequency signal transmitted by the coaxial cable. The MOCA terminal equipment analyzes the signal input by the coaxial cable, for example, the TV signal is transmitted to the TV through the coaxial cable, and the data signal and the voice signal are transmitted to the computer and the telephone respectively through the network cable. One central office device can manage multiple terminal devices.

其中,局端设备根据应用的需要,会涉及多种网管,包括:局端WEB网管,基于HTTP协议(Hypertext transfer protocol,超文本传输协议)接收浏览器的请求并响应,根据浏览器请求向局端守护进程发送相应的请求;局端SNMP网管,基于SNMP协议(Simple NetworkManagement Protocol,简单网络管理协议)负责实现国标MIB库(Management InformationBase,管理信息库)规定的所有节点,采集EOC(Ethernet over Coax,基于同轴电缆的以太网传输)设备信息,以及与前端网管系统NMS(Network Management System,网络管理系统)交换信息;局端TOOLING网管,接收TOOLING软件的请求并响应,主要用于工厂生产对设备烧写Flash、打印铭牌等。安装的网管属于局端设备的应用层,对于这些网管,在局端设备的软件架构中需要提供多种管理途径(SNMP/WEB/TOOLING)来管理。Among them, according to the needs of the application, the central office device will involve a variety of network management, including: the central office WEB network management, based on the HTTP protocol (Hypertext transfer protocol, hypertext transfer protocol) to receive the browser's request and respond, according to the browser request to the central office The end daemon process sends corresponding requests; the local end SNMP network management, based on the SNMP protocol (Simple Network Management Protocol, simple network management protocol), is responsible for implementing all nodes specified in the national standard MIB library (Management Information Base, management information base), collecting EOC (Ethernet over Coax , based on coaxial cable Ethernet transmission) equipment information, and exchange information with the front-end network management system NMS (Network Management System, network management system); the TOOLING network management at the local end receives and responds to TOOLING software requests, and is mainly used for factory production. Device programming Flash, printing nameplate, etc. The installed network management system belongs to the application layer of the central office equipment. For these network management systems, various management approaches (SNMP/WEB/TOOLING) need to be provided in the software architecture of the central office equipment to manage them.

但目前局端设备的软件架构,无法处理多种网管的并发访问,只能以串行方式逐个处理从各个网管而来的请求和信息,很难解决共享资源的同步问题,而且往往没有配置数据缓存机制,需要调用底层接口获取配置信息,响应速度慢。However, the software architecture of the current central office equipment cannot handle concurrent access from multiple network management systems. It can only process requests and information from each network management system one by one in a serial manner. It is difficult to solve the synchronization problem of shared resources, and often there is no configuration data. The cache mechanism needs to call the underlying interface to obtain configuration information, and the response speed is slow.

发明内容Contents of the invention

为克服相关技术中无法处理多种网管并发访问的问题,本申请提供一种多应用层网管并发访问方法及装置。In order to overcome the problem of inability to handle concurrent access of multiple network managers in the related art, the present application provides a method and device for concurrent access of multi-application layer network managers.

根据本申请实施例的第一方面,提供一种多应用层网管并发访问方法,包括:According to the first aspect of the embodiment of the present application, a multi-application layer network management concurrent access method is provided, including:

各个局端网管进程分别获取第一套接字,并向局端访问层进程发起连接请求;Each central office network management process respectively obtains the first socket, and initiates a connection request to the central office access layer process;

局端访问层进程轮询局端访问层进程套接字的可读状态,根据局端访问层进程套接字的可读状态得到局端网管进程的连接请求后,获取与局端网管进程进行通信的第二套接字,建立局端访问层进程和各个局端网管进程的通信连接;The central access layer process polls the readable state of the central access layer process socket, and after obtaining the connection request of the central office network management process according to the readable state of the central office access layer process socket, obtains the connection request with the central office network management process. The second socket for communication establishes communication connections between the central office access layer process and each central office network management process;

局端网管进程将需要发送的数据封装成第一结构体,并将所述第一结构体发送至局端访问层进程;The local network management process encapsulates the data to be sent into a first structure, and sends the first structure to the local access layer process;

局端访问层进程接收到所述第一结构体后,根据所述第一结构体解析出局端网管进程发送的数据传输至相应的函数接口进行处理,将函数接口返回的数据封装为第二结构体,并将所述第二结构体发送至局端网管进程,第一结构体和第二结构体的封装方法相同;After the central access layer process receives the first structure, it parses the data sent by the central network management process according to the first structure and transmits it to the corresponding function interface for processing, and encapsulates the data returned by the function interface into a second structure body, and send the second structure body to the local end network management process, the encapsulation method of the first structure body and the second structure body is the same;

局端网管进程接收到第二结构体后,解析所述第二结构体得到经函数接口的数据;After the local network management process receives the second structure, it parses the second structure to obtain the data through the function interface;

局端网管进程和局端访问层进程通信完成后,局端网管进程和局端访问层进程分别关闭自身对应的套接字。After the communication between the network management process at the local end and the access layer process at the local end is completed, the network management process at the local end and the access layer process at the local end respectively close their corresponding sockets.

可选的,局端网管进程和局端访问层进程的套接字为UNIX域字节流套接字。Optionally, the sockets of the local network management process and the local access layer process are UNIX domain byte stream sockets.

可选的,局端网管进程将需要发送的数据封装成第一结构体,包括:Optionally, the local network management process encapsulates the data to be sent into a first structure, including:

在局端网管进程预先定义用于表示网管类型的第一变量、用于表示操作类型的第二变量、用于表示资源类型的第三变量和用于表示资源标识的第四变量,In the local network management process, a first variable used to represent the network management type, a second variable used to represent the operation type, a third variable used to represent the resource type, and a fourth variable used to represent the resource identifier are pre-defined,

局端网管进程将需要发送的数据使用所述第一变量、第二变量、第三变量和第四变量表示,将使用所述第一变量、第二变量、第三变量和第四变量表示后的数据封装成第一结构体。The local end network management process will use the first variable, the second variable, the third variable and the fourth variable to represent the data that needs to be sent, and will use the first variable, the second variable, the third variable and the fourth variable to represent the data. The data of is encapsulated into the first structure.

可选的,局端访问层进程接收到所述第一结构体后,根据所述第一结构体解析出局端网管进程发送的数据传输至相应的函数接口进行处理,将函数接口返回的数据封装为第二结构体,包括:Optionally, after the central office access layer process receives the first structure, it parses the data sent by the central office network management process according to the first structure and transmits it to the corresponding function interface for processing, and encapsulates the data returned by the function interface is the second structure, including:

在局端访问层进程预先定义用于表示网管类型的第一变量、用于表示操作类型的第二变量、用于表示资源类型的第三变量和用于表示资源标识的第四变量,In the local access layer process, the first variable used to represent the network management type, the second variable used to represent the operation type, the third variable used to represent the resource type, and the fourth variable used to represent the resource identifier are predefined,

局端访问层进程接收到所述第一结构体后,根据所述第一结构体解析出第一变量、第二变量、第三变量和第四变量,并将所述第一变量、第二变量、第三变量和第四变量传输至相应的函数接口进行处理,接收函数接口返回的数据,并将函数接口返回的数据按照第一变量、第二变量、第三变量和第四变量封装为第二结构体。After receiving the first structure, the local access layer process parses out the first variable, the second variable, the third variable and the fourth variable according to the first structure, and converts the first variable, the second The variable, the third variable and the fourth variable are transmitted to the corresponding function interface for processing, the data returned by the function interface is received, and the data returned by the function interface is packaged according to the first variable, the second variable, the third variable and the fourth variable as Second structure.

可选的,所述的多应用层网管并发访问方法,还包括:Optionally, the multi-application layer network management concurrent access method also includes:

在局端访问层进程和局端网管进程分别定义套接字通信接口,所述套接字通信接口包括用于初始化套接字的第一接口、用于发送数据的第二接口、用于接收数据的第三接口以及用于关闭套接字的第四接口,The socket communication interface is respectively defined in the local end access layer process and the local end network management process, and the socket communication interface includes a first interface for initializing the socket, a second interface for sending data, and a second interface for receiving a third interface for data and a fourth interface for closing the socket,

局端网管进程获取所述第一套接字后,调用局端网管进程的第一接口初始化所述第一套接字,局端访问层进程在获取局端访问层进程套接字后,调用局端访问层的第一接口初始化所述局端访问层进程套接字,After the local end network management process obtains the first socket, it calls the first interface of the local end network management process to initialize the first socket, and the local end access layer process calls the local end access layer process socket after obtaining the local end access layer process socket. The first interface of the central office access layer initializes the central office access layer process socket,

局端网管进程调用局端网管进程的第二接口将所述第一结构体发送至局端访问层进程,The local end network management process calls the second interface of the local end network management process to send the first structure to the local end access layer process,

局端访问层进程调用局端访问层进程的第三接口接收所述第一结构体,并调用局端访问层进程的第二接口将所述第二结构体发送至局端网管进程,The central access layer process calls the third interface of the central access layer process to receive the first structure, and calls the second interface of the central access layer process to send the second structure to the central network management process,

局端网管进程调用局端网管进程的第三接口接收所述第二结构体,The local network management process calls the third interface of the local network management process to receive the second structure,

局端网管进程和局端访问层进程通信完成后,局端网管进程和局端访问层进程分别调用各自的第四接口关闭自身的套接字。After the communication between the local network management process and the local access layer process is completed, the local network management process and the local access layer process call their respective fourth interfaces to close their own sockets.

可选的,所述建立局端访问层进程和局端网管进程的通信,在局端访问层进程一端,包括:Optionally, the establishment of the communication between the local end access layer process and the local end network management process, at one end of the local end access layer process, includes:

步骤a1,获取局端访问层进程套接字描述符;Step a1, obtaining the access layer process socket descriptor at the central office;

步骤a2,监听局端网管进程的连接请求,将所述局端访问层进程套接字描述加入到描述符集中;Step a2, monitoring the connection request of the central office network management process, and adding the socket description of the central office access layer process into the descriptor set;

步骤a3,查询描述符集的状态,判断描述符集的状态是否存在变化;Step a3, query the state of the descriptor set, and determine whether there is a change in the state of the descriptor set;

步骤a4,如果描述符集的状态存在变化,遍历所有描述符的状态,判断是否存在状态发生变化的描述符,否则,返回步骤a3;Step a4, if there is a change in the state of the descriptor set, traverse the states of all descriptors to determine whether there is a descriptor whose state has changed, otherwise, return to step a3;

步骤a5:如果存在状态发生变化的描述符,判断状态发生变化的描述符是否等于所述局端访问层进程套接字描述符;Step a5: If there is a descriptor whose state has changed, determine whether the descriptor whose state has changed is equal to the socket descriptor of the central access layer process;

步骤a6,如果状态发生变化的描述符等于所述套接字描述符,则存在局端网管进程连接请求,接受所述局端网管进程连接请求,获取与局端网管进程进行通信的第二套接字,建立与局端网管进程的通信,将与局端网管进程通信的描述符加入到描述符集中,返回步骤a3,否则,局端访问层进程进入接收局端网管进程发送的数据的过程。Step a6, if the descriptor whose status changes is equal to the socket descriptor, there is a connection request of the central office network management process, accept the connection request of the central office network management process, and obtain the second set of communication with the central office network management process Connect, establish communication with the central office network management process, add the descriptors communicated with the central office network management process to the descriptor set, return to step a3, otherwise, the central office access layer process enters the process of receiving data sent by the central office network management process .

相应于本申请实施例的第一方面,根据本申请实施例的第二方面,提供一种多应用层网管并发访问装置,包括:Corresponding to the first aspect of the embodiment of the present application, according to the second aspect of the embodiment of the present application, a multi-application layer network management concurrent access device is provided, including:

局端网管进程连接模块,用于在各个局端网管进程中分别获取第一套接字,并向局端访问层进程发起连接请求;The local end network management process connection module is used to respectively obtain the first socket in each local end network management process, and initiate a connection request to the central end access layer process;

局端访问层进程连接模块,用于在局端访问层进程中轮询局端访问层进程套接字的可读状态,根据局端访问层进程套接字的可读状态得到局端网管进程的连接请求后,获取与局端网管进程进行通信的第二套接字,建立局端访问层进程和各个局端网管进程的通信连接;The local end access layer process connection module is used to poll the readable state of the central end access layer process socket in the central end access layer process, and obtain the central end network management process according to the readable state of the central end access layer process socket After the connection request of the local end network management process, obtain the second socket for communicating with the local end network management process, and establish the communication connection between the local end access layer process and each local end network management process;

局端网管进程数据处理模块,用于将需要发送的数据封装成第一结构体;The central network management process data processing module is used to encapsulate the data to be sent into a first structure;

局端网管进程数据发送模块,用于将所述第一结构体发送至局端访问层进程;The local network management process data sending module is used to send the first structure to the local access layer process;

局端访问层进程数据接收模块,用于在局端访问层进程接收到所述第一结构体;The central access layer process data receiving module is configured to receive the first structure in the central access layer process;

局端访问层进程数据处理模块,用于根据所述第一结构体解析出局端网管进程发送的数据传输至相应的函数接口进行处理,接收函数接口返回的数据封装为第二结构体,第一结构体和第二结构体的封装方法相同;The local end access layer process data processing module is used to analyze the data sent by the central office network management process according to the first structure and transmit it to the corresponding function interface for processing. The data returned by the receiving function interface is encapsulated into a second structure, the first The encapsulation methods of the structure and the second structure are the same;

局端访问层进程数据发送模块,用于将所述第二结构体发送至局端网管进程;The central office access layer process data sending module, configured to send the second structure to the central office network management process;

局端网管进程数据接收模块,用于接收所述第二结构体,并解析所述第二结构体得到经函数接口的数据;The local network management process data receiving module is used to receive the second structure, and parse the second structure to obtain the data through the function interface;

局端网管进程通信关闭模块,用于在和局端访问层进程的通信完成后,关闭自身对应的套接字;The local end network management process communication closing module is used to close the socket corresponding to itself after the communication with the local end access layer process is completed;

局端访问层进程通信关闭模块,用于在和局端网管进程的通信完成后,关闭自身对应的套接字。The local end access layer process communication closing module is used to close its corresponding socket after the communication with the local end network management process is completed.

可选的,局端网管进程和局端访问层进程的套接字为UNIX域字节流套接字。Optionally, the sockets of the local network management process and the local access layer process are UNIX domain byte stream sockets.

可选的,所述局端网管进程数据处理模块,包括:Optionally, the local end network management process data processing module includes:

第一变量定义子模块,用于在局端网管进程预先定义用于表示网管类型的第一变量、用于表示操作类型的第二变量、用于表示资源类型的第三变量和用于表示资源标识的第四变量,The first variable definition sub-module is used to predefine the first variable used to represent the network management type, the second variable used to represent the operation type, the third variable used to represent the resource type and the resource type in the local network management process. identifies the fourth variable,

第一数据封装子模块,用于在局端网管进程将需要发送的数据使用所述第一变量、第二变量、第三变量和第四变量表示,将使用所述第一变量、第二变量、第三变量和第四变量表示后的数据封装成第一结构体。The first data encapsulation sub-module is used to use the first variable, the second variable, the third variable and the fourth variable to represent the data that needs to be sent in the local network management process, and the first variable and the second variable will be used , the data represented by the third variable and the fourth variable are encapsulated into the first structure.

可选的,所述局端访问层进程数据处理模块,包括:Optionally, the local access layer process data processing module includes:

第二变量定义子模块,用于在局端访问层进程预先定义用于表示网管类型的第一变量、用于表示操作类型的第二变量、用于表示资源类型的第三变量和用于表示资源标识的第四变量,The second variable definition sub-module is used to predefine the first variable used to represent the network management type, the second variable used to represent the operation type, the third variable used to represent the resource type and the The fourth variable of the resource identifier,

第一解析子模块,用于在局端访问层进程接收到所述第一结构体后,根据所述第一结构体解析出第一变量、第二变量、第三变量和第四变量,The first parsing submodule is configured to parse out the first variable, the second variable, the third variable and the fourth variable according to the first structure after the local access layer process receives the first structure,

传输子模块,用于将所述第一变量、第二变量、第三变量和第四变量传输至相应的函数接口进行处理;a transmission sub-module, configured to transmit the first variable, the second variable, the third variable and the fourth variable to corresponding function interfaces for processing;

返回数据接收子模块,用于接收函数接口返回的数据;The return data receiving submodule is used to receive the data returned by the function interface;

第二封装子模块,用于将函数接口返回的数据按照第一变量、第二变量、第三变量和第四变量封装为第二结构体。The second encapsulation sub-module is used for encapsulating the data returned by the function interface into a second structure according to the first variable, the second variable, the third variable and the fourth variable.

可选的,所述的多应用层网管并发访问装置,还包括:Optionally, the multi-application layer network management concurrent access device also includes:

第一套接字接口定义模块,用于在局端访问层进程定义套接字通信接口;The first socket interface definition module is used to define the socket communication interface in the central office access layer process;

第二套接字接口定义模块,用于在局端网管进程定义套接字通信接口;The second socket interface definition module is used to define the socket communication interface in the central office network management process;

其中,所述套接字通信接口包括用于初始化套接字的第一接口、用于发送数据的第二接口、用于接收数据的第三接口以及用于关闭套接字的第四接口,Wherein, the socket communication interface includes a first interface for initializing the socket, a second interface for sending data, a third interface for receiving data, and a fourth interface for closing the socket,

局端网管进程获取所述第一套接字后,调用局端网管进程的第一接口初始化所述第一套接字,局端访问层进程在获取局端访问层进程套接字后,调用局端访问层的第一接口初始化所述局端访问层进程套接字,After the local end network management process obtains the first socket, it calls the first interface of the local end network management process to initialize the first socket, and the local end access layer process calls the local end access layer process socket after obtaining the local end access layer process socket. The first interface of the central office access layer initializes the central office access layer process socket,

局端网管进程数据发送模块调用自身的第二接口将所述第一结构体发送至局端访问层进程,局端网管进程数据接收模块调用自身的第三接口接收所述第二结构体,The local end network management process data sending module calls its second interface to send the first structure to the local end access layer process, and the local end network management process data receiving module calls its own third interface to receive the second structure,

局端访问层进程数据接收模块调用自身的第三接口接收所述第一结构体,并调用自身的第二接口将所述第二结构体发送至局端网管进程,The local end access layer process data receiving module calls its own third interface to receive the first structure, and calls its own second interface to send the second structure to the local end network management process,

局端网管进程通信关闭模块和局端访问层进程通信关闭模块分别调用各自的第四接口关闭自身的套接字。The local end network management process communication closing module and the local end access layer process communication closing module respectively call their respective fourth interfaces to close their own sockets.

可选的,所述局端访问层进程连接模块,包括:Optionally, the local access layer process connection module includes:

套接字描述符获取子模块,用于获取局端访问层进程套接字描述符;The socket descriptor acquisition submodule is used to obtain the socket descriptor of the access layer process at the central office;

监听子模块,用于监听局端网管进程的连接请求,并将所述局端访问层进程套接字描述加入到描述符集中;The monitoring sub-module is used to monitor the connection request of the central office network management process, and add the socket description of the central office access layer process into the descriptor set;

描述符集状态查询子模块,用于查询描述符集的状态,判断描述符集的状态是否存在变化;The descriptor set state query submodule is used to query the state of the descriptor set and determine whether there is a change in the state of the descriptor set;

描述符状态查询子模块,用于如果描述符集的状态存在变化,遍历所有描述符的状态,判断是否存在状态发生变化的描述符,否则,返回描述符集状态查询模块;The descriptor state query sub-module is used for traversing the states of all descriptors if the state of the descriptor set changes, and judging whether there is a descriptor whose state has changed, otherwise, returning to the descriptor set state query module;

描述符判断子模块,用于如果存在状态发生变化的描述符,判断状态发生变化的描述符是否等于所述局端访问层进程套接字描述符;The descriptor judging submodule is used to judge whether the descriptor whose state changes is equal to the socket descriptor of the central access layer process if there is a descriptor whose state changes;

通信连接建立子模块,用于如果状态发生变化的描述符等于所述局端访问层进程套接字描述符,则接受所述局端网管进程连接请求,获取与局端网管进程进行通信的第二套接字,建立与局端网管进程的通信,将与局端网管进程通信的描述符加入到描述符集中,返回描述符集状态查询子模块,否则,局端访问层进程进入接收局端网管进程发送的数据的过程。The communication connection establishment sub-module is used to accept the connection request of the central network management process if the descriptor whose state changes is equal to the socket descriptor of the central office access layer process, and obtain the first communication process with the central office network management process. Two sockets, establish communication with the central office network management process, add the descriptors communicated with the central office network management process to the descriptor set, and return the descriptor set status query submodule, otherwise, the central office access layer process enters the receiving central office The process of data sent by the network management process.

本申请实施例提供的技术方案可以包括以下有益效果:以I/O复用的方式同时监控多个局端网管进程,当接收到局端网管进程的连接请求时,建立与局端网管进程的通信,当局端网管进程发送数据时再开始进入接收数据的过程,因而不会出现通信阻塞的情况,响应速度快,效率高,实现局端网管进程的并发访问。同时对局端网管进程和局端访问层进程之间传输的数据进行结构体封装,对多个局端网管进程并发的传输数据进行统一的处理,还可以对局端网管进程和局端访问层进程进行接口抽象,避免并发访问时因为处理过程不一致而出现冲突和错误。The technical solution provided by the embodiment of the present application may include the following beneficial effects: simultaneously monitor a plurality of central office network management processes in the form of I/O multiplexing, and establish a connection with the central office network management process when receiving a connection request from the central office network management process Communication, when the local network management process sends data, it starts to receive data, so there will be no communication blockage, fast response, high efficiency, and concurrent access to the local network management process. At the same time, the data transmitted between the central network management process and the local access layer process is encapsulated in a structure, and the concurrent transmission data of multiple local end network management processes is uniformly processed, and the local network management process and the local access layer can also be processed. The process abstracts the interface to avoid conflicts and errors due to inconsistent processing during concurrent access.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings without paying creative labor.

图1为本申请一示例性实施例示出的一种多应用层网管并发访问方法的流程示意图。Fig. 1 is a schematic flowchart of a method for concurrent access by multi-application layer network management according to an exemplary embodiment of the present application.

图2为本申请另一示例性实施例示出的一种多应用层网管并发访问方法的流程示意图。Fig. 2 is a schematic flowchart of a method for concurrent access by multi-application layer network management according to another exemplary embodiment of the present application.

图3为本申请一示例性实施例示出的一种多应用层网管并发访问装置的框图。Fig. 3 is a block diagram of a multi-application layer network management concurrent access device shown in an exemplary embodiment of the present application.

图4为本申请另一示例性实施例示出的一种多应用层网管并发访问装置的框图。Fig. 4 is a block diagram of a multi-application layer network management concurrent access device shown in another exemplary embodiment of the present application.

具体实施方式detailed description

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.

为了全面理解本申请,在以下详细描述中提到了众多具体的细节,但是本领域技术人员应该理解,本申请可以无需这些具体细节而实现。在其他实施例中,不详细描述公知的方法、过程、组件和电路,以免不必要地导致实施例模糊。In the following detailed description, numerous specific details are set forth in order to provide a comprehensive understanding of the application, but those skilled in the art will understand that the application may be practiced without these specific details. In other embodiments, well-known methods, procedures, components and circuits have not been described in detail so as not to unnecessarily obscure the embodiments.

根据本申请实施例的第一方面,提供一种多应用层网管并发访问方法。图1为本申请一示例性实施例示出的一种多应用层网管并发访问方法的流程示意图,图1中,虚线表示数据信息的传输方向。如图1所示,所述方法包括:According to the first aspect of the embodiments of the present application, a method for concurrent access by multi-application layer network management is provided. Fig. 1 is a schematic flowchart of a multi-application layer network management concurrent access method shown in an exemplary embodiment of the present application. In Fig. 1 , the dotted line indicates the transmission direction of data information. As shown in Figure 1, the method includes:

步骤S101,各个局端网管进程分别获取第一套接字,并向局端访问层进程发起连接请求。In step S101, each network management process at the central office obtains the first socket respectively, and initiates a connection request to the access layer process at the central office.

其中,为了便于局端程序的设计和维护,将局端软件架构由上至下依次划分为局端访问层、局端业务软件层、局端SDK软件层和局端操作系统层。局端操作系统层即操作系统平台,例如基于LINUX的操作系统平台;局端SDK软件层用于对局端SDK进行封装,当SDK变化时,只需修改SDK层,上层的应用代码无需改变;局端业务软件层调用SDK的接口,进行业务配置,以及对业务配置进行存储;局端访问层用于与多种局端网管进行通信和数据传输,对多种局端网管进行管理,以及对多种局端网管的访问进行数据封装和接口抽象。对局端软件架构进行层次划分后,对于多种局端网管的并发访问,将主要由局端访问层来解决,局端访问层与多种局端网管建立起通信通道,进行数据通信,局端访问层与多种局端网管的通信由局端访问层进程和多种局端网管进程进行。局端访问层接收到局端网管的数据后进行解析,然后传递到局端业务软件层,在局端访问层中完成局端网管类型的差异处理,局端业务软件层便无需再考虑局端网管的类型,只需进行业务处理,从而可以更好的支持多种局端网管的访问。Among them, in order to facilitate the design and maintenance of the central office program, the central office software architecture is divided into the central office access layer, the central office business software layer, the central office SDK software layer and the central office operating system layer from top to bottom. The local end operating system layer is the operating system platform, such as a LINUX-based operating system platform; the central end SDK software layer is used to encapsulate the central end SDK. When the SDK changes, only the SDK layer needs to be modified, and the application code of the upper layer does not need to be changed; The central office service software layer invokes the SDK interface to perform business configuration and store the service configuration; the central office access layer is used for communication and data transmission with various central Data encapsulation and interface abstraction are performed for the access of various central office network management. After the central office software architecture is divided into layers, the concurrent access of various central office network managements will be mainly solved by the central office access layer. The central office access layer establishes communication channels with various central office network The communication between the end access layer and various central office network managements is carried out by the central office access layer process and various central office network management processes. The central office access layer receives the data from the central office network management, analyzes it, and then transmits it to the central office service software layer, and completes the difference processing of the central office network management types in the central office access layer, so that the central office service software layer does not need to consider the central office service software layer. The type of network management only needs to perform business processing, so that it can better support the access of various central office network management.

各个局端网管进程在需要与局端访问层建立通信连接时,分别获取第一套接字,并向局端访问层进程发起连接请求。局端网管进程获取第一套接字和向局端访问层进程发起连接请求可以使用常规的方法,例如对基于LINUX的操作系统(以下皆以基于LINUX的操作系统进行举例),调用socket()来获取套接字描述符,即获取了第一套接字,并调用connect()来向局端访问层进行发起连接请求,以开始与局端访问层进行通信。When each local network management process needs to establish a communication connection with the central office access layer, it respectively obtains the first socket and initiates a connection request to the central office access layer process. The local end network management process obtains the first socket and initiates a connection request to the central end access layer process using a conventional method, for example, for a LINUX-based operating system (the following is an example based on a LINUX-based operating system), call socket() To obtain the socket descriptor, that is, obtain the first socket, and call connect() to initiate a connection request to the central office access layer to start communicating with the central office access layer.

步骤S102,局端访问层进程轮询局端访问层进程套接字的可读状态,根据局端访问层进程套接字的可读状态得到局端网管进程的连接请求后,获取与局端网管进程进行通信的第二套接字,建立局端访问层进程和各个局端网管进程的通信连接。Step S102, the central office access layer process polls the readable state of the central office access layer process socket, after obtaining the connection request of the central office network management process according to the readable state of the central office access layer process socket, obtains the connection request with the central office The second socket used by the network management process for communication establishes communication connections between the central office access layer process and each central office network management process.

其中,具体地,步骤S102可以包括:Wherein, specifically, step S102 may include:

步骤a1,局端访问层获取局端访问层进程套接字及其描述符,并初始化对应的局端访问层进程套接字,在基于LINUX的操作系统下可以调用socket()来获取局端访问层进程套接字描述符,局端访问层进程套接字文件路径和局端访问层进程套接字描述符绑定;In step a1, the central office access layer obtains the central office access layer process socket and its descriptor, and initializes the corresponding central office access layer process socket. Under the LINUX-based operating system, socket() can be called to obtain the central office The access layer process socket descriptor, the central office access layer process socket file path is bound to the central office access layer process socket descriptor;

步骤a2,监听局端网管进程的连接请求,将所述局端访问层进程套接字描述符加入到描述符集中,在基于LINUX的操作系统下调用listen(),能够监听局端网管进程的连接请求,描述符集用于存储套接字描述符;Step a2, monitor the connection request of the central office network management process, add the central office access layer process socket descriptor into the descriptor set, call listen() under the LINUX-based operating system, and can monitor the central office network management process Connection request, the descriptor set is used to store socket descriptors;

步骤a3,查询描述符集的状态,判断描述符集的状态是否存在变化,通常,会将描述符集赋值给临时描述符集,在基于LINUX的操作系统下使用select()函数查询临时描述符集的状态,通过select()的返回值来判断描述符集的状态是否存在变化,select()的返回值如果大于0则说明描述符集的状态存在变化;Step a3, query the state of the descriptor set, and determine whether the state of the descriptor set has changed. Usually, the descriptor set is assigned to a temporary descriptor set, and the select() function is used to query the temporary descriptor under the LINUX-based operating system The state of the descriptor set is judged by the return value of select() to determine whether the state of the descriptor set has changed. If the return value of select() is greater than 0, it indicates that the state of the descriptor set has changed;

步骤a4,如果描述符集的状态存在变化,遍历所有描述符的状态,判断是否存在状态发生变化的描述符,否则,返回步骤a3,继续查询描述符集的状态;Step a4, if there is a change in the state of the descriptor set, traverse the states of all descriptors, and determine whether there is a descriptor whose state has changed, otherwise, return to step a3, and continue to query the state of the descriptor set;

步骤a5:如果存在状态发生变化的描述符,判断状态发生变化的描述符是否等于所述局端访问层进程套接字描述符,即等于局端访问层获取的局端访问层进程套接字描述符;Step a5: If there is a descriptor whose status has changed, determine whether the descriptor whose status has changed is equal to the socket descriptor of the central access layer process, that is, equal to the process socket of the central access layer obtained by the central access layer Descriptor;

步骤a6,如果状态发生变化的描述符等于所述局端访问层进程套接字描述符,则存在局端网管进程连接请求,接受所述局端网管进程连接请求,获取与局端网管进程进行通信的套接字及其描述符,即所述第二套接字及其描述符。在基于LINUX的操作系统下,所述与局端网管进程进行通信的套接字描述符可以使用accept()函数得到,得到与局端网管进程进行通信的套接字描述符即建立了与局端网管进程的通信,将与局端网管进程通信的套接字描述符加入到描述符集中,返回步骤a3,继续查询描述符集的状态,以考察是否有其他局端网管进程连接请求。如果当前遍历到的状态发生变化的描述符不等于局端访问层获取的局端访问层进程套接字描述符,则局端访问层进程进入接收局端网管进程发送的数据的过程。Step a6, if the descriptor whose state changes is equal to the socket descriptor of the central office access layer process, then there is a central office network management process connection request, accept the central office network management process connection request, and obtain a connection request with the central office network management process The communication socket and its descriptor, that is, the second socket and its descriptor. Under the LINUX-based operating system, the socket descriptor for communicating with the local network management process can be obtained using the accept() function, and the socket descriptor for communicating with the local network management process is obtained to establish a connection with the local network management process. For the communication of the end network management process, add the socket descriptor communicating with the local end network management process into the descriptor set, return to step a3, and continue to query the state of the descriptor set to check whether there are other connection requests of the central end network management process. If the currently traversed descriptor whose state has changed is not equal to the socket descriptor of the central office access layer process obtained by the central office access layer, the central office access layer process enters the process of receiving data sent by the central office network management process.

其中,局端访问层进程通过轮询局端访问层进程套接字状态的变化,在接收到局端网管进程的连接请求后,建立局端访问层进程和各个局端网管进程的通信连接,以I/O复用的方式同时监控多个局端网管进程,当接收到局端网管进程的连接请求时,建立与局端网管进程的通信,当局端网管进程发送数据时(即遍历到的可读描述符不等于局端访问层获取的套接字描述符时),再开始进入接收数据的过程,因而不会出现通信阻塞的情况,响应速度快,效率高,使得局端网管进程的并发访问可以实现。Wherein, the central office access layer process polls the change of the central office access layer process socket state, and after receiving the connection request of the central office network management process, establishes the communication connection between the central office access layer process and each central office network management process, Simultaneously monitor multiple central network management processes in the form of I/O multiplexing. When receiving a connection request from the local network management process, establish communication with the local network management process. When the central network management process sends data (that is, the traversed When the readable descriptor is not equal to the socket descriptor obtained by the access layer of the central office), the process of receiving data will start again, so there will be no communication blocking, fast response and high efficiency, making the network management process of the central office Concurrent access is possible.

步骤S103,局端网管进程将需要发送的数据封装成第一结构体,并将所述第一结构体发送至局端访问层进程。Step S103, the central office network management process encapsulates the data to be sent into a first structure, and sends the first structure to the central office access layer process.

步骤S104,局端访问层进程接收到所述第一结构体后,根据所述第一结构体解析出局端网管进程发送的数据传输至相应的函数接口进行处理,将函数接口返回的数据封装为第二结构体,并将所述第二结构体发送至局端网管进程,第一结构体和第二结构体的封装方法相同。Step S104, after the central office access layer process receives the first structure, it parses out the data sent by the central office network management process according to the first structure and transmits it to the corresponding function interface for processing, and encapsulates the data returned by the function interface as the second structure, and send the second structure to the network management process of the local end. The encapsulation methods of the first structure and the second structure are the same.

步骤S105,局端网管进程接收到第二结构体后,解析所述第二结构体得到经函数接口返回的数据。In step S105, after receiving the second structure, the central office network management process parses the second structure to obtain the data returned through the function interface.

其中,多个局端网管进程并发访问时,由于局端网管的类型不同,所传输的资源类型,涉及的操作类型不同,如果对每个局端网管进程的访问所传输的数据同时分别处理,由于处理过程不一致将使数据处理过程复杂而易出现冲突和错误,为能对多个局端网管进程并发的传输数据进行统一的处理,对局端网管进程传输的数据进行类封装,即将数据封装为结构体。对于局端网管进程而言,将需要发送给局端访问层进程的数据封装为第一结构体,然后发送至局端访问层进程。局端网管进程需要传输的数据都可以划分为网管类型、操作类型、资源类型和资源标识,因此可以在局端网管进程预先定义用于表示网管类型的第一变量、用于表示操作类型的第二变量、用于表示资源类型的第三变量和用于表示资源标识的第四变量,局端网管进程将需要发送的数据使用所述第一变量、第二变量、第三变量和第四变量来表示,将使用所述第一变量、第二变量、第三变量和第四变量表示后的数据作为结构体的成员,封装成第一结构体。例如,将网管类型定义为moduleType,将各种操作类型定义为operType,将资源类型定义为resType,将资源标识定义为resId,每个变量的值便是具体的网络类型、操作类型、资源类型和资源标识。构造结构体型uAlMsg,其以moduleType、operType、resType和resID为成员,uALMsg类型的结构体便是封装后的局端网管进程的数据。在局端网管进程向局端访问层进程发送数据时,将直接发送uAlMsg类型的结构体。Among them, when multiple central office network management processes access concurrently, due to the different types of central office network management, the types of resources transmitted and the types of operations involved are different. Inconsistencies in the processing process will make the data processing process complicated and prone to conflicts and errors. In order to uniformly process the data transmitted concurrently by multiple central network management processes, the data transmitted by the central network management process is encapsulated in a class, that is, data encapsulation for the structure. For the central office network management process, the data to be sent to the central office access layer process is encapsulated into a first structure, and then sent to the central office access layer process. The data that needs to be transmitted by the network management process at the local end can be divided into network management type, operation type, resource type and resource identification. Therefore, the first variable used to represent the network management type and the second variable used to represent the The second variable, the third variable used to represent the resource type, and the fourth variable used to represent the resource identifier, the data that the local network management process will need to send uses the first variable, the second variable, the third variable and the fourth variable to indicate that the data represented by the first variable, the second variable, the third variable and the fourth variable are used as members of the structure and encapsulated into the first structure. For example, define the network management type as moduleType, define various operation types as operType, define the resource type as resType, and define the resource ID as resId. The value of each variable is the specific network type, operation type, resource type and Resource ID. Construct the structure type uAlMsg, which has moduleType, operType, resType and resID as members, and the structure of uALMsg type is the data of the local network management process after encapsulation. When the central office network management process sends data to the central office access layer process, it will directly send the uAlMsg type structure.

相应地,局端访问层进程接收到所述第一结构体后,根据第一结构体的封装方法相应地对所述第一结构体进行解析,解析出局端网管进程发送的数据。为了对封装的数据进行解析,以及后续在向局端网管进程返回数据时再次封装数据,在局端访问层进程可以预先定义用于表示网管类型的第一变量、用于表示操作类型的第二变量、用于表示资源类型的第三变量和用于表示资源标识的第四变量,预先定义的变量和方法与局端网管进程预先定义的变量和方法相同。局端访问层进程接收到所述第一结构体后,根据所述第一结构体解析出第一变量、第二变量、第三变量和第四变量,例如局端访问层进程接收到局端网管进程发送的uALMsg类型的结构体后,提取结构体中的moduleType、operType、resType和resID变量,得到网管类型、操作类型、资源类型和资源标识数据。Correspondingly, after receiving the first structure, the central office access layer process parses the first structure according to the encapsulation method of the first structure, and parses out the data sent by the central office network management process. In order to analyze the encapsulated data, and subsequently re-encapsulate the data when returning the data to the central office network management process, the central office access layer process can pre-define the first variable used to represent the network management type, and the second variable used to represent the operation type The variable, the third variable used to represent the resource type, and the fourth variable used to represent the resource identifier, the predefined variables and methods are the same as the predefined variables and methods of the local network management process. After the local access layer process receives the first structure, it parses out the first variable, the second variable, the third variable and the fourth variable according to the first structure, for example, the local access layer process receives the After the uALMsg type structure sent by the network management process, extract the moduleType, operType, resType and resID variables in the structure to obtain the network management type, operation type, resource type and resource identification data.

局端访问层进程解析所述第一结构体得到相应的数据后,将解析得到的数据传输至对各个数据进行处理的函数接口,所述函数接口为处理数据的函数接收数据的接口,例如局端业务软件层的处理数据的函数,包括常规的数据过滤函数等。即将根据第一结构体解析得到的第一变量、第二变量、第三变量和第四变量传输至相应的函数接口进行处理。经函数处理过的数据,需要返回的会由函数接口返回给局端访问层进程。局端访问层进程接收到函数接口返回的数据后,再按照与局端网管进程封装数据同样的方法对数据进行封装。即将函数接口返回的数据按照第一变量、第二变量、第三变量和第四变量封装为第二结构体。例如将函数接口返回的moduleType、operType、resType和resID再次封装为uALMsg类型的第二结构体。局端访问层进程再将封装得到的第二结构体发送至局端网管进程。After the local end access layer process parses the first structure to obtain corresponding data, it transmits the parsed data to a function interface for processing each data, and the function interface is an interface for receiving data by a function processing data, for example, the local Data processing functions of the end business software layer, including conventional data filtering functions, etc. That is, the first variable, the second variable, the third variable and the fourth variable obtained by analyzing the first structure are transmitted to the corresponding function interface for processing. The data processed by the function, which needs to be returned, will be returned to the local access layer process by the function interface. After the central office access layer process receives the data returned by the function interface, it encapsulates the data in the same way as the central office network management process encapsulates the data. That is, the data returned by the function interface is encapsulated into a second structure according to the first variable, the second variable, the third variable and the fourth variable. For example, the moduleType, operType, resType, and resID returned by the function interface are repackaged into a second structure of uALMsg type. The local end access layer process then sends the encapsulated second structure to the local end network management process.

其中,局端网管进程接收到局端访问层进程发送的第二结构体后,提取第二结构体中的各个变量,获得各个变量的数值,即解析所述第二结构体得到经函数处理并由函数接口返回的数据。例如,局端网管进程接收到uALMsg类型的第二结构体后,提取结构体中的moduleType、operType、resType和resID变量,得到网管类型和经处理后的操作类型、资源类型和资源标识数据。Wherein, after the local network management process receives the second structure sent by the local access layer process, it extracts each variable in the second structure and obtains the value of each variable, that is, parses the second structure to obtain the function-processed and Data returned by the functional interface. For example, after receiving the second structure of uALMsg type, the local network management process extracts the moduleType, operType, resType and resID variables in the structure to obtain the network management type and the processed operation type, resource type and resource identification data.

需要说明的是,局端网管进程和局端访问层进程对数据的封装方法并不仅限于上述方法,也可以使用其他的常规的数据封装方法或者自定义数据封装方法。It should be noted that the methods for encapsulating data by the network management process at the local end and the access layer process at the local end are not limited to the above methods, and other conventional data encapsulation methods or custom data encapsulation methods may also be used.

其中,局端网管进程在于局端访问层进程建立通信连接后,如果需要发送数据,则将封装后的数据使用相关发送函数进行发送,例如在基于LINUX的操作系统下使用send()函数进行发送。发送数据后,局端网管进程查询获取的套接字描述符即第一套接字描述符是否可读,例如使用select()函数查询所述第一套接字描述符是否可读,当select()的返回值大于0时,所述第一套接字描述符可读。当所述第一套接字描述符可读时,说明局端访问层进程发送了数据,然后使用接收函数,例如基于LINUX的操作系统下的recv()函数来接受局端访问层进程发送的数据。为节省系统处理资源,避免局端网管进程无限制地查询所述第一套接字描述符是否可读以判断是否有数据可以接收,当局端网管进程连续两次查询所述第一套接字描述符的结果都为所述第一套接字描述符不可读时,便认为局端访问层进程不返回数据,进而关闭局端网管进程的第一套接字,即关闭与局端访问层进程的通信。Among them, the network management process of the local end is that after the access layer process of the local end establishes a communication connection, if data needs to be sent, the encapsulated data is sent using a related sending function, for example, using the send() function to send under a LINUX-based operating system . After sending the data, the central office network management process queries whether the obtained socket descriptor, namely the first socket descriptor, is readable. For example, the select() function is used to query whether the first socket descriptor is readable. When select When the return value of () is greater than 0, the first socket descriptor is readable. When the first socket descriptor is readable, it means that the central office access layer process has sent data, and then use the receiving function, such as the recv () function under the LINUX-based operating system to accept the data sent by the local end access layer process data. In order to save system processing resources and prevent the central office network management process from inquiring whether the first socket descriptor is readable to determine whether there is data to be received, the central office network management process inquires twice consecutively about the first socket descriptor When the result of the descriptor is that the first socket descriptor is unreadable, it is considered that the central office access layer process does not return data, and then the first socket of the central office network management process is closed, that is, the connection with the central office access layer is closed. process communication.

其中,对于局端访问层进程而言,与局端网管进程建立了通信连接,进入接收数据的过程时,即遍历到的状态发生变化的描述符不等于局端访问层获取的局端访问层进程套接字描述符时,获取与局端网管进程进行通信的套接字(即所述第二套接字)的可读字节数,如果可读字节数不为0,则说明有对应的局端网管进程发送的数据,使用相关的接收函数接收数据,例如使用recv()接收局端网管进程发送的数据。局端访问层进程向局端网管进程发送数据时,使用相关的发送函数向局端网管进程发送所述第二结构体,例如使用send()函数进行发送。Among them, for the central office access layer process, a communication connection is established with the central office network management process, and when entering the process of receiving data, the descriptors traversed that change state are not equal to the central office access layer acquired by the central office access layer. During the process socket descriptor, obtain the readable byte count of the socket (i.e. the second socket) that communicates with the local network management process, if the readable byte count is not 0, it means that there is For the data sent by the corresponding local network management process, use the relevant receiving function to receive the data, for example, use recv() to receive the data sent by the local network management process. When the access layer process at the local end sends data to the network management process at the central end, use a related sending function to send the second structure to the network management process at the central end, for example, use the send() function to send.

如果获取与局端网管进程进行通信的套接字的可读字节数为0,则说明局端网管进程已关闭了其第一套接字,即取消了对局端访问层进程的连接,此时局端访问层进程也关闭当前与对应的局端网管进程进行通信的套接字,并将对应的套接字描述符从描述符集中去掉,结束与局端网管进程的通信。If the number of readable bytes obtained for the socket communicating with the central office network management process is 0, it means that the central office network management process has closed its first socket, that is, the connection to the central office access layer process has been canceled. At this time, the central office access layer process also closes the socket currently communicating with the corresponding central office network management process, and removes the corresponding socket descriptor from the descriptor set, ending the communication with the central office network management process.

步骤S106,局端网管进程和局端访问层进程通信完成后,局端网管进程和局端访问层进程分别关闭自身对应的套接字。In step S106, after the communication between the central office network management process and the central office access layer process is completed, the central office network management process and the central office access layer process respectively close their corresponding sockets.

其中,局端网管进程和局端访问层进程的通信完成后,局端网管进程和局端访问层进程分别关闭自身对应的套接字,即局端网管进程关闭局端网管进程的第一套接字,局端访问层进程关闭局端访问层进程套接字及局端访问层进程的第二套接字,解除两者之间的通信连接。Among them, after the communication between the local network management process and the local access layer process is completed, the local network management process and the local access layer process respectively close their corresponding sockets, that is, the local network management process closes the first set of local network management processes. socket, the central office access layer process closes the central office access layer process socket and the second socket of the central office access layer process, and releases the communication connection between the two.

上述的局端网管进程涉及的套接字和局端访问进程涉及的套接字,都优选为UNIX域字节流套接字。UNIX域套接字相对于常用的因特网域套接字,仅复制数据,并不执行其他处理,具有较高的通信效率,且UNIX域字节流套接字相比UNIX域数据报套接字更适用于局端网管进程和局端访问层进程通信具有长连接的特性。The above-mentioned sockets involved in the network management process of the central office and the sockets involved in the access process of the central office are preferably UNIX domain byte stream sockets. Compared with commonly used Internet domain sockets, UNIX domain sockets only copy data and do not perform other processing, so they have higher communication efficiency. Compared with UNIX domain datagram sockets, UNIX domain byte stream sockets It is more suitable for the communication between the network management process of the local end and the access layer process of the local end, which has the characteristics of long connection.

图2为本申请另一示例性实施例示出的一种多应用层网管并发访问方法的流程示意图,图2中,虚线表示数据信息的传输方向。如图2所示,所述方法包括:Fig. 2 is a schematic flowchart of a method for concurrent access by a multi-application layer network management system according to another exemplary embodiment of the present application. In Fig. 2 , the dotted line indicates the transmission direction of data information. As shown in Figure 2, the method includes:

步骤S201,在局端访问层进程和局端网管进程分别定义套接字通信接口,所述套接字通信接口包括用于初始化套接字的第一接口、用于发送数据的第二接口、用于接收数据的第三接口以及用于关闭套接字的第四接口;In step S201, the socket communication interface is respectively defined in the central office access layer process and the central office network management process, and the socket communication interface includes a first interface for initializing the socket, a second interface for sending data, A third interface for receiving data and a fourth interface for closing the socket;

步骤S202,在局端访问层进程和局端网管进程分别定义用于表示网管种类的第一变量、用于表示操作类型的第二变量、用于表示资源类型的第三变量和用于表示资源标识的第四变量;Step S202, in the local end access layer process and the local end network management process respectively define the first variable used to indicate the type of network management, the second variable used to indicate the type of operation, the third variable used to indicate the type of resource and the third variable used to indicate the type of resource the fourth variable identified;

步骤S203,各个局端网管进程分别获取第一套接字,调用各自的第一接口初始化各自的第一套接字,并向局端访问层进程发起连接请求;Step S203, each central office network management process respectively obtains the first socket, calls the respective first interface to initialize the respective first socket, and initiates a connection request to the central office access layer process;

步骤S204,局端访问层进程获取局端访问层进程套接字,调用局端访问层进程的第一接口初始化所述局端访问层进程套接字;Step S204, the central office access layer process obtains the central office access layer process socket, and calls the first interface of the central office access layer process to initialize the central office access layer process socket;

步骤S205,局端访问层查询所述局端访问层进程套接字的可读状态,根据局端访问层进程套接字的可读状态得到局端网管进程的连接请求后,获取与局端网管进程进行通信的第二套接字,建立局端访问层进程和各个局端网管进程之间的通信连接;Step S205, the central office access layer inquires about the readable status of the central office access layer process socket, and obtains the connection request with the central office network management process according to the readable status of the central office access layer process socket. The second socket used by the network management process for communication, establishes a communication connection between the central office access layer process and each central office network management process;

步骤S206,局端网管进程将需要发送的数据使用所述第一变量、第二变量、第三变量和第四变量表示,将使用所述第一变量、第二变量、第三变量和第四变量表示后的数据封装成第一结构体,并调用第二接口将所述第一结构体发送至局端访问层进程;Step S206, the local end network management process will use the first variable, the second variable, the third variable and the fourth variable to represent the data that needs to be sent, and will use the first variable, the second variable, the third variable and the fourth variable The data represented by the variable is encapsulated into a first structure, and the second interface is called to send the first structure to the local access layer process;

步骤S207,局端访问层进程调用第三接口接收到所述第一结构体后,根据所述第一结构体解析出第一变量、第二变量、第三变量和第四变量,并将所述第一变量、第二变量、第三变量和第四变量传输至相应的函数接口进行处理,将函数接口处理后返回的数据按照第一变量、第二变量、第三变量和第四变量封装为第二结构体,并调用所述第三接口将所述第二结构体发送至局端网管进程;Step S207, after the local end access layer process calls the third interface and receives the first structure, it parses out the first variable, the second variable, the third variable and the fourth variable according to the first structure, and converts the The above-mentioned first variable, second variable, third variable and fourth variable are transmitted to the corresponding function interface for processing, and the data returned after the function interface is processed is encapsulated according to the first variable, second variable, third variable and fourth variable Be the second structure, and call the third interface to send the second structure to the local network management process;

步骤S208,局端网管进程调用所述第三接口接收到所述第二结构体后,解析所述第二结构体得到函数接口返回的数据;Step S208, after the central office network management process calls the third interface and receives the second structure, parses the second structure to obtain the data returned by the function interface;

步骤S209,局端网管进程和局端访问层进程通信完成后,局端网管进程和局端访问层进程分别调用第四接口关闭套接字。In step S209, after the communication between the central office network management process and the central office access layer process is completed, the central office network management process and the central office access layer process respectively call the fourth interface to close the socket.

其中,由于局端网管进程和局端访问层进程都需要进行套接字的初始化、数据发送、数据接收和关闭通信(即关闭套接字)。为方便对局端网管进程并发访问的管理,可以在局端访问层进程和局端网管进程分别定义套接字通信接口,所述套接字通信接口包括用于初始化套接字的第一接口、用于发送数据的第二接口、用于接收数据的第三接口以及用于关闭套接字的第四接口。所述套接字通信接口为将相关的处理函数进行组合,例如将初始化套接字的相关函数组合为新的函数,所述新的函数即所述第一接口,将用于发送数据的相关函数组合为所述第二接口,以此类推。使用统一的接口来处理局端网管进程和局端访问层进程的通信和数据传输,有利于对局端网管进程并发访问的管理,使管理具有一致性,减少不同局端网管并发访问产生的通信或传输的错误与冲突。Wherein, both the network management process at the local end and the access layer process at the local end need to initialize the socket, send data, receive data, and close communication (that is, close the socket). In order to facilitate the management of the concurrent access of the central office network management process, the socket communication interface can be defined respectively in the local end access layer process and the local end network management process, and the socket communication interface includes the first interface for initializing the socket , a second interface for sending data, a third interface for receiving data, and a fourth interface for closing the socket. The socket communication interface is to combine related processing functions, for example, combine the related functions of initializing the socket into a new function, and the new function is the first interface, which will be used to send data related Functions are combined into the second interface, and so on. Use a unified interface to handle the communication and data transmission between the local network management process and the local access layer process, which is conducive to the management of concurrent access to the central network management process, making management consistent and reducing the communication caused by concurrent access of different local network management Or transmission errors and conflicts.

其中,局端访问层进程在获取局端访问层进程套接字后,调用局端访问层的第一接口初始化所述局端访问层进程套接字,局端网管进程获取其第一套接字后,调用局端网管进程的第一接口初始化其第一套接字。局端网管进程调用第二接口将所述第一结构体发送至局端访问层进程,局端访问层进程调用第三接口接收所述第一结构体,并调用所述第二接口将所述第二结构体发送至局端网管进程,局端网管进程调用所述第三接口接收所述第二结构体,局端网管进程和局端访问层进程通信完成后,局端网管进程和局端访问层进程分别调用第四接口关闭自身的套接字。Wherein, after the central office access layer process obtains the central office access layer process socket, it calls the first interface of the central office access layer to initialize the central office access layer process socket, and the central office network management process obtains its first socket After the word, call the first interface of the central office network management process to initialize its first socket. The local network management process calls the second interface to send the first structure to the local access layer process, and the local access layer process calls the third interface to receive the first structure, and calls the second interface to send the The second structure is sent to the local network management process, and the local network management process calls the third interface to receive the second structure. After the communication between the local network management process and the local access layer process is completed, the local network management process and the local The access layer process respectively calls the fourth interface to close its own socket.

通过以上的方法实施例的描述,所属领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,并存储在一个存储介质中,包括若干指令用以使得一台智能设备执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:只读存储器(ROM)、随机存取存储器(RAM)、磁碟或者光盘等各种可以存储数据和程序代码的介质。Through the description of the above method embodiments, those skilled in the art can clearly understand that the present application can be realized by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on this understanding, the essence of the technical solution of this application or the part that contributes to the prior art can be embodied in the form of software products and stored in a storage medium, including several instructions to make an intelligent device Execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes various media capable of storing data and program codes, such as read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk.

相应于本申请实施例的第一方面,根据本申请实施例的第二方面,提供一种多应用层网管并发访问装置。图3为本申请一示例性实施例示出的一种多应用层网管并发访问装置的框图,图3中,虚线表示模块间存在的数据信息传输关系。如图3所示,所述装置包括:Corresponding to the first aspect of the embodiments of the present application, according to the second aspect of the embodiments of the present application, a multi-application layer network management concurrent access device is provided. FIG. 3 is a block diagram of a multi-application layer network management concurrent access device shown in an exemplary embodiment of the present application. In FIG. 3 , the dotted line indicates the data information transmission relationship between modules. As shown in Figure 3, the device includes:

局端网管进程连接模块U301,用于在各个局端网管进程中分别获取第一套接字,并向局端访问层进程发起连接请求;The central network management process connection module U301 is used to respectively obtain the first socket in each central network management process, and initiate a connection request to the local access layer process;

局端访问层进程连接模块U302,用于在局端访问层进程中轮询局端访问层进程套接字的可读状态,根据局端访问层进程套接字的可读状态得到局端网管进程的连接请求后,获取与局端网管进程进行通信的第二套接字,建立局端访问层进程和各个局端网管进程的通信连接;The local end access layer process connection module U302 is used to poll the readable state of the central end access layer process socket in the central end access layer process, and obtain the local end network management After the connection request of the process, obtain the second socket that communicates with the network management process at the local end, and establish the communication connection between the access layer process at the local end and each network management process at the local end;

局端网管进程数据处理模块U303,用于将局端网管进程将需要发送的数据封装成第一结构体;The central network management process data processing module U303 is used to encapsulate the data to be sent by the local network management process into a first structure;

局端网管进程数据发送模块U304,用于将所述第一结构体发送至局端访问层进程;The central network management process data sending module U304, configured to send the first structure to the local access layer process;

局端访问层进程数据接收模块U305,用于在局端访问层进程接收到所述第一结构体;The local end access layer process data receiving module U305, configured to receive the first structure in the central end access layer process;

局端访问层进程数据处理模块U306,用于根据所述第一结构体解析出局端网管进程发送的数据传输至相应的函数接口进行处理,接收函数接口返回的数据封装为第二结构体,第一结构体和第二结构体的封装方法相同;The local end access layer process data processing module U306 is used to analyze the data sent by the central office network management process according to the first structure and transmit it to the corresponding function interface for processing. The data returned by the receiving function interface is encapsulated into a second structure, the first The encapsulation methods of the first structure and the second structure are the same;

局端访问层进程数据发送模块U307,用于将所述第二结构体发送至局端网管进程;The local end access layer process data sending module U307, configured to send the second structure to the central end network management process;

局端网管进程数据接收模块U308,用于接收所述第二结构体,并解析所述第二结构体得到经函数接口的数据;The central network management process data receiving module U308 is used to receive the second structure, and analyze the second structure to obtain the data through the function interface;

局端网管进程通信关闭模块U309,用于在和局端访问层进程的通信完成后,关闭自身对应的套接字。The local end network management process communication closing module U309 is used to close its corresponding socket after the communication with the local end access layer process is completed.

局端访问层进程通信关闭模块U3010,用于在和局端网管进程的通信完成后,关闭自身对应的套接字。The central office access layer process communication closing module U3010 is used to close its corresponding socket after the communication with the central office network management process is completed.

其中,所述局端网管进程数据处理模块U303,可以包括:Wherein, the central office network management process data processing module U303 may include:

第一变量定义子模块,用于在局端网管进程预先定义用于表示网管类型的第一变量、用于表示操作类型的第二变量、用于表示资源类型的第三变量和用于表示资源标识的第四变量,The first variable definition sub-module is used to predefine the first variable used to represent the network management type, the second variable used to represent the operation type, the third variable used to represent the resource type and the resource type in the local network management process. identifies the fourth variable,

第一数据封装子模块,用于在局端网管进程将需要发送的数据使用所述第一变量、第二变量、第三变量和第四变量表示,将使用所述第一变量、第二变量、第三变量和第四变量表示后的数据封装成第一结构体。The first data encapsulation sub-module is used to use the first variable, the second variable, the third variable and the fourth variable to represent the data that needs to be sent in the local network management process, and the first variable and the second variable will be used , the data represented by the third variable and the fourth variable are encapsulated into the first structure.

其中,所述局端访问层进程数据处理模块U306,可以包括:Wherein, the local end access layer process data processing module U306 may include:

第二变量定义子模块,用于在局端访问层进程预先定义用于表示网管类型的第一变量、用于表示操作类型的第二变量、用于表示资源类型的第三变量和用于表示资源标识的第四变量,The second variable definition sub-module is used to predefine the first variable used to represent the network management type, the second variable used to represent the operation type, the third variable used to represent the resource type and the The fourth variable of the resource identifier,

第一解析子模块,用于在局端访问层进程接收到所述第一结构体后,根据所述第一结构体解析出第一变量、第二变量、第三变量和第四变量,The first parsing submodule is configured to parse out the first variable, the second variable, the third variable and the fourth variable according to the first structure after the local access layer process receives the first structure,

传输子模块,用于将所述第一变量、第二变量、第三变量和第四变量传输至相应的函数接口进行处理;a transmission sub-module, configured to transmit the first variable, the second variable, the third variable and the fourth variable to corresponding function interfaces for processing;

返回数据接收子模块,用于接收函数接口返回的数据;The return data receiving submodule is used to receive the data returned by the function interface;

第二封装子模块,用于将函数接口返回的数据按照第一变量、第二变量、第三变量和第四变量封装为第二结构体。The second encapsulation sub-module is used for encapsulating the data returned by the function interface into a second structure according to the first variable, the second variable, the third variable and the fourth variable.

其中,局端访问层进程连接模块U302,可以包括:Wherein, the central office access layer process connection module U302 may include:

套接字描述符获取子模块,用于获取套接字描述符;The socket descriptor acquisition submodule is used to obtain the socket descriptor;

监听子模块,用于监听局端网管进程的连接请求,并将所述套接字描述加入到描述符集中;The monitoring sub-module is used to monitor the connection request of the central office network management process, and add the socket description to the descriptor set;

描述符集状态查询子模块,用于查询描述符集的状态,判断描述符集的状态是否存在变化;The descriptor set state query submodule is used to query the state of the descriptor set and determine whether there is a change in the state of the descriptor set;

描述符状态查询子模块,用于如果描述符集的状态存在变化,遍历所有描述符的状态,判断是否存在状态发生变化的描述符,否则,返回描述符集状态查询模块;The descriptor state query sub-module is used for traversing the states of all descriptors if the state of the descriptor set changes, and judging whether there is a descriptor whose state has changed, otherwise, returning to the descriptor set state query module;

描述符判断子模块,用于如果存在状态发生变化的描述符,判断状态发生变化的描述符是否等于所述套接字描述符;The descriptor judging submodule is used to determine whether the descriptor whose state changes is equal to the socket descriptor if there is a descriptor whose state changes;

通信连接建立子模块,用于如果状态发生变化的描述符等于所述套接字描述符,则接受所述局端网管进程连接请求,建立与局端网管进程的通信,将于局端网管进程通信的描述符加入到描述符集中,返回描述符集状态查询子模块,否则,局端访问层进程进入接收局端网管进程发送的数据的过程。The communication connection establishes a submodule, which is used to accept the connection request of the local end network management process if the descriptor of the state change is equal to the socket descriptor, and establish a communication with the local end network management process, which will be transferred to the local end network management process. The communication descriptor is added to the descriptor set, and the descriptor set status query submodule is returned; otherwise, the central office access layer process enters the process of receiving data sent by the central office network management process.

图4为本申请一示例性实施例示出的一种多应用层网管并发访问装置的框图,图4中,虚线表示模块间存在的数据信息传输关系。如图4所示,所述装置包括:FIG. 4 is a block diagram of a multi-application layer network management concurrent access device shown in an exemplary embodiment of the present application. In FIG. 4 , the dotted line indicates the data information transmission relationship between modules. As shown in Figure 4, the device includes:

第一套接字接口定义模块U401,用于在局端访问层进程定义套接字通信接口;The first socket interface definition module U401 is used to define the socket communication interface in the central office access layer process;

第二套接字接口定义模块U402,用于在局端网管进程定义套接字通信接口;The second socket interface definition module U402 is used to define the socket communication interface in the central office network management process;

局端网管进程连接模块U403,用于各个局端网管进程分别获取第一套接字,调用各自的第一接口初始化各自的第一套接字,并向局端访问层进程发起连接请求;The local end network management process connection module U403 is used for each local end network management process to obtain the first socket respectively, call the respective first interface to initialize the respective first socket, and initiate a connection request to the local end access layer process;

局端访问层进程连接模块U404,用于局端访问层进程获取局端访问层进程套接字,调用局端访问层进程的第一接口初始化所述局端访问层进程套接字,在局端访问层进程中轮询局端访问层进程套接字的可读状态,根据局端访问层进程套接字的可读状态得到局端网管进程的连接请求后,获取与局端网管进程进行通信的第二套接字,建立局端访问层进程和各个局端网管进程的通信连接;The central office access layer process connection module U404 is used for the central office access layer process to obtain the central office access layer process socket, and calls the first interface of the central office access layer process to initialize the central office access layer process socket. In the access layer process of the central office, poll the readable state of the process socket of the central office access layer, and obtain the connection request of the network management process of the central office according to the readable state of the socket of the central office access layer process. The second socket for communication establishes communication connections between the central office access layer process and each central office network management process;

局端网管进程数据处理模块U405,用于用于将局端网管进程将需要发送的数据封装成第一结构体;The central network management process data processing module U405 is used for encapsulating the data to be sent by the local network management process into a first structure;

局端网管进程数据发送模块U406,用于将所述第一结构体发送至局端访问层进程;The central network management process data sending module U406, configured to send the first structure to the local access layer process;

局端访问层进程数据接收模块U407,用于在局端访问层进程接收到所述第一结构体;The central access layer process data receiving module U407, configured to receive the first structure in the central access layer process;

局端访问层进程数据处理模块U408,用于根据所述第一结构体解析出局端网管进程发送的数据传输至相应的函数接口进行处理,接收函数接口返回的数据封装为第二结构体,第一结构体和第二结构体的封装方法相同;The local end access layer process data processing module U408 is used to analyze the data sent by the central office network management process according to the first structure and transmit it to the corresponding function interface for processing, and the data returned by the receiving function interface is encapsulated into a second structure, the first The encapsulation methods of the first structure and the second structure are the same;

局端访问层进程数据发送模块U409,用于将所述第二结构体发送至局端网管进程;Central office access layer process data sending module U409, configured to send the second structure to the central office network management process;

局端网管进程数据接收模块U4010,用于接收所述第二结构体,并解析所述第二结构体得到经函数接口的数据;The central network management process data receiving module U4010 is used to receive the second structure, and analyze the second structure to obtain the data through the function interface;

局端网管进程通信关闭模块U4011,用于在和局端访问层进程的通信完成后,关闭自身对应的套接字。The local end network management process communication closing module U4011 is used to close its corresponding socket after the communication with the local end access layer process is completed.

局端访问层进程通信关闭模块U4012,用于在和局端网管进程的通信完成后,关闭自身对应的套接字。The central office access layer process communication closing module U4012 is used to close its corresponding socket after the communication with the central office network management process is completed.

其中,所述套接字通信接口包括用于初始化套接字的第一接口、用于发送数据的第二接口、用于接收数据的第三接口以及用于关闭套接字的第四接口,Wherein, the socket communication interface includes a first interface for initializing the socket, a second interface for sending data, a third interface for receiving data, and a fourth interface for closing the socket,

局端访问层进程在获取局端访问层进程套接字后,调用局端访问层的第一接口初始化所述局端访问层进程套接字,局端网管进程获取其第一套接字后,调用局端网管进程的第一接口初始化其第一套接字。局端网管进程数据发送模块调用自身的第二接口将所述第一结构体发送至局端访问层进程,局端网管进程数据接收模块调用自身的第三接口接收所述第二结构体,After the local end access layer process obtains the central end access layer process socket, it calls the first interface of the central end access layer to initialize the local end access layer process socket. After the local end network management process obtains its first socket , calling the first interface of the local network management process to initialize its first socket. The local end network management process data sending module calls its second interface to send the first structure to the local end access layer process, and the local end network management process data receiving module calls its own third interface to receive the second structure,

局端访问层进程数据接收模块调用自身的第三接口接收所述第一结构体,并调用自身的第二接口将所述第二结构体发送至局端网管进程,The local end access layer process data receiving module calls its own third interface to receive the first structure, and calls its own second interface to send the second structure to the local end network management process,

局端网管进程通信关闭模块和局端访问层进程通信关闭模块分别调用各自的第四接口关闭自身的套接字。The local end network management process communication closing module and the local end access layer process communication closing module respectively call their respective fourth interfaces to close their own sockets.

为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above devices, functions are divided into various units and described separately. Of course, when implementing the present application, the functions of each unit can be implemented in one or more pieces of software and/or hardware.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置或系统实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的装置及系统实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。Each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device or system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for relevant parts, refer to part of the description of the method embodiments. The device and system embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, It can be located in one place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without creative effort.

需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者逆序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relative terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these Any such actual relationship or inverse order exists between entities or operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

以上所述仅是本申请的具体实施方式,使本领域技术人员能够理解或实现本申请。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above descriptions are only specific implementation manners of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the present application will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1.一种多应用层网管并发访问方法,其特征在于,包括:1. A multi-application layer network management concurrent access method, characterized in that, comprising: 各个局端网管进程分别获取第一套接字,并向局端访问层进程发起连接请求;Each central office network management process respectively obtains the first socket, and initiates a connection request to the central office access layer process; 局端访问层进程轮询局端访问层进程套接字的可读状态,根据局端访问层进程套接字的可读状态得到局端网管进程的连接请求后,获取与局端网管进程进行通信的第二套接字,建立局端访问层进程和各个局端网管进程的通信连接;The central access layer process polls the readable state of the central access layer process socket, and after obtaining the connection request of the central office network management process according to the readable state of the central office access layer process socket, obtains the connection request with the central office network management process. The second socket for communication establishes communication connections between the central office access layer process and each central office network management process; 局端网管进程将需要发送的数据封装成第一结构体,并将所述第一结构体发送至局端访问层进程;The local network management process encapsulates the data to be sent into a first structure, and sends the first structure to the local access layer process; 局端访问层进程接收到所述第一结构体后,根据所述第一结构体解析出局端网管进程发送的数据,将解析得到的数据传输至相应的函数接口进行处理,将函数接口返回的数据封装为第二结构体,并将所述第二结构体发送至局端网管进程,第一结构体和第二结构体的封装方法相同;After receiving the first structure, the central access layer process parses the data sent by the central network management process according to the first structure, transmits the parsed data to the corresponding function interface for processing, and returns the data returned by the function interface The data is encapsulated into a second structure, and the second structure is sent to the local network management process, and the encapsulation methods of the first structure and the second structure are the same; 局端网管进程接收到第二结构体后,解析所述第二结构体得到经函数接口返回的数据;After the local network management process receives the second structure, it parses the second structure to obtain the data returned through the function interface; 局端网管进程和局端访问层进程通信完成后,局端网管进程和局端访问层进程分别关闭自身对应的套接字。After the communication between the network management process at the local end and the access layer process at the local end is completed, the network management process at the local end and the access layer process at the local end respectively close their corresponding sockets. 2.如权利要求1所述的多应用层网管并发访问方法,其特征在于,局端网管进程和局端访问层进程的套接字为UNIX域字节流套接字。2. The multi-application layer network management concurrent access method as claimed in claim 1, wherein the sockets of the local network management process and the local access layer process are UNIX domain byte stream sockets. 3.如权利要求1所述的多应用层网管并发访问方法,其特征在于,3. multi-application layer network management concurrent access method as claimed in claim 1, is characterized in that, 局端网管进程将需要发送的数据封装成第一结构体,包括:The local network management process encapsulates the data to be sent into a first structure, including: 在局端网管进程预先定义用于表示网管类型的第一变量、用于表示操作类型的第二变量、用于表示资源类型的第三变量和用于表示资源标识的第四变量,In the local network management process, a first variable used to represent the network management type, a second variable used to represent the operation type, a third variable used to represent the resource type, and a fourth variable used to represent the resource identifier are pre-defined, 局端网管进程将需要发送的数据使用所述第一变量、第二变量、第三变量和第四变量表示,将使用所述第一变量、第二变量、第三变量和第四变量表示后的数据封装成第一结构体;The local end network management process will use the first variable, the second variable, the third variable and the fourth variable to represent the data that needs to be sent, and will use the first variable, the second variable, the third variable and the fourth variable to represent the data. The data of is encapsulated into the first structure; 局端访问层进程接收到所述第一结构体后,根据所述第一结构体解析出局端网管进程发送的数据,将解析得到的数据传输至相应的函数接口进行处理,将函数接口返回的数据封装为第二结构体,包括:After receiving the first structure, the central access layer process parses the data sent by the central network management process according to the first structure, transmits the parsed data to the corresponding function interface for processing, and returns the data returned by the function interface Data is encapsulated as a second structure, including: 在局端访问层进程预先定义用于表示网管类型的第一变量、用于表示操作类型的第二变量、用于表示资源类型的第三变量和用于表示资源标识的第四变量,In the local access layer process, the first variable used to represent the network management type, the second variable used to represent the operation type, the third variable used to represent the resource type, and the fourth variable used to represent the resource identifier are predefined, 局端访问层进程接收到所述第一结构体后,根据所述第一结构体解析出第一变量、第二变量、第三变量和第四变量,并将所述第一变量、第二变量、第三变量和第四变量传输至相应的函数接口进行处理,接收函数接口返回的数据,并将函数接口返回的数据按照第一变量、第二变量、第三变量和第四变量封装为第二结构体。After receiving the first structure, the local access layer process parses out the first variable, the second variable, the third variable and the fourth variable according to the first structure, and converts the first variable, the second The variable, the third variable and the fourth variable are transmitted to the corresponding function interface for processing, the data returned by the function interface is received, and the data returned by the function interface is packaged according to the first variable, the second variable, the third variable and the fourth variable as Second structure. 4.如权利要求1至3任一所述的多应用层网管并发访问方法,其特征在于,还包括:4. The multi-application layer network management concurrent access method according to any one of claims 1 to 3, further comprising: 在局端访问层进程和局端网管进程分别定义套接字通信接口,所述套接字通信接口包括用于初始化套接字的第一接口、用于发送数据的第二接口、用于接收数据的第三接口以及用于关闭套接字的第四接口,The socket communication interface is respectively defined in the local end access layer process and the local end network management process, and the socket communication interface includes a first interface for initializing the socket, a second interface for sending data, and a second interface for receiving a third interface for data and a fourth interface for closing the socket, 局端网管进程获取所述第一套接字后,调用局端网管进程的第一接口初始化所述第一套接字,局端访问层进程在获取局端访问层进程套接字后,调用局端访问层进程的第一接口初始化所述局端访问层进程套接字,After the local end network management process obtains the first socket, it calls the first interface of the local end network management process to initialize the first socket, and the local end access layer process calls the local end access layer process socket after obtaining the local end access layer process socket. The first interface of the local end access layer process initializes the local end access layer process socket, 局端网管进程调用局端网管进程的第二接口将所述第一结构体发送至局端访问层进程,The local end network management process calls the second interface of the local end network management process to send the first structure to the local end access layer process, 局端访问层进程调用局端访问层进程的第三接口接收所述第一结构体,并调用局端访问层进程的第二接口将所述第二结构体发送至局端网管进程,The central access layer process calls the third interface of the central access layer process to receive the first structure, and calls the second interface of the central access layer process to send the second structure to the central network management process, 局端网管进程调用局端网管进程的第三接口接收所述第二结构体,The local network management process calls the third interface of the local network management process to receive the second structure, 局端网管进程和局端访问层进程通信完成后,局端网管进程和局端访问层进程分别调用各自的第四接口关闭自身的套接字。After the communication between the local network management process and the local access layer process is completed, the local network management process and the local access layer process call their respective fourth interfaces to close their own sockets. 5.如权利要求1所述的多应用层网管并发访问方法,其特征在于,所述建立局端访问层进程和局端网管进程的通信,在局端访问层进程一端,包括:5. multi-application layer network management concurrent access method as claimed in claim 1, is characterized in that, described establishment local end access layer process and the communication of local end network management process, at the local end access layer process one end, comprise: 步骤a1,获取局端访问层进程套接字描述符;Step a1, obtaining the access layer process socket descriptor at the central office; 步骤a2,监听局端网管进程的连接请求,将所述局端访问层进程套接字描述符加入到描述符集中;Step a2, monitoring the connection request of the central office network management process, adding the socket descriptor of the central office access layer process into the descriptor set; 步骤a3,查询描述符集的状态,判断描述符集的状态是否存在变化;Step a3, query the state of the descriptor set, and determine whether there is a change in the state of the descriptor set; 步骤a4,如果描述符集的状态存在变化,遍历所有描述符的状态,判断是否存在状态发生变化的描述符,否则,返回步骤a3;Step a4, if there is a change in the state of the descriptor set, traverse the states of all descriptors to determine whether there is a descriptor whose state has changed, otherwise, return to step a3; 步骤a5:如果存在状态发生变化的描述符,判断状态发生变化的描述符是否等于所述局端访问层进程套接字描述符;Step a5: If there is a descriptor whose state has changed, determine whether the descriptor whose state has changed is equal to the socket descriptor of the central access layer process; 步骤a6,如果状态发生变化的描述符等于所述局端访问层进程套接字描述符,则存在局端网管进程连接请求,接受所述局端网管进程连接请求,获取与局端网管进程进行通信的第二套接字,建立与局端网管进程的通信,将与局端网管进程通信的描述符加入到描述符集中,返回步骤a3,否则,局端访问层进程进入接收局端网管进程发送的数据的过程。Step a6, if the descriptor whose state changes is equal to the socket descriptor of the central office access layer process, then there is a central office network management process connection request, accept the central office network management process connection request, and obtain a connection request with the central office network management process The second socket for communication, establishes communication with the network management process at the local end, adds the descriptors communicated with the network management process at the local end to the descriptor set, and returns to step a3, otherwise, the access layer process at the central office enters the network management process at the receiving central end The process of sending the data. 6.一种多应用层网管并发访问装置,其特征在于,包括:6. A multi-application layer network management concurrent access device, characterized in that it comprises: 局端网管进程连接模块,用于在各个局端网管进程中分别获取第一套接字,并向局端访问层进程发起连接请求;The local end network management process connection module is used to respectively obtain the first socket in each local end network management process, and initiate a connection request to the central end access layer process; 局端访问层进程连接模块,用于在局端访问层进程中轮询局端访问层进程套接字的可读状态,根据局端访问层进程套接字的可读状态得到局端网管进程的连接请求后,获取与局端网管进程进行通信的第二套接字,建立局端访问层进程和各个局端网管进程的通信连接;The local end access layer process connection module is used to poll the readable state of the central end access layer process socket in the central end access layer process, and obtain the central end network management process according to the readable state of the central end access layer process socket After the connection request of the local end network management process, obtain the second socket for communicating with the local end network management process, and establish the communication connection between the local end access layer process and each local end network management process; 局端网管进程数据处理模块,用于将需要发送的数据封装成第一结构体;The central network management process data processing module is used to encapsulate the data to be sent into a first structure; 局端网管进程数据发送模块,用于将所述第一结构体发送至局端访问层进程;The local network management process data sending module is used to send the first structure to the local access layer process; 局端访问层进程数据接收模块,用于在局端访问层进程接收到所述第一结构体;The central access layer process data receiving module is configured to receive the first structure in the central access layer process; 局端访问层进程数据处理模块,用于根据所述第一结构体解析出局端网管进程发送的数据,将解析得到的数据传输至相应的函数接口进行处理,接收函数接口返回的数据封装为第二结构体,第一结构体和第二结构体的封装方法相同;The local end access layer process data processing module is used to analyze the data sent by the central office network management process according to the first structure, transmit the parsed data to the corresponding function interface for processing, and encapsulate the data returned by the receiving function interface into the first Two structures, the encapsulation method of the first structure and the second structure is the same; 局端访问层进程数据发送模块,用于将所述第二结构体发送至局端网管进程;The central office access layer process data sending module, configured to send the second structure to the central office network management process; 局端网管进程数据接收模块,用于接收所述第二结构体,并解析所述第二结构体得到经函数接口返回的数据;The local network management process data receiving module is used to receive the second structure, and analyze the second structure to obtain the data returned through the function interface; 局端网管进程通信关闭模块,用于在和局端访问层进程的通信完成后,关闭自身对应的套接字;The local end network management process communication closing module is used to close the socket corresponding to itself after the communication with the local end access layer process is completed; 局端访问层进程通信关闭模块,用于在和局端网管进程的通信完成后,关闭自身对应的套接字。The local end access layer process communication closing module is used to close its corresponding socket after the communication with the local end network management process is completed. 7.如权利要求6所述的多应用层网管并发访问装置,其特征在于,局端网管进程和局端访问层进程的套接字为UNIX域字节流套接字。7. The multi-application layer network management concurrent access device according to claim 6, wherein the sockets of the network management process at the local end and the access layer process at the local end are UNIX domain byte stream sockets. 8.如权利要求6所述的多应用层网管并发访问装置,其特征在于,8. The multi-application layer network management concurrent access device as claimed in claim 6, characterized in that, 所述局端网管进程数据处理模块,包括:The local end network management process data processing module includes: 第一变量定义子模块,用于在局端网管进程预先定义用于表示网管类型的第一变量、用于表示操作类型的第二变量、用于表示资源类型的第三变量和用于表示资源标识的第四变量,The first variable definition sub-module is used to predefine the first variable used to represent the network management type, the second variable used to represent the operation type, the third variable used to represent the resource type and the resource type in the local network management process. identifies the fourth variable, 第一数据封装子模块,用于在局端网管进程将需要发送的数据使用所述第一变量、第二变量、第三变量和第四变量表示,将使用所述第一变量、第二变量、第三变量和第四变量表示后的数据封装成第一结构体;The first data encapsulation sub-module is used to use the first variable, the second variable, the third variable and the fourth variable to represent the data that needs to be sent in the local network management process, and the first variable and the second variable will be used , the data represented by the third variable and the fourth variable are encapsulated into the first structure; 所述局端访问层进程数据处理模块,包括:The local end access layer process data processing module includes: 第二变量定义子模块,用于在局端访问层进程预先定义用于表示网管类型的第一变量、用于表示操作类型的第二变量、用于表示资源类型的第三变量和用于表示资源标识的第四变量,The second variable definition sub-module is used to predefine the first variable used to represent the network management type, the second variable used to represent the operation type, the third variable used to represent the resource type and the The fourth variable of the resource identifier, 第一解析子模块,用于在局端访问层进程接收到所述第一结构体后,根据所述第一结构体解析出第一变量、第二变量、第三变量和第四变量,The first parsing submodule is configured to parse out the first variable, the second variable, the third variable and the fourth variable according to the first structure after the local access layer process receives the first structure, 传输子模块,用于将所述第一变量、第二变量、第三变量和第四变量传输至相应的函数接口进行处理;a transmission sub-module, configured to transmit the first variable, the second variable, the third variable and the fourth variable to corresponding function interfaces for processing; 返回数据接收子模块,用于接收函数接口返回的数据;The return data receiving submodule is used to receive the data returned by the function interface; 第二封装子模块,用于将函数接口返回的数据按照第一变量、第二变量、第三变量和第四变量封装为第二结构体。The second encapsulation sub-module is used for encapsulating the data returned by the function interface into a second structure according to the first variable, the second variable, the third variable and the fourth variable. 9.如权利要求6至8任一所述的多应用层网管并发访问装置,其特征在于,还包括:9. The multi-application layer network management concurrent access device according to any one of claims 6 to 8, further comprising: 第一套接字接口定义模块,用于在局端访问层进程定义套接字通信接口;The first socket interface definition module is used to define the socket communication interface in the central office access layer process; 第二套接字接口定义模块,用于在局端网管进程定义套接字通信接口;The second socket interface definition module is used to define the socket communication interface in the central office network management process; 其中,所述套接字通信接口包括用于初始化套接字的第一接口、用于发送数据的第二接口、用于接收数据的第三接口以及用于关闭套接字的第四接口,Wherein, the socket communication interface includes a first interface for initializing the socket, a second interface for sending data, a third interface for receiving data, and a fourth interface for closing the socket, 局端网管进程获取所述第一套接字后,调用局端网管进程的第一接口初始化所述第一套接字,局端访问层进程在获取局端访问层进程套接字后,调用局端访问层进程的第一接口初始化所述局端访问层进程套接字,After the local end network management process obtains the first socket, it calls the first interface of the local end network management process to initialize the first socket, and the local end access layer process calls the local end access layer process socket after obtaining the local end access layer process socket. The first interface of the local end access layer process initializes the local end access layer process socket, 局端网管进程数据发送模块调用自身的第二接口将所述第一结构体发送至局端访问层进程,局端网管进程数据接收模块调用自身的第三接口接收所述第二结构体,The local end network management process data sending module calls its second interface to send the first structure to the local end access layer process, and the local end network management process data receiving module calls its own third interface to receive the second structure, 局端访问层进程数据接收模块调用自身的第三接口接收所述第一结构体,并调用自身的第二接口将所述第二结构体发送至局端网管进程,The local end access layer process data receiving module calls its own third interface to receive the first structure, and calls its own second interface to send the second structure to the local end network management process, 局端网管进程通信关闭模块和局端访问层进程通信关闭模块分别调用各自的第四接口关闭自身的套接字。The local end network management process communication closing module and the local end access layer process communication closing module respectively call their respective fourth interfaces to close their own sockets. 10.如权利要求6所述的多应用层网管并发访问装置,其特征在于,所述局端访问层进程连接模块,包括:10. The multi-application layer network management concurrent access device as claimed in claim 6, wherein the local access layer process connection module includes: 套接字描述符获取子模块,用于获取局端访问层进程套接字描述符;The socket descriptor acquisition submodule is used to obtain the socket descriptor of the access layer process at the central office; 监听子模块,用于监听局端网管进程的连接请求,并将所述局端访问层进程套接字描述加入到描述符集中;The monitoring sub-module is used to monitor the connection request of the central office network management process, and add the socket description of the central office access layer process into the descriptor set; 描述符集状态查询子模块,用于查询描述符集的状态,判断描述符集的状态是否存在变化;The descriptor set state query submodule is used to query the state of the descriptor set and determine whether there is a change in the state of the descriptor set; 描述符状态查询子模块,用于如果描述符集的状态存在变化,遍历所有描述符的状态,判断是否存在状态发生变化的描述符,否则,返回描述符集状态查询模块;The descriptor state query sub-module is used for traversing the states of all descriptors if the state of the descriptor set changes, and judging whether there is a descriptor whose state has changed, otherwise, returning to the descriptor set state query module; 描述符判断子模块,用于如果存在状态发生变化的描述符,判断状态发生变化的描述符是否等于所述局端访问层进程套接字描述符;The descriptor judging submodule is used to judge whether the descriptor whose state changes is equal to the socket descriptor of the central access layer process if there is a descriptor whose state changes; 通信连接建立子模块,用于如果状态发生变化的描述符等于所述局端访问层进程套接字描述符,则接受所述局端网管进程连接请求,获取与局端网管进程进行通信的第二套接字,建立与局端网管进程的通信,将与局端网管进程通信的描述符加入到描述符集中,返回描述符集状态查询子模块,否则,局端访问层进程进入接收局端网管进程发送的数据的过程。The communication connection establishment sub-module is used to accept the connection request of the network management process of the central office if the descriptor whose state changes is equal to the socket descriptor of the access layer process of the central office, and obtain the first communication with the network management process of the central office. Two sockets, establish communication with the central office network management process, add the descriptors communicated with the central office network management process to the descriptor set, and return the descriptor set status query submodule, otherwise, the central office access layer process enters the receiving central office The process of data sent by the network management process.
CN201410835419.9A 2014-12-23 2014-12-23 A kind of more application layer webmaster concurrent access methods and device Expired - Fee Related CN104579766B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410835419.9A CN104579766B (en) 2014-12-23 2014-12-23 A kind of more application layer webmaster concurrent access methods and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410835419.9A CN104579766B (en) 2014-12-23 2014-12-23 A kind of more application layer webmaster concurrent access methods and device

Publications (2)

Publication Number Publication Date
CN104579766A CN104579766A (en) 2015-04-29
CN104579766B true CN104579766B (en) 2017-12-05

Family

ID=53095031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410835419.9A Expired - Fee Related CN104579766B (en) 2014-12-23 2014-12-23 A kind of more application layer webmaster concurrent access methods and device

Country Status (1)

Country Link
CN (1) CN104579766B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112311625B (en) * 2020-10-26 2022-05-20 珠海格力电器股份有限公司 Network management method and device, storage medium and electronic device
CN113626105B (en) * 2021-08-18 2023-10-27 赞同科技股份有限公司 Mobile mixed mode SDK system and mobile devices

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7917601B1 (en) * 2000-10-10 2011-03-29 Juniper Networks, Inc. Agent-based event-driven web server architecture
CN103117895A (en) * 2013-01-25 2013-05-22 哈尔滨工业大学 LXI instrument service monitoring method
CN103841148A (en) * 2012-11-23 2014-06-04 京信通信系统(中国)有限公司 Master-slave communication method and system adopting reliable and unreliable networks in monitoring program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7917601B1 (en) * 2000-10-10 2011-03-29 Juniper Networks, Inc. Agent-based event-driven web server architecture
CN103841148A (en) * 2012-11-23 2014-06-04 京信通信系统(中国)有限公司 Master-slave communication method and system adopting reliable and unreliable networks in monitoring program
CN103117895A (en) * 2013-01-25 2013-05-22 哈尔滨工业大学 LXI instrument service monitoring method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TCP/IP Socket I/O Multiplexing Using A Hybrid Polling Event System;Jianli Sun;《2009 29th IEEE Conference on Distributed Computing Systems Workshops》;20091231;第277-284页 *

Also Published As

Publication number Publication date
CN104579766A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN109391500B (en) A configuration management method, device and device
US9391837B2 (en) Method, proxy device, and system for managing terminal device
EP2383933B1 (en) Method for home gateway management by multiple servers
EP3688695B1 (en) Methods, apparatuses and computer-readable storage mediums for automated onboarding of services in the user services platform
CN104604182B (en) Service channel collocation method and optical line terminal and EPON
JP6145216B2 (en) Data transmission method, apparatus, and computer storage medium
CN109412877B (en) Network capacity open system based on UTN network
CN108737768A (en) A kind of monitoring method and monitoring device based on monitoring system
CN108173803A (en) It is a kind of to access the method for internet and regarding connection cat server-side by regarding networking
CN103401859B (en) A kind of method of protocol conversion and protocol converter
CN107370654B (en) Encapsulation and decapsulation method and related device for pseudowire data message
CN104579766B (en) A kind of more application layer webmaster concurrent access methods and device
CN104253763A (en) Method for realizing data transmission in gateway equipment of ubiquitous network and gateway equipment using method
CN117997943A (en) Sub-gateway management method, device and communication system
CN105141653A (en) Method, equipment and system for data interaction of service platform
JP6044020B2 (en) Data packet processing method, system, and device
EP4030725A1 (en) Data subscription method, apparatus and system
CN106301838A (en) A kind of transmission network Unified Network Management based on SNMP
CN100499495C (en) A remote login implementation method based on SNMP protocol
WO2016184227A1 (en) Onu template generating method and device
CN102202045A (en) Method, system and device for realizing Internet access in broadcast television network
CN116436991A (en) Data message sending method and device, storage medium and electronic equipment
CN111147276B (en) Remote management method, device, electronic equipment and storage medium
CN102684924A (en) Network management workstation and debugging method of network management software
JP5893226B2 (en) Data transmission method, multimedia access point, and multimedia client

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 201807 Shanghai City, north of the city of Jiading District Road No. 1355 building 4 layer D

Applicant after: LUSTER TIANBO OPTOELECTRONIC TECHNOLOGY CO.,LTD.

Address before: 201807 Shanghai City, north of the city of Jiading District Road No. 1355 building 4 layer D

Applicant before: SHANGHAI TERABAND PHOTONICS Co.,Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171205