WO2021169275A1 - Sdn network device access method and apparatus, computer device, and storage medium - Google Patents

Sdn network device access method and apparatus, computer device, and storage medium Download PDF

Info

Publication number
WO2021169275A1
WO2021169275A1 PCT/CN2020/117979 CN2020117979W WO2021169275A1 WO 2021169275 A1 WO2021169275 A1 WO 2021169275A1 CN 2020117979 W CN2020117979 W CN 2020117979W WO 2021169275 A1 WO2021169275 A1 WO 2021169275A1
Authority
WO
WIPO (PCT)
Prior art keywords
session
collection device
cache
device identifier
access
Prior art date
Application number
PCT/CN2020/117979
Other languages
French (fr)
Chinese (zh)
Inventor
代澎源
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021169275A1 publication Critical patent/WO2021169275A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Definitions

  • This application relates to the network field, and in particular to an SDN network device access method, device, computer device, and storage medium.
  • SDN software define network
  • SDN collectors are provided by network equipment manufacturers and can only be adapted to their own network equipment, but the current bidding requirements for large-scale company networks generally do not allow only one network Device, so this controller cannot be used to connect all network devices; in addition, SDN plug-in development can be carried out in the network part of the cloud computing field, but this part of the plug-in is strongly related to the cloud platform business and cannot be used for multi-protocol, multi-scenario, Multi-service collection requirements; in addition, the functions of commercial collectors on the market are too simple and fixed to meet the customization requirements within the enterprise.
  • the embodiments of the present application provide an SDN network device access method, device, computer device, and storage medium to solve the problems of inconsistent access portals, single type of business data collection, low access and collection efficiency, resource competition leading to collection failures, and duplication of collection resources problem.
  • an embodiment of the present application provides a method for accessing SDN network equipment, including:
  • the session lock corresponding to the collection device identifier is in the locked state, the data collection request is put into the waiting queue.
  • an apparatus for accessing SDN network equipment including:
  • the receiving module is used to receive the data collection request of the access terminal
  • Parsing module configured to parse the data collection request to obtain data collection information, where the data collection information includes the identification of the collection device;
  • the query module is used to query whether there is a corresponding session cache in the system cache according to the collection device identifier
  • the first execution module is configured to have a corresponding session cache in the system cache, and initiate session access to the collection device corresponding to the collection device identifier;
  • the second execution module is configured to query the status of the session lock corresponding to the collection device identifier if there is no corresponding session cache in the system cache;
  • the third execution module is configured to put the data collection request into the waiting queue when the session lock corresponding to the collection device identifier is in the locked state.
  • an embodiment of the present application provides a computer device, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor executes the The following steps are implemented when computer readable instructions are:
  • the session lock corresponding to the collection device identifier is in the locked state, the data collection request is put into the waiting queue.
  • the embodiments of the present application provide one or more readable storage media storing computer readable instructions, wherein when the computer readable instructions are executed by one or more processors, the one or more The processor performs the following steps:
  • the session lock corresponding to the collection device identifier is in the locked state, the data collection request is put into the waiting queue.
  • the SDN network equipment access method, device, computer equipment, and storage medium provided in this application realize a unified equipment access portal through the analysis and control of different data collection equipment on the server side, and does not need to provide storage logic, which better guarantees
  • the efficiency of data access, and through the setting of the session cache, the session access is directly initiated to the collection device, which saves the process of re-establishing the connection, improves the efficiency of data access and collection to the collection device, and reduces the burden on the computer. Further, through the setting of the session lock, the problem of collection failure due to resource competition is avoided, and the waste of resources and the loss of equipment are reduced.
  • the session cache in the system cache is used to directly initiate session access to the collection device, eliminating the need to re-establish a connection and improving access efficiency.
  • FIG. 1 is a schematic diagram of an application environment of an SDN network device access method in an embodiment of the present application
  • Fig. 2 is a flowchart of a method for accessing SDN network equipment in an embodiment of the present application
  • FIG. 3 is another flowchart of an SDN network device access method in an embodiment of the present application.
  • FIG. 4 is another flowchart of the method for accessing SDN network equipment in an embodiment of the present application.
  • FIG. 5 is a flowchart of a specific implementation of step S40 in FIG. 2;
  • Fig. 6 is a functional block diagram of an apparatus for accessing SDN network equipment in an embodiment of the present application.
  • Fig. 7 is a structural diagram of a computer device provided in an embodiment of the present application.
  • the SDN network device access method provided by the embodiments of the present application can be applied in the application environment as shown in FIG. 1.
  • the SDN network device access method is applied in the SDN network device access system, and the SDN network device access system includes The access terminal (client), acquisition device, and server shown in 1 respectively communicate with the server through the network to improve access efficiency.
  • the server receives the data collection request from the access terminal; parses the data collection request to obtain data collection information, where the data collection information includes the collection device identification; query whether there is a corresponding session cache in the system cache according to the collection device identification; if If there is a corresponding session cache in the system cache, a session access is initiated to the collection device corresponding to the collection device identifier; if the corresponding session cache does not exist in the system cache, then the session lock corresponding to the collection device identifier is queried If the session lock corresponding to the collection device identifier is in the locked state, put the data collection request into the waiting queue.
  • the client is also called the client, which refers to the program that corresponds to the server and provides local services to the client.
  • the client can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
  • the collection device may be an SDN collector provided by different network vendors to provide a path for querying session cache and session lock information.
  • the server can be implemented as an independent server or a server cluster composed of multiple servers.
  • a method for accessing SDN network equipment is provided. Taking the method applied to the server in FIG. 1 as an example for description, the method includes the following steps:
  • the access terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
  • the access terminal needs to perform data collection or access to the collection device, it sends a data collection request to the server.
  • the data collection request may include information such as the used protocol, the identification of the collection device, and the AS number.
  • the server performs data interaction with the access terminal through an API interface.
  • the API interface is a Restful http API interface.
  • an identity verification process may be included, that is, the access authority of the access terminal is verified.
  • the identity verification may be account verification, or verification of the terminal identification code of the access terminal, or other available identity verification methods.
  • the data collection request also includes the type of collected data.
  • a collection authority verification step that is, verifying whether the corresponding access terminal has the authority to perform data collection on data of the collected data type.
  • the collection authority verification can be implemented through a collection authority configuration table, through which the access terminal is inquired about whether the access terminal has the authority to perform data collection on the data corresponding to the collected data type, so as to better ensure the security of data collection.
  • the data collection information includes the identification of the collection device, the identification of the collection device is an access terminal, and the terminal for data collection or access corresponding to this data collection request.
  • the collection device identification can be composed of at least one of numbers, letters, symbols, or Chinese.
  • the data collection information also includes a collection protocol, data identification, and so on.
  • the acquisition protocol may include SNMP, NETCONF, or SFTP.
  • the data identification can identify the corresponding data content or data location in the specific collection device.
  • the data collection request can be parsed into a structure, which is a data collection composed of a series of data of the same type or different types.
  • a structure which is a data collection composed of a series of data of the same type or different types.
  • the data collection information can be obtained by combining the structure abstracted into the collection device in advance.
  • the collection protocol information can be correspondingly obtained through the collection device identification and/or the data identification.
  • an access permission verification process is further included, that is, it is verified whether the access terminal has the permission to access the collection device corresponding to the collection device identifier.
  • the access authority verification may be implemented through an access authority configuration table, through which the access authority configuration table is used to query whether the access terminal has the authority to perform data access to the collection device corresponding to the collection device identification, so as to better ensure the security of data access.
  • the session in this step refers to the session corresponding to the collection device.
  • a session will be saved in the system cache after the access is completed.
  • the server can check whether there is a session cache corresponding to the collection device in the system cache .
  • the session cache can be stored in the system cache with a retention period, that is, the corresponding session cache can be deleted after the retention period expires.
  • the shelf life may be 1 hour, 2 hours, 5 hours, or the like.
  • the storage time of the session cache in the system cache is monitored. If the storage time of any session cache exceeds the preset time, the corresponding session cache will be removed.
  • it can be set to delete the session cache stored in the system cache when the session cache stored in the system cache exceeds a preset number.
  • it can be sorted according to the access frequency of the session cache in the system cache, and the session cache with a lower access frequency is preferentially deleted. Or, sort according to the latest access time, and delete the session cache whose latest access time is farther away from the current time.
  • a preset capacity can be set for the system cache.
  • the preset capacity is a value of a preset storage capacity.
  • the preset capacity can be set according to the total capacity in the system cache.
  • the preset capacity can be set to 70%, 80%, 90%, 95%, or 100% of the total capacity in the system cache.
  • the cache algorithm is used to remove the session cache in the system cache.
  • the caching algorithm can be implemented using an LRU (Least Recently Used) algorithm. Among them, the LRU algorithm judges that if a piece of data has not been accessed in the most recent period of time, it is unlikely to be accessed in the future.
  • the LRU algorithm can use an array to store data (session cache), and mark each data item with an access timestamp. Each time a new data item is inserted, the timestamp of the data item in the array is automatically Increment, and set the time stamp of the new data item to 0 and insert it into the array. Every time a data item in the array is accessed, the timestamp of the accessed data item is set to 0. When the array space is full, the data item with the largest time stamp is eliminated.
  • the LRU algorithm can also be implemented using a linked list, and new data is inserted into the head of the linked list every time new data (session cache) is inserted. Each time the cache hits (that is, the data is accessed), the data is moved to the head of the linked list. Then when the linked list is full, the data at the end of the linked list is discarded.
  • the LRU algorithm can also be implemented using linked lists and hashmaps.
  • a new data item (session cache) needs to be inserted, if the new data item exists in the linked list, move the node to the head of the linked list. If it does not exist, create a new node and place it at the head of the linked list. When the system cache is full, delete the last node of the linked list.
  • accessing data if the data item exists in the linked list, move the node to the head of the linked list, otherwise return -1. In this way, the node at the end of the linked list is the data item that has not been accessed for a long time.
  • the collection device identification is used as the retrieval field to query whether there is a session cache corresponding to the collection device identification in the system cache.
  • the server saves the session pointer for the last access terminal to access the collection device in the session cache. In this way, subsequent access requests to the same collection device can be directly processed through the session pointer saved in the past. In this step, if there is a corresponding session cache in the system cache, the session pointer in the session cache is acquired.
  • the session pointer can be used to initiate session access to the collection device corresponding to the collection device identifier.
  • the session pointer in the session cache is obtained; and the session access is initiated to the collection device corresponding to the collection device identifier according to the session pointer.
  • the session cache in the system cache is used to directly initiate session access to the collection device, eliminating the need to re-establish a connection and improving access efficiency.
  • the session lock can be achieved by setting a mutex. Mutex is also called mutual exclusion lock.
  • a mutex is a variable that can be in one of two states: unlocked and locked. After setting the mutex, when other threads need to use the session, they need to check whether the mutex is already locked. If it is already locked, the thread blocks and waits for the lock to be released.
  • a session lock is set for each collection device in advance. Therefore, in this step, there is no corresponding session cache in the system cache. It is necessary to determine the status of the session lock of the collection device. If the session lock is in the locked state, it cannot be Initiate a new access to the collection device.
  • the data collection request is parsed to obtain data collection information.
  • the data collection information includes the collection device identification; and then the system cache is queried according to the collection device identification. Whether there is a corresponding session cache in the system cache; if there is no corresponding session cache in the system cache, query the status of the session lock corresponding to the collection device identifier; if the session lock corresponding to the collection device identifier is in the locked state, then Put the data collection request into the waiting queue.
  • the method for accessing the SDN network device further includes:
  • session lock corresponding to the collection device identifier is in an unlocked state, initiate session access to the collection device corresponding to the collection device identifier.
  • the session lock corresponding to the collection device ID is in an unlocked state, it means that the current collection device is not accessed by other access terminals. Therefore, session access can be initiated to the collection device corresponding to the collection device ID to obtain the required data . Understandably, the session access may include processes such as connection establishment and encryption negotiation. Further, after initiating session access to the collection device corresponding to the collection device identification, the session lock corresponding to the collection device identification is adjusted to a locked state.
  • the SDN network device access method Also includes:
  • the session lock status of the collection device is monitored in real time.
  • a time interval can be preset, and the session lock state corresponding to the collection device identifier is detected every time the time interval passes.
  • the setting of the specific time interval can be set according to actual application needs.
  • the session lock status corresponding to the collection device identifier is unlocked, it means that the last accessed server has completed data access to the collection device. At this time, if the server completes the data collection request of other access terminals, the session cache of the collection terminal will be saved in the system cache. Therefore, you can first query whether there is a corresponding session cache in the system cache according to the collection device identifier.
  • the session access is initiated to the collection device in sequence according to the waiting queue. Specifically, according to the order of entering the waiting queue, the session access is initiated to the collection device successively.
  • a session access is initiated to the collection device corresponding to the collection device identifier by means of a session pointer.
  • the session lock status corresponding to the collection device ID is monitored in real time; if the session lock status corresponding to the collection device ID is unlocked, the system cache is queried based on the collection device ID to see if there is a corresponding session cache; if the system cache If there is no corresponding session cache in the system, the acquisition device is sequentially initiated session access according to the waiting queue; if there is a corresponding session cache in the system cache, the session pointer in the session cache is obtained, and the acquisition device identification is corresponding to the session pointer The collection device initiates session access.
  • the method for accessing the SDN network device before receiving the data collection request of the access terminal, the method for accessing the SDN network device further includes:
  • the collection device is a network device that stores data, and data interaction can be performed through an SDN collector.
  • the configuration information can be presented in the form of text.
  • the configuration information is a file in another form, it may include the configuration information that converts the file in another form into a text form.
  • the OCR recognition technology can be used to convert the configuration information in the image form into the configuration information in the text form.
  • the preset parsing strategy is the parsing method of the configuration information.
  • the parsing strategy can be implemented by being a parsing script, that is, encapsulating the parsing algorithm of the configuration information into a parsing script, and then executing the parsing script. Analyze the configuration information of the collection device to obtain the structure data of each collection device.
  • the configuration information of each collection device is obtained in advance, and the configuration information of each collection device is analyzed according to a preset analysis strategy to obtain the structure data of each collection device.
  • the configuration information of each collection device can be analyzed in advance, unified management and monitoring can be realized, and subsequent unified data collection of different access devices can be facilitated.
  • initiating session access to the collection device corresponding to the collection device identifier includes:
  • the server saves the session pointer for the last access terminal to access the collection device in the session cache. In this way, subsequent access requests to the same collection device can be directly processed through the session pointer saved in the past. If there is a corresponding session cache in the system cache, obtain the session pointer in the session cache. After obtaining the session pointer, the session pointer can be used to initiate session access to the collection device corresponding to the collection device identifier. The session cache in the system cache directly initiates session access to the collection device, eliminating the need to re-establish a connection and improving access efficiency.
  • an apparatus for accessing SDN network equipment corresponds to the method for accessing SDN network equipment in the above-mentioned embodiment in a one-to-one correspondence.
  • the SDN network equipment access device includes a receiving module 81, a parsing module 82, a query module 83, a first execution module 84, a second execution module 85, and a third execution module 86.
  • Each functional module is described in detail as follows:
  • the receiving module 81 is used to receive a data collection request from the access terminal.
  • the parsing module 82 is used for parsing the data collection request to obtain data collection information, and the data collection information includes the identification of the collection device.
  • the query module 83 is used to query whether there is a corresponding session cache in the system cache according to the collection device identifier.
  • the first execution module 84 is configured to initiate session access to the collection device corresponding to the collection device identifier when there is a corresponding session cache in the system cache.
  • the second execution module 85 is configured to query the status of the session lock corresponding to the collection device identifier when the corresponding session cache does not exist in the system cache.
  • the third execution module 86 is configured to put the data collection request into the waiting queue when the session lock corresponding to the collection device identifier is in the locked state.
  • the SDN network device access device further includes a fourth execution module, configured to initiate session access to the collection device corresponding to the collection device identifier when the session lock corresponding to the collection device identifier is in an unlocked state.
  • a fourth execution module configured to initiate session access to the collection device corresponding to the collection device identifier when the session lock corresponding to the collection device identifier is in an unlocked state.
  • the device for accessing SDN network equipment further includes a monitoring module, a second query module, a first processing module, and a second processing module.
  • Each functional module is described in detail as follows:
  • a monitoring module for real-time monitoring of the session lock status corresponding to the collection device identifier
  • the second query module is configured to query whether there is a corresponding session cache in the system cache according to the collection device identifier when the session lock state corresponding to the collection device identifier is an unlocked state;
  • the first processing module is configured to initiate session access to the collection device in sequence according to the waiting queue when there is no corresponding session cache in the system cache;
  • the second processing module is configured to obtain a session pointer in the session cache when there is a corresponding session cache in the system cache, and initiate session access to the collection device corresponding to the collection device identifier according to the session pointer.
  • the apparatus for accessing SDN network equipment further includes an acquisition module and a second analysis module.
  • the acquisition module is used to acquire the configuration information of each collection device
  • the second analysis module is configured to analyze the configuration information of each collection device according to a preset analysis strategy to obtain the structure data of each collection device, wherein the analysis strategy is an analysis method of the configuration information.
  • the first execution module 84 includes a first pointer unit and a second pointer unit.
  • the first pointer unit is configured to obtain the session pointer in the session cache when there is a corresponding session cache in the system cache;
  • the second pointer unit is configured to initiate session access to the collection device corresponding to the collection device identifier according to the session pointer.
  • Each module in the above SDN network device access device can be implemented in whole or in part by software or hardware and a combination thereof.
  • the above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • a computer device is provided.
  • the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 7.
  • the computer equipment includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus.
  • the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a readable storage medium and an internal memory.
  • the readable storage medium stores an operating system and computer readable instructions.
  • the internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium.
  • the network interface of the computer device is used to communicate with an external server through a network connection. When the computer-readable instruction is executed by the processor, an SDN network device access method is realized.
  • the readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.
  • a computer device including a memory, a processor, and computer-readable instructions stored in the memory and running on the processor, and the processor implements the following steps when the processor executes the computer-readable instructions:
  • the session lock corresponding to the collection device identifier is in the locked state, the data collection request is put into the waiting queue.
  • one or more readable storage media storing computer readable instructions are provided.
  • the readable storage media provided in this embodiment include non-volatile readable storage media and volatile readable storage media.
  • the session lock corresponding to the collection device identifier is in the locked state, the data collection request is put into the waiting queue.
  • the readable storage medium may be a non-volatile readable storage medium or a volatile readable storage medium.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Abstract

Disclosed in the present application are an SDN network device access method and apparatus, a computer device, and a storage medium. The SDN network device access method comprises: receiving a data acquisition request from an access terminal; analyzing the data acquisition request to obtain data acquisition information, the data acquisition information comprising an acquisition device identifier; querying, according to the acquisition device identifier, whether a corresponding session cache exists in a system cache; if a corresponding session cache exists in the system cache, initiating session access to an acquisition device corresponding to the acquisition device identifier; and if no corresponding session cache exists in the system cache, querying the state of a session lock corresponding to the acquisition device identifier, and according to the state of the session lock, initiating session access to the acquisition device corresponding to the acquisition device identifier or putting the data acquisition request into a waiting queue. Also disclosed in the present application are an SDN network device access apparatus, a computer device, and a storage medium.

Description

SDN网络设备访问方法、装置、计算机设备及存储介质SDN network equipment access method, device, computer equipment and storage medium
本申请要求于2020年02月27日提交中国专利局、申请号为202010122323.3,发明名称为“SDN网络设备访问方法、装置、计算机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on February 27, 2020, the application number is 202010122323.3, and the invention title is "SDN network equipment access methods, devices, computer equipment, and storage media". The entire content of the application is approved The reference is incorporated in this application.
技术领域Technical field
本申请涉及网络领域,尤其涉及一种SDN网络设备访问方法、装置、计算机设备及存储介质。This application relates to the network field, and in particular to an SDN network device access method, device, computer device, and storage medium.
 To
背景技术Background technique
发明人发现SDN(software define network,软件定义网络)概念已经在业内出现多年,其核心技术通过将网络设备的控制面与数据面分离开来,从而实现了网络流量的灵活控制,使网络作为管道变得更加智能,为核心网络及应用的创新提供了良好的平台。The inventor found that the concept of SDN (software define network) has appeared in the industry for many years. Its core technology separates the control plane and data plane of network equipment, thereby realizing flexible control of network traffic and making the network a pipeline. Become smarter, providing a good platform for core network and application innovation.
然而,目前的SDN底层采集实现有着太大的局限性:SDN采集器由网络设备厂商提供,只能适配其厂商自身的网络设备,但目前的大型公司网络的招标要求一般不允许只有一家网络设备,所以无法使用这种控制器对接所有网络设备;另外,在云计算领域的网络部分中可以进行SDN插件开发,但是该部分插件与云平台业务强相关,无法用于多协议、多场景、多业务的采集需求;此外,市面上的商用采集器功能过于简单和固定,无法实现企业内部的定制化需求。目前部分大公司的业务部门选择自己实现底层采集功能,但又引入了新的问题:各业务对同一设备采集信息时,可能存在资源竞争而采集失败的问题;不同的业务可能存在采集资源重复,造成了设备资源极大浪费,甚至造成设备负载过高甚至设备故障。However, the current SDN low-level collection implementation has too many limitations: SDN collectors are provided by network equipment manufacturers and can only be adapted to their own network equipment, but the current bidding requirements for large-scale company networks generally do not allow only one network Device, so this controller cannot be used to connect all network devices; in addition, SDN plug-in development can be carried out in the network part of the cloud computing field, but this part of the plug-in is strongly related to the cloud platform business and cannot be used for multi-protocol, multi-scenario, Multi-service collection requirements; in addition, the functions of commercial collectors on the market are too simple and fixed to meet the customization requirements within the enterprise. At present, the business departments of some large companies choose to implement the underlying collection function by themselves, but they have introduced new problems: when each business collects information from the same device, there may be resource competition and collection failure; different businesses may have duplication of collection resources. This causes a huge waste of equipment resources, and even causes excessive equipment load or even equipment failure.
 To
发明内容Summary of the invention
本申请实施例提供一种SDN网络设备访问方法、装置、计算机设备及存储介质,以解决访问入口不统一、业务数据采集类型单一、访问和采集效率低下、资源竞争导致采集失败以及采集资源重复的问题。The embodiments of the present application provide an SDN network device access method, device, computer device, and storage medium to solve the problems of inconsistent access portals, single type of business data collection, low access and collection efficiency, resource competition leading to collection failures, and duplication of collection resources problem.
第一方面,本申请实施例提供一种SDN网络设备访问方法,包括:In the first aspect, an embodiment of the present application provides a method for accessing SDN network equipment, including:
接收访问终端的数据采集请求;Receive data collection requests from the access terminal;
解析所述数据采集请求,得到数据采集信息,所述数据采集信息包括采集设备标识;Parse the data collection request to obtain data collection information, where the data collection information includes a collection device identification;
根据所述采集设备标识查询系统缓存中是否存在对应的会话缓存;Query whether there is a corresponding session cache in the system cache according to the collection device identifier;
若所述系统缓存中存在对应的会话缓存,则对所述采集设备标识对应的采集设备发起会话访问;If there is a corresponding session cache in the system cache, initiate session access to the collection device corresponding to the collection device identifier;
若所述系统缓存中不存在对应的会话缓存,则查询所述采集设备标识对应的会话锁的状态;If there is no corresponding session cache in the system cache, query the status of the session lock corresponding to the collection device identifier;
若所述采集设备标识对应的会话锁处于锁定状态,则将所述数据采集请求放入等待队列中。If the session lock corresponding to the collection device identifier is in the locked state, the data collection request is put into the waiting queue.
第二方面,本申请实施例提供一种SDN网络设备访问装置,包括:In the second aspect, an embodiment of the present application provides an apparatus for accessing SDN network equipment, including:
接收模块,用于接收访问终端的数据采集请求;The receiving module is used to receive the data collection request of the access terminal;
解析模块,用于解析所述数据采集请求,得到数据采集信息,所述数据采集信息包括采集设备标识;Parsing module, configured to parse the data collection request to obtain data collection information, where the data collection information includes the identification of the collection device;
查询模块,用于根据所述采集设备标识查询系统缓存中是否存在对应的会话缓存;The query module is used to query whether there is a corresponding session cache in the system cache according to the collection device identifier;
第一执行模块,用于在所述系统缓存中存在对应的会话缓存,则对所述采集设备标识对应的采集设备发起会话访问;The first execution module is configured to have a corresponding session cache in the system cache, and initiate session access to the collection device corresponding to the collection device identifier;
第二执行模块,用于在所述系统缓存中不存在对应的会话缓存,则查询所述采集设备标识对应的会话锁的状态;The second execution module is configured to query the status of the session lock corresponding to the collection device identifier if there is no corresponding session cache in the system cache;
第三执行模块,用于在所述采集设备标识对应的会话锁处于锁定状态,则将所述数据采集请求放入等待队列中。The third execution module is configured to put the data collection request into the waiting queue when the session lock corresponding to the collection device identifier is in the locked state.
第三方面,本申请实施例提供一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其中,所述处理器执行所述计算机可读指令时实现如下步骤:In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor executes the The following steps are implemented when computer readable instructions are:
接收访问终端的数据采集请求;Receive data collection requests from the access terminal;
解析所述数据采集请求,得到数据采集信息,所述数据采集信息包括采集设备标识;Parse the data collection request to obtain data collection information, where the data collection information includes a collection device identification;
根据所述采集设备标识查询系统缓存中是否存在对应的会话缓存;Query whether there is a corresponding session cache in the system cache according to the collection device identifier;
若所述系统缓存中存在对应的会话缓存,则对所述采集设备标识对应的采集设备发起会话访问;If there is a corresponding session cache in the system cache, initiate session access to the collection device corresponding to the collection device identifier;
若所述系统缓存中不存在对应的会话缓存,则查询所述采集设备标识对应的会话锁的状态;If there is no corresponding session cache in the system cache, query the status of the session lock corresponding to the collection device identifier;
若所述采集设备标识对应的会话锁处于锁定状态,则将所述数据采集请求放入等待队列中。If the session lock corresponding to the collection device identifier is in the locked state, the data collection request is put into the waiting queue.
第四方面,本申请实施例提供一个或多个存储有计算机可读指令的可读存储介质,其中,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:In a fourth aspect, the embodiments of the present application provide one or more readable storage media storing computer readable instructions, wherein when the computer readable instructions are executed by one or more processors, the one or more The processor performs the following steps:
接收访问终端的数据采集请求;Receive data collection requests from the access terminal;
解析所述数据采集请求,得到数据采集信息,所述数据采集信息包括采集设备标识;Parse the data collection request to obtain data collection information, where the data collection information includes a collection device identification;
根据所述采集设备标识查询系统缓存中是否存在对应的会话缓存;Query whether there is a corresponding session cache in the system cache according to the collection device identifier;
若所述系统缓存中存在对应的会话缓存,则对所述采集设备标识对应的采集设备发起会话访问;If there is a corresponding session cache in the system cache, initiate session access to the collection device corresponding to the collection device identifier;
若所述系统缓存中不存在对应的会话缓存,则查询所述采集设备标识对应的会话锁的状态;If there is no corresponding session cache in the system cache, query the status of the session lock corresponding to the collection device identifier;
若所述采集设备标识对应的会话锁处于锁定状态,则将所述数据采集请求放入等待队列中。If the session lock corresponding to the collection device identifier is in the locked state, the data collection request is put into the waiting queue.
本申请提供的SDN网络设备访问方法、装置、计算机设备及存储介质,通过服务端对不同数据采集设备的解析和控制,实现了统一的设备访问入口,并且不用提供存储逻辑,更好地保证了数据访问的效率,并且通过会话缓存的设置,对采集设备直接发起会话访问,省去了重新建立连接的过程,提高了对采集设备的数据访问和采集的效率,减少计算机的负担。进一步地,通过会话锁的设置,避免了资源竞争而采集失败的问题,减少了资源的浪费以及对设备的损耗。通过系统缓存中的会话缓存对采集设备直接发起会话访问,省去了重新建立连接的过程,提高了访问效率。The SDN network equipment access method, device, computer equipment, and storage medium provided in this application realize a unified equipment access portal through the analysis and control of different data collection equipment on the server side, and does not need to provide storage logic, which better guarantees The efficiency of data access, and through the setting of the session cache, the session access is directly initiated to the collection device, which saves the process of re-establishing the connection, improves the efficiency of data access and collection to the collection device, and reduces the burden on the computer. Further, through the setting of the session lock, the problem of collection failure due to resource competition is avoided, and the waste of resources and the loss of equipment are reduced. The session cache in the system cache is used to directly initiate session access to the collection device, eliminating the need to re-establish a connection and improving access efficiency.
本申请的一个或多个实施例的细节在下面的附图和描述中提出,本申请的其他特征和优点将从说明书、附图以及权利要求变得明显。The details of one or more embodiments of the present application are presented in the following drawings and description, and other features and advantages of the present application will become apparent from the description, drawings and claims.
 To
附图说明Description of the drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments of the present application. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.
图1是本申请一实施例中SDN网络设备访问方法的一应用环境示意图;FIG. 1 is a schematic diagram of an application environment of an SDN network device access method in an embodiment of the present application;
图2是本申请一实施例中SDN网络设备访问方法的一流程图;Fig. 2 is a flowchart of a method for accessing SDN network equipment in an embodiment of the present application;
图3是本申请一实施例中SDN网络设备访问方法的另一流程图;FIG. 3 is another flowchart of an SDN network device access method in an embodiment of the present application;
图4是本申请一实施例中SDN网络设备访问方法的又一流程图;FIG. 4 is another flowchart of the method for accessing SDN network equipment in an embodiment of the present application;
图5是图2中步骤S40的一具体实施方式的一流程图;FIG. 5 is a flowchart of a specific implementation of step S40 in FIG. 2;
图6是本申请一实施例中SDN网络设备访问装置的一原理框图;Fig. 6 is a functional block diagram of an apparatus for accessing SDN network equipment in an embodiment of the present application;
图7是本申请一实施例中提供的计算机设备的一结构图。Fig. 7 is a structural diagram of a computer device provided in an embodiment of the present application.
 To
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are a part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
本申请实施例提供的SDN网络设备访问方法,可应用在如图1的应用环境中,具体地,该SDN网络设备访问方法应用在SDN网络设备访问系统中,该SDN网络设备访问系统包括如图1所示的访问终端(客户端)、采集设备和服务器,客户端、采集设备分别与服务器通过网络进行通信,用于提高访问效率。服务端接收访问终端的数据采集请求;解析所述数据采集请求,得到数据采集信息,所述数据采集信息包括采集设备标识;根据所述采集设备标识查询系统缓存中是否存在对应的会话缓存;若所述系统缓存中存在对应的会话缓存,则对所述采集设备标识对应的采集设备发起会话访问;若所述系统缓存中不存在对应的会话缓存,则查询所述采集设备标识对应的会话锁的状态;若所述采集设备标识对应的会话锁处于锁定状态,则将所述数据采集请求放入等待队列中。其中,客户端又称为用户端,是指与服务器相对应,为客户提供本地服务的程序。客户端可以但不限于各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备。采集设备可以是不同网络厂商提供的SDN采集器,用以提供查询会话缓存和会话锁信息的路径。服务器可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The SDN network device access method provided by the embodiments of the present application can be applied in the application environment as shown in FIG. 1. Specifically, the SDN network device access method is applied in the SDN network device access system, and the SDN network device access system includes The access terminal (client), acquisition device, and server shown in 1 respectively communicate with the server through the network to improve access efficiency. The server receives the data collection request from the access terminal; parses the data collection request to obtain data collection information, where the data collection information includes the collection device identification; query whether there is a corresponding session cache in the system cache according to the collection device identification; if If there is a corresponding session cache in the system cache, a session access is initiated to the collection device corresponding to the collection device identifier; if the corresponding session cache does not exist in the system cache, then the session lock corresponding to the collection device identifier is queried If the session lock corresponding to the collection device identifier is in the locked state, put the data collection request into the waiting queue. Among them, the client is also called the client, which refers to the program that corresponds to the server and provides local services to the client. The client can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The collection device may be an SDN collector provided by different network vendors to provide a path for querying session cache and session lock information. The server can be implemented as an independent server or a server cluster composed of multiple servers.
在一实施例中,如图2所示,提供一种SDN网络设备访问方法,以该方法应用在图1中的服务器为例进行说明,包括如下步骤:In an embodiment, as shown in FIG. 2, a method for accessing SDN network equipment is provided. Taking the method applied to the server in FIG. 1 as an example for description, the method includes the following steps:
S10S10 :接收访问终端的数据采集请求。: Receive data collection requests from the access terminal.
其中,访问终端可以但不限于各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备。访问终端需要向采集设备进行数据采集或者访问时,向服务端发送数据采集请求。该数据采集请求可以包括使用的协议、采集设备标识、AS号等信息。可选地,服务端通过一个API接口和访问终端进行数据交互,优选地,该API接口为Restful http API接口。可选地,在接收访问终端的数据采集请求之前,还可以包括一个身份验证的过程,即对访问终端的访问权限进行验证。若该身份验证通过,则接收访问终端的数据采集请求,若该身份验证通过,则拒绝该访问终端的数据采集请求。该身份验证可以为账户验证,也可以为对访问终端的终端识别码进行验证,或者其他可用的身份验证方式。Among them, the access terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. When the access terminal needs to perform data collection or access to the collection device, it sends a data collection request to the server. The data collection request may include information such as the used protocol, the identification of the collection device, and the AS number. Optionally, the server performs data interaction with the access terminal through an API interface. Preferably, the API interface is a Restful http API interface. Optionally, before receiving the data collection request of the access terminal, an identity verification process may be included, that is, the access authority of the access terminal is verified. If the identity verification is passed, the data collection request of the access terminal is received, and if the identity verification is passed, the data collection request of the access terminal is rejected. The identity verification may be account verification, or verification of the terminal identification code of the access terminal, or other available identity verification methods.
进一步地,数据采集请求还包括采集数据类型。在接收到该数据采集请求之后,还包括一个采集权限验证步骤,即验证对应的访问终端是否具备对采集数据类型的数据进行数据采集的权限。该采集权限验证可以通过一个采集权限配置表来实现,通过该采集权限配置表查询该访问终端是否具备对采集数据类型对应的数据进行数据采集的权限,以更好地保证数据采集的安全。Further, the data collection request also includes the type of collected data. After receiving the data collection request, it also includes a collection authority verification step, that is, verifying whether the corresponding access terminal has the authority to perform data collection on data of the collected data type. The collection authority verification can be implemented through a collection authority configuration table, through which the access terminal is inquired about whether the access terminal has the authority to perform data collection on the data corresponding to the collected data type, so as to better ensure the security of data collection.
S20S20 :解析所述数据采集请求,得到数据采集信息,所述数据采集信息包括采集设备标识。: Parse the data collection request to obtain data collection information, where the data collection information includes the identification of the collection device.
具体地,对数据采集请求进行解析,可以得到数据采集信息。数据采集信息包括采集设备标识,采集设备标识为访问终端,此次数据采集请求对应的进行数据采集或者访问的终端。该采集设备标识可以通过数字、字母、符号或者中文等至少一项组成。可选地,数据采集信息还包括采集协议、数据标识等。采集协议为可以包括SNMP协议、NETCONF协议或者SFTP协议等。数据标识可以标识具体采集设备中对应的数据内容或者数据位置等。Specifically, by analyzing the data collection request, data collection information can be obtained. The data collection information includes the identification of the collection device, the identification of the collection device is an access terminal, and the terminal for data collection or access corresponding to this data collection request. The collection device identification can be composed of at least one of numbers, letters, symbols, or Chinese. Optionally, the data collection information also includes a collection protocol, data identification, and so on. The acquisition protocol may include SNMP, NETCONF, or SFTP. The data identification can identify the corresponding data content or data location in the specific collection device.
进一步地,可以将数据采集请求解析成结构体,结构体(struct)是由一系列具有相同类型或不同类型的数据构成的数据集合。可选地,预先将所有采集设备所使用到的功能抽象为统一的结构,然后将采集设备的配置解析到该结构上,例如:通过解析配置文件(配置文件是纯文本文件),厂家h3c的设备A使用了BGP协议,AS号65002,这时结构体中的相关字段就记录下相关的信息。Further, the data collection request can be parsed into a structure, which is a data collection composed of a series of data of the same type or different types. Optionally, abstract the functions used by all collection devices into a unified structure in advance, and then parse the configuration of the collection device to this structure, for example: by parsing the configuration file (the configuration file is a plain text file), the manufacturer's h3c Device A uses the BGP protocol, with the AS number 65002. At this time, the relevant fields in the structure record the relevant information.
进一步地,将数据采集请求解析成结构体之后,将可以结合预先对采集设备抽象成的结构得到数据采集信息。示例性地,通过采集设备标识和/或数据标识即可以对应得到采集协议信息。Further, after the data collection request is parsed into a structure, the data collection information can be obtained by combining the structure abstracted into the collection device in advance. Exemplarily, the collection protocol information can be correspondingly obtained through the collection device identification and/or the data identification.
在一个具体实施方式中,在对数据采集请求进行解析之后,还包括一个访问权限的验证过程,即验证该访问终端是否具有访问该采集设备标识对应的采集设备的权限。该访问权限验证可以通过一个访问权限配置表来实现,通过该访问权限配置表查询该访问终端是否具备对采集设备标识对应的采集设备进行数据访问的权限,以更好地保证数据访问的安全。In a specific embodiment, after the data collection request is parsed, an access permission verification process is further included, that is, it is verified whether the access terminal has the permission to access the collection device corresponding to the collection device identifier. The access authority verification may be implemented through an access authority configuration table, through which the access authority configuration table is used to query whether the access terminal has the authority to perform data access to the collection device corresponding to the collection device identification, so as to better ensure the security of data access.
S30S30 :根据所述采集设备标识查询系统缓存中是否存在对应的会话缓存。: Query whether there is a corresponding session cache in the system cache according to the collection device identifier.
该步骤中的会话是指采集设备对应的会话。在访问终端的历史访问记录中,一个会话在访问完成后会保存在系统缓存中,当有一个新的数据采集请求触发之后,服务端可以检查系统缓存中是否有到该采集设备对应的会话缓存。可选地,会话缓存保存在系统缓存中可以设置保存期限,即超过该保存期限即可将对应的会话缓存进行删除。示例性地,该保存期限可以为1小时、2小时或者5小时等。对系统缓存中的会话缓存的存储时间进行监控,若有会话缓存的存储时间超过预设时间,则将对应的会话缓存移除。进一步地,可以设置在系统缓存中的存储的会话缓存超过预设的数量时,对系统缓存中存储的会话缓存进行删除处理。可选地,可以根据系统缓存中会话缓存的访问频率进行排序,优先将访问频率较低的会话缓存进行删除。或者,根据最新访问时间进行排序,将最新访问时间距离当前时间较久远的会话缓存进行删除。The session in this step refers to the session corresponding to the collection device. In the historical access record of the access terminal, a session will be saved in the system cache after the access is completed. When a new data collection request is triggered, the server can check whether there is a session cache corresponding to the collection device in the system cache . Optionally, the session cache can be stored in the system cache with a retention period, that is, the corresponding session cache can be deleted after the retention period expires. Exemplarily, the shelf life may be 1 hour, 2 hours, 5 hours, or the like. The storage time of the session cache in the system cache is monitored. If the storage time of any session cache exceeds the preset time, the corresponding session cache will be removed. Further, it can be set to delete the session cache stored in the system cache when the session cache stored in the system cache exceeds a preset number. Optionally, it can be sorted according to the access frequency of the session cache in the system cache, and the session cache with a lower access frequency is preferentially deleted. Or, sort according to the latest access time, and delete the session cache whose latest access time is farther away from the current time.
优选地,可以为系统缓存设置一个预设容量。预设容量为一个预先设定的存储容量的值,可选地,可以根据系统缓存中的总容量来设置该预设容量。示例性性地,可以设置该预设容量为系统缓存中的总容量的70%、80%、90%、95%或者100%等。若监控到系统缓存中缓存容量超过预设容量,则采用缓存算法对系统缓存中的会话缓存进行移除。可选地,缓存算法可以使用LRU(Least Recently Used)算法实现。其中,LRU算法中判断如果一个数据在最近一段时间没有被访问到,那么在将来它被访问的可能性也很小。因此,当限定的空间已存满数据时,可以把最久没有被访问到的数据淘汰。具体地,该LRU算法可以用一个数组来存储数据(会话缓存),给每一个数据项标记一个访问时间戳,每次插入新数据项的时候,先把数组中存在的数据项的时间戳自增,并将新数据项的时间戳置为0并插入到数组中。每次访问数组中的数据项的时候,将被访问的数据项的时间戳置为0。当数组空间已满时,将时间戳最大的数据项淘汰。Preferably, a preset capacity can be set for the system cache. The preset capacity is a value of a preset storage capacity. Optionally, the preset capacity can be set according to the total capacity in the system cache. Exemplarily, the preset capacity can be set to 70%, 80%, 90%, 95%, or 100% of the total capacity in the system cache. If it is monitored that the cache capacity in the system cache exceeds the preset capacity, the cache algorithm is used to remove the session cache in the system cache. Optionally, the caching algorithm can be implemented using an LRU (Least Recently Used) algorithm. Among them, the LRU algorithm judges that if a piece of data has not been accessed in the most recent period of time, it is unlikely to be accessed in the future. Therefore, when the limited space is full of data, the data that has not been accessed for the longest time can be eliminated. Specifically, the LRU algorithm can use an array to store data (session cache), and mark each data item with an access timestamp. Each time a new data item is inserted, the timestamp of the data item in the array is automatically Increment, and set the time stamp of the new data item to 0 and insert it into the array. Every time a data item in the array is accessed, the timestamp of the accessed data item is set to 0. When the array space is full, the data item with the largest time stamp is eliminated.
可选地,该LRU算法还可以利用一个链表来实现,每次新插入数据(会话缓存)的时候将新数据插到链表的头部。每次缓存命中(即数据被访问),则将数据移到链表头部。那么当链表满的时候,就将链表尾部的数据丢弃。Optionally, the LRU algorithm can also be implemented using a linked list, and new data is inserted into the head of the linked list every time new data (session cache) is inserted. Each time the cache hits (that is, the data is accessed), the data is moved to the head of the linked list. Then when the linked list is full, the data at the end of the linked list is discarded.
可选地,该LRU算法还可以利用链表和hashmap实现。当需要插入新的数据项(会话缓存)的时候,如果新数据项在链表中存在,则把该节点移到链表头部,如果不存在,则新建一个节点,放到链表头部,若该系统缓存满了,则把链表最后一个节点删除即可。在访问数据的时候,如果数据项在链表中存在,则把该节点移到链表头部,否则返回-1。如此在链表尾部的节点就是最近最久未访问的数据项。Optionally, the LRU algorithm can also be implemented using linked lists and hashmaps. When a new data item (session cache) needs to be inserted, if the new data item exists in the linked list, move the node to the head of the linked list. If it does not exist, create a new node and place it at the head of the linked list. When the system cache is full, delete the last node of the linked list. When accessing data, if the data item exists in the linked list, move the node to the head of the linked list, otherwise return -1. In this way, the node at the end of the linked list is the data item that has not been accessed for a long time.
具体地,以采集设备标识为检索字段,查询系统缓存中是否存在和采集设备标识对应的会话缓存。Specifically, the collection device identification is used as the retrieval field to query whether there is a session cache corresponding to the collection device identification in the system cache.
S40S40 :若所述系统缓存中存在对应的会话缓存,则对所述采集设备标识对应的采集设备发起会话访问。: If there is a corresponding session cache in the system cache, initiate session access to the collection device corresponding to the collection device identifier.
在系统缓存中,服务端将上一访问终端访问该采集设备的会话指针保存在会话缓存中。如此,后续对相同采集设备的访问请求就可以通过过去保存的该会话指针直接处理。在该步骤中,若所述系统缓存中存在对应的会话缓存,则获取所述会话缓存中的会话指针。In the system cache, the server saves the session pointer for the last access terminal to access the collection device in the session cache. In this way, subsequent access requests to the same collection device can be directly processed through the session pointer saved in the past. In this step, if there is a corresponding session cache in the system cache, the session pointer in the session cache is acquired.
得到会话指针之后,即可以通过该会话指针对所述采集设备标识对应的采集设备发起会话访问。After the session pointer is obtained, the session pointer can be used to initiate session access to the collection device corresponding to the collection device identifier.
在本实施例中,若系统缓存中存在对应的会话缓存,则获取所述会话缓存中的会话指针;根据会话指针对采集设备标识对应的采集设备发起会话访问。通过系统缓存中的会话缓存对采集设备直接发起会话访问,省去了重新建立连接的过程,提高了访问效率。In this embodiment, if there is a corresponding session cache in the system cache, the session pointer in the session cache is obtained; and the session access is initiated to the collection device corresponding to the collection device identifier according to the session pointer. The session cache in the system cache is used to directly initiate session access to the collection device, eliminating the need to re-establish a connection and improving access efficiency.
S50S50 :若所述系统缓存中不存在对应的会话缓存,则查询所述采集设备标识对应的会话锁的状态。: If there is no corresponding session cache in the system cache, query the status of the session lock corresponding to the collection device identifier.
通过查询系统缓存中是否存在对应的会话缓存之后,若判断系统缓存中不存在对应的会话缓存,则说明对于该采集设备还未有会话的历史或者对应的会话缓存已经过期,此时需要创建新的会话对该采集设备进行访问。After querying whether there is a corresponding session cache in the system cache, if it is determined that the corresponding session cache does not exist in the system cache, it means that there is no session history for the collection device or the corresponding session cache has expired, and a new session needs to be created at this time. Session to access the collection device.
会话锁可以通过设置互斥量实现。互斥量又称互斥锁。互斥量是一个可以处于两态之一的变量:解锁和加锁。在设置互斥量之后,当其它线程需要使用该会话时,需要先检查该互斥量是否已经被锁定,如果已经被锁定则线程阻塞等待锁的释放。预先为每一采集设备都设置会话锁,因此,在该步骤中,在查询到系统缓存中不存在对应的会话缓存,需要判断采集设备的会话锁的状态,若会话锁处于锁定状态,则无法对该采集设备发起新的访问。The session lock can be achieved by setting a mutex. Mutex is also called mutual exclusion lock. A mutex is a variable that can be in one of two states: unlocked and locked. After setting the mutex, when other threads need to use the session, they need to check whether the mutex is already locked. If it is already locked, the thread blocks and waits for the lock to be released. A session lock is set for each collection device in advance. Therefore, in this step, there is no corresponding session cache in the system cache. It is necessary to determine the status of the session lock of the collection device. If the session lock is in the locked state, it cannot be Initiate a new access to the collection device.
S60S60 :若所述采集设备标识对应的会话锁处于锁定状态,则将所述数据采集请求放入等待队列中。: If the session lock corresponding to the collection device identifier is in the locked state, put the data collection request into the waiting queue.
在该步骤中,若采集设备标识对应的会话锁处于锁定状态,则将所述数据采集请求放入等待队列中。在会话锁解锁之后,才能实现对该采集设备的访问。In this step, if the session lock corresponding to the collection device identifier is in the locked state, the data collection request is put into the waiting queue. After the session lock is unlocked, access to the collection device can be realized.
在本实施例中,在接收到接收访问终端的数据采集请求之后,解析所述数据采集请求,得到数据采集信息,所述数据采集信息包括采集设备标识;再根据所述采集设备标识查询系统缓存中是否存在对应的会话缓存;若所述系统缓存中不存在对应的会话缓存,则查询所述采集设备标识对应的会话锁的状态;若所述采集设备标识对应的会话锁处于锁定状态,则将所述数据采集请求放入等待队列中。通过服务端对不同数据采集设备的解析和控制,实现了统一的设备访问入口,更好地保证了数据访问的效率,并且通过会话缓存的设置,可以提高对采集设备的数据访问和采集的效率,减少计算机的负担。进一步地,通过会话锁的设置,避免了资源竞争而采集失败的问题。In this embodiment, after receiving the data collection request from the access terminal, the data collection request is parsed to obtain data collection information. The data collection information includes the collection device identification; and then the system cache is queried according to the collection device identification. Whether there is a corresponding session cache in the system cache; if there is no corresponding session cache in the system cache, query the status of the session lock corresponding to the collection device identifier; if the session lock corresponding to the collection device identifier is in the locked state, then Put the data collection request into the waiting queue. Through the server's analysis and control of different data collection devices, a unified device access entry is realized, which better guarantees the efficiency of data access, and through the setting of session cache, the efficiency of data access and collection to the collection device can be improved , To reduce the burden on the computer. Further, through the setting of the session lock, the problem of collection failure due to resource contention is avoided.
在一实施例例中,在所述查询所述采集设备标识对应的会话锁的状态之后,所述SDN网络设备访问方法还包括:In an embodiment, after the query of the status of the session lock corresponding to the collection device identifier, the method for accessing the SDN network device further includes:
若所述采集设备标识对应的会话锁处于未锁定状态,则对所述采集设备标识对应的采集设备发起会话访问。If the session lock corresponding to the collection device identifier is in an unlocked state, initiate session access to the collection device corresponding to the collection device identifier.
具体地,若采集设备标识对应的会话锁处于未锁定状态,则说明当前采集设备未被其他访问终端访问,因此,可以对所述采集设备标识对应的采集设备发起会话访问,获取所需要的数据。可以理解地,该会话访问可以包括建立连接、加密协商等过程。进一步地,在对采集设备标识对应的采集设备发起会话访问之后,将所述采集设备标识对应的会话锁调整为锁定状态。Specifically, if the session lock corresponding to the collection device ID is in an unlocked state, it means that the current collection device is not accessed by other access terminals. Therefore, session access can be initiated to the collection device corresponding to the collection device ID to obtain the required data . Understandably, the session access may include processes such as connection establishment and encryption negotiation. Further, after initiating session access to the collection device corresponding to the collection device identification, the session lock corresponding to the collection device identification is adjusted to a locked state.
在一实施例中,如图3所示,在所述若所述采集设备标识对应的会话锁处于锁定状态,则将所述数据采集请求放入等待队列中之后,所述SDN网络设备访问方法还包括:In an embodiment, as shown in FIG. 3, after the session lock corresponding to the collection device identifier is in the locked state, the data collection request is placed in the waiting queue, the SDN network device access method Also includes:
S71S71 :实时监测所述采集设备标识对应的会话锁状态。: Monitor the session lock status corresponding to the collection device identifier in real time.
在将所述数据采集请求放入等待队列之后,对该采集设备的会话锁状态进行实时监测。可选地,可以预设一时间间隔,每经过一个该时间间隔即对该采集设备标识对应的会话锁状态进行检测。具体时间间隔的设置可以根据实际应用需要进行设定。After the data collection request is put into the waiting queue, the session lock status of the collection device is monitored in real time. Optionally, a time interval can be preset, and the session lock state corresponding to the collection device identifier is detected every time the time interval passes. The setting of the specific time interval can be set according to actual application needs.
S72S72 :若采集设备标识对应的会话锁状态为未锁定状态,则根据采集设备标识查询系统缓存中是否存在对应的会话缓存。: If the session lock status corresponding to the collection device ID is unlocked, query whether there is a corresponding session cache in the system cache according to the collection device ID.
若采集设备标识对应的会话锁状态为未锁定状态,则说明上一个访问的服务端已经完成对该采集设备的数据访问。此时,如果是本服务端完成其他访问终端的数据采集请求,则会在系统缓存中保存该采集终端的会话缓存。因此,可以先根据采集设备标识查询系统缓存中是否存在对应的会话缓存。If the session lock status corresponding to the collection device identifier is unlocked, it means that the last accessed server has completed data access to the collection device. At this time, if the server completes the data collection request of other access terminals, the session cache of the collection terminal will be saved in the system cache. Therefore, you can first query whether there is a corresponding session cache in the system cache according to the collection device identifier.
S73S73 :若系统缓存中不存在对应的会话缓存,则根据所述等待队列依序对所述采集设备发起会话访问。: If there is no corresponding session cache in the system cache, initiate session access to the collection device in sequence according to the waiting queue.
如果在系统缓存中不存在对应的会话缓存,则根据等待队列依序对采集设备发起会话访问。具体地,依据进入等待队列的顺序先后对采集设备发起会话访问。If there is no corresponding session cache in the system cache, the session access is initiated to the collection device in sequence according to the waiting queue. Specifically, according to the order of entering the waiting queue, the session access is initiated to the collection device successively.
S74S74 :若所述系统缓存中存在对应的会话缓存,则获取所述会话缓存中的会话指针,根据所述会话指针对所述采集设备标识对应的采集设备发起会话访问。: If there is a corresponding session cache in the system cache, obtain the session pointer in the session cache, and initiate session access to the collection device corresponding to the collection device identifier according to the session pointer.
如果在系统缓存中存在对应的会话缓存,则通过会话指针的方式对所述采集设备标识对应的采集设备发起会话访问。If there is a corresponding session cache in the system cache, a session access is initiated to the collection device corresponding to the collection device identifier by means of a session pointer.
在本实施例中,实时监测采集设备标识对应的会话锁状态;若采集设备标识对应的会话锁状态为未锁定状态,则根据采集设备标识查询系统缓存中是否存在对应的会话缓存;若系统缓存中不存在对应的会话缓存,则根据等待队列依序对所述采集设备发起会话访问;若系统缓存中存在对应的会话缓存,则获取会话缓存中的会话指针,根据会话指针对采集设备标识对应的采集设备发起会话访问。在进入等待队列之后,实时监测采集设备的会话锁状态,以保证能及时进行后续的访问过程,并且,在会话锁为为锁定状态的前提下,再次查询系统缓存中是否存在对应的会话缓存,可以更进一步地提高对采集设备的访问效率。In this embodiment, the session lock status corresponding to the collection device ID is monitored in real time; if the session lock status corresponding to the collection device ID is unlocked, the system cache is queried based on the collection device ID to see if there is a corresponding session cache; if the system cache If there is no corresponding session cache in the system, the acquisition device is sequentially initiated session access according to the waiting queue; if there is a corresponding session cache in the system cache, the session pointer in the session cache is obtained, and the acquisition device identification is corresponding to the session pointer The collection device initiates session access. After entering the waiting queue, monitor the session lock status of the collection device in real time to ensure that the subsequent access process can be carried out in time, and, on the premise that the session lock is in the locked state, query again whether there is a corresponding session cache in the system cache, Can further improve the efficiency of access to the collection equipment.
在一实施例中,如图4所示,在接收访问终端的数据采集请求之前,所述SDN网络设备访问方法还包括:In an embodiment, as shown in FIG. 4, before receiving the data collection request of the access terminal, the method for accessing the SDN network device further includes:
S101S101 :获取各个采集设备的配置信息。: Obtain the configuration information of each collection device.
具体地,采集设备为存储有数据的网络设备,可以通过SDN采集器进行数据交互。配置信息可以以文本的形式呈现。可选地,若配置信息为其他形式的文件,可以包括将其他形式的文件转化为文本形式的配置信息。示例性地,若配置信息为图像形式,则可以采用OCR识别技术将图像形式的配置信息转化为文本形式的配置信息。Specifically, the collection device is a network device that stores data, and data interaction can be performed through an SDN collector. The configuration information can be presented in the form of text. Optionally, if the configuration information is a file in another form, it may include the configuration information that converts the file in another form into a text form. Exemplarily, if the configuration information is in the form of an image, the OCR recognition technology can be used to convert the configuration information in the image form into the configuration information in the text form.
S102S102 :按照预设的解析策略对每一采集设备的配置信息进行解析,得到每一采集设备的结构体数据,其中,解析策略为对配置信息的解析方式。: Analyze the configuration information of each collection device according to the preset analysis strategy to obtain the structure data of each collection device, where the analysis strategy is the analysis method of the configuration information.
具体地,该预设的解析策略为对配置信息的解析方式,可选地,该解析策略可以通过为一解析脚本,即将配置信息的解析算法封装成一解析脚本,再执行该解析脚本即可实现对采集设备的配置信息进行解析,得到每一采集设备的结构体数据。Specifically, the preset parsing strategy is the parsing method of the configuration information. Optionally, the parsing strategy can be implemented by being a parsing script, that is, encapsulating the parsing algorithm of the configuration information into a parsing script, and then executing the parsing script. Analyze the configuration information of the collection device to obtain the structure data of each collection device.
在本实施例中,预先获取各个采集设备的配置信息,在按照预设的解析策略对每一采集设备的配置信息进行解析,得到每一采集设备的结构体数据。可以预先对各个采集设备的配置信息进行统一解析,可以实现统一管理、监控,方便后续不同访问设备的统一数据采集。In this embodiment, the configuration information of each collection device is obtained in advance, and the configuration information of each collection device is analyzed according to a preset analysis strategy to obtain the structure data of each collection device. The configuration information of each collection device can be analyzed in advance, unified management and monitoring can be realized, and subsequent unified data collection of different access devices can be facilitated.
在一实施例中,如图5所示,若系统缓存中存在对应的会话缓存,则对采集设备标识对应的采集设备发起会话访问,包括:In one embodiment, as shown in FIG. 5, if there is a corresponding session cache in the system cache, initiating session access to the collection device corresponding to the collection device identifier includes:
S401S401 :若系统缓存中存在对应的会话缓存,则获取所述会话缓存中的会话指针。: If there is a corresponding session cache in the system cache, acquire the session pointer in the session cache.
S402S402 :根据会话指针,对采集设备标识对应的采集设备发起会话访问。: According to the session pointer, initiate session access to the collection device corresponding to the collection device ID.
具体地,在系统缓存中,服务端将上一访问终端访问该采集设备的会话指针保存在会话缓存中。如此,后续对相同采集设备的访问请求就可以通过过去保存的该会话指针直接处理。若所述系统缓存中存在对应的会话缓存,则获取所述会话缓存中的会话指针。得到会话指针之后,即可以通过该会话指针对所述采集设备标识对应的采集设备发起会话访问。通过系统缓存中的会话缓存对采集设备直接发起会话访问,省去了重新建立连接的过程,提高了访问效率。Specifically, in the system cache, the server saves the session pointer for the last access terminal to access the collection device in the session cache. In this way, subsequent access requests to the same collection device can be directly processed through the session pointer saved in the past. If there is a corresponding session cache in the system cache, obtain the session pointer in the session cache. After obtaining the session pointer, the session pointer can be used to initiate session access to the collection device corresponding to the collection device identifier. The session cache in the system cache directly initiates session access to the collection device, eliminating the need to re-establish a connection and improving access efficiency.
在一实施例中,提供了一种SDN网络设备访问装置,该SDN网络设备访问装置与上述实施例中SDN网络设备访问方法一一对应。如图6所示,该SDN网络设备访问装置包括接收模块81、解析模块82、查询模块83、第一执行模块84、第二执行模块85和第三执行模块86,各功能模块详细说明如下:In one embodiment, an apparatus for accessing SDN network equipment is provided, and the apparatus for accessing SDN network equipment corresponds to the method for accessing SDN network equipment in the above-mentioned embodiment in a one-to-one correspondence. As shown in FIG. 6, the SDN network equipment access device includes a receiving module 81, a parsing module 82, a query module 83, a first execution module 84, a second execution module 85, and a third execution module 86. Each functional module is described in detail as follows:
接收模块81,用于接收访问终端的数据采集请求。The receiving module 81 is used to receive a data collection request from the access terminal.
解析模块82,用于解析数据采集请求,得到数据采集信息,数据采集信息包括采集设备标识。The parsing module 82 is used for parsing the data collection request to obtain data collection information, and the data collection information includes the identification of the collection device.
查询模块83,用于根据采集设备标识查询系统缓存中是否存在对应的会话缓存。The query module 83 is used to query whether there is a corresponding session cache in the system cache according to the collection device identifier.
第一执行模块84,用于在系统缓存中存在对应的会话缓存时,则对采集设备标识对应的采集设备发起会话访问。The first execution module 84 is configured to initiate session access to the collection device corresponding to the collection device identifier when there is a corresponding session cache in the system cache.
第二执行模块85,用于在所述系统缓存中不存在对应的会话缓存时,则查询所述采集设备标识对应的会话锁的状态。The second execution module 85 is configured to query the status of the session lock corresponding to the collection device identifier when the corresponding session cache does not exist in the system cache.
第三执行模块86,用于在所述采集设备标识对应的会话锁处于锁定状态时,则将所述数据采集请求放入等待队列中。The third execution module 86 is configured to put the data collection request into the waiting queue when the session lock corresponding to the collection device identifier is in the locked state.
优选地,该SDN网络设备访问装置还包括第四执行模块,用于在所述采集设备标识对应的会话锁处于未锁定状态时,则对所述采集设备标识对应的采集设备发起会话访问。Preferably, the SDN network device access device further includes a fourth execution module, configured to initiate session access to the collection device corresponding to the collection device identifier when the session lock corresponding to the collection device identifier is in an unlocked state.
进一步地,所述SDN网络设备访问装置还包括监测模块、第二查询模块、第一处理模块和第二处理模块,各功能模块详细说明如下:Further, the device for accessing SDN network equipment further includes a monitoring module, a second query module, a first processing module, and a second processing module. Each functional module is described in detail as follows:
监测模块,用于实时监测所述采集设备标识对应的会话锁状态;A monitoring module for real-time monitoring of the session lock status corresponding to the collection device identifier;
第二查询模块,用于在所述采集设备标识对应的会话锁状态为未锁定状态时,则根据所述采集设备标识查询系统缓存中是否存在对应的会话缓存;The second query module is configured to query whether there is a corresponding session cache in the system cache according to the collection device identifier when the session lock state corresponding to the collection device identifier is an unlocked state;
第一处理模块,用于在所述系统缓存中不存在对应的会话缓存时,则根据所述等待队列依序对所述采集设备发起会话访问;The first processing module is configured to initiate session access to the collection device in sequence according to the waiting queue when there is no corresponding session cache in the system cache;
第二处理模块,用于在所述系统缓存中存在对应的会话缓存时,则获取所述会话缓存中的会话指针,根据所述会话指针对所述采集设备标识对应的采集设备发起会话访问。The second processing module is configured to obtain a session pointer in the session cache when there is a corresponding session cache in the system cache, and initiate session access to the collection device corresponding to the collection device identifier according to the session pointer.
优选地,所述SDN网络设备访问装置还包括获取模块和第二解析模块。Preferably, the apparatus for accessing SDN network equipment further includes an acquisition module and a second analysis module.
获取模块,用于获取各个采集设备的配置信息;The acquisition module is used to acquire the configuration information of each collection device;
第二解析模块,用于按照预设的解析策略对每一采集设备的配置信息进行解析,得到每一采集设备的结构体数据,其中,所述解析策略为对配置信息的解析方式。The second analysis module is configured to analyze the configuration information of each collection device according to a preset analysis strategy to obtain the structure data of each collection device, wherein the analysis strategy is an analysis method of the configuration information.
优选地,所述第一执行模块84包括第一指针单元和第二指针单元。Preferably, the first execution module 84 includes a first pointer unit and a second pointer unit.
第一指针单元,用于在所述系统缓存中存在对应的会话缓存时,则获取所述会话缓存中的会话指针;The first pointer unit is configured to obtain the session pointer in the session cache when there is a corresponding session cache in the system cache;
第二指针单元,用于根据所述会话指针,对所述采集设备标识对应的采集设备发起会话访问。The second pointer unit is configured to initiate session access to the collection device corresponding to the collection device identifier according to the session pointer.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence number of each step in the foregoing embodiment does not mean the order of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
关于SDN网络设备访问装置的具体限定可以参考上文中对于SDN网络设备访问方法的限定,在此不再赘述。上述SDN网络设备访问装置中的各个模块可以全部或部分通过软件或硬件及其组合来实现。上述个模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Regarding the specific limitation of the SDN network device access device, please refer to the above limitation on the SDN network device access method, which will not be repeated here. Each module in the above SDN network device access device can be implemented in whole or in part by software or hardware and a combination thereof. The above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图7所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括可读存储介质、内存储器。该可读存储介质存储有操作系统和计算机可读指令。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的网络接口用于与外部服务器通过网络连接通信。该计算机可读指令被处理器执行时以实现一种SDN网络设备访问方法。本实施例所提供的可读存储介质包括非易失性可读存储介质和易失性可读存储介质。In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 7. The computer equipment includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a readable storage medium and an internal memory. The readable storage medium stores an operating system and computer readable instructions. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external server through a network connection. When the computer-readable instruction is executed by the processor, an SDN network device access method is realized. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.
在一个实施例中,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可读指令,处理器执行计算机可读指令时实现以下步骤:In one embodiment, a computer device is provided, including a memory, a processor, and computer-readable instructions stored in the memory and running on the processor, and the processor implements the following steps when the processor executes the computer-readable instructions:
接收访问终端的数据采集请求;Receive data collection requests from the access terminal;
解析所述数据采集请求,得到数据采集信息,所述数据采集信息包括采集设备标识;Parse the data collection request to obtain data collection information, where the data collection information includes a collection device identification;
根据所述采集设备标识查询系统缓存中是否存在对应的会话缓存;Query whether there is a corresponding session cache in the system cache according to the collection device identifier;
若所述系统缓存中存在对应的会话缓存,则对所述采集设备标识对应的采集设备发起会话访问;If there is a corresponding session cache in the system cache, initiate session access to the collection device corresponding to the collection device identifier;
若所述系统缓存中不存在对应的会话缓存,则查询所述采集设备标识对应的会话锁的状态;If there is no corresponding session cache in the system cache, query the status of the session lock corresponding to the collection device identifier;
若所述采集设备标识对应的会话锁处于锁定状态,则将所述数据采集请求放入等待队列中。If the session lock corresponding to the collection device identifier is in the locked state, the data collection request is put into the waiting queue.
在一个实施例中,提供了提供了一个或多个存储有计算机可读指令的可读存储介质,本实施例所提供的可读存储介质包括非易失性可读存储介质和易失性可读存储介质;该可读存储介质上存储有计算机可读指令,该计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现如下步骤: In one embodiment, one or more readable storage media storing computer readable instructions are provided. The readable storage media provided in this embodiment include non-volatile readable storage media and volatile readable storage media. Read a storage medium; the readable storage medium stores computer readable instructions, and when the computer readable instructions are executed by one or more processors, the one or more processors implement the following steps:
接收访问终端的数据采集请求;Receive data collection requests from the access terminal;
解析所述数据采集请求,得到数据采集信息,所述数据采集信息包括采集设备标识;Parse the data collection request to obtain data collection information, where the data collection information includes a collection device identification;
根据所述采集设备标识查询系统缓存中是否存在对应的会话缓存;Query whether there is a corresponding session cache in the system cache according to the collection device identifier;
若所述系统缓存中存在对应的会话缓存,则对所述采集设备标识对应的采集设备发起会话访问;If there is a corresponding session cache in the system cache, initiate session access to the collection device corresponding to the collection device identifier;
若所述系统缓存中不存在对应的会话缓存,则查询所述采集设备标识对应的会话锁的状态;If there is no corresponding session cache in the system cache, query the status of the session lock corresponding to the collection device identifier;
若所述采集设备标识对应的会话锁处于锁定状态,则将所述数据采集请求放入等待队列中。If the session lock corresponding to the collection device identifier is in the locked state, the data collection request is put into the waiting queue.
其中,所述可读存储介质可以是非易失性可读存储介质,也可以是易失性可读存储介质。Wherein, the readable storage medium may be a non-volatile readable storage medium or a volatile readable storage medium.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink) DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through computer-readable instructions. The computer-readable instructions can be stored in a non-volatile computer. In a readable storage medium, when the computer-readable instructions are executed, they may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database, or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the division of the above functional units and modules is used as an example. In practical applications, the above functions can be allocated to different functional units and modules as needed. Module completion, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内 The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still implement the foregoing The technical solutions recorded in the examples are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in Within the scope of protection of this application .

Claims (20)

  1. 一种SDN网络设备访问方法,其中,包括:A method for accessing SDN network equipment, which includes:
    接收访问终端的数据采集请求;Receive data collection requests from the access terminal;
    解析所述数据采集请求,得到数据采集信息,所述数据采集信息包括采集设备标识;Parse the data collection request to obtain data collection information, where the data collection information includes a collection device identification;
    根据所述采集设备标识查询系统缓存中是否存在对应的会话缓存;Query whether there is a corresponding session cache in the system cache according to the collection device identifier;
    若所述系统缓存中存在对应的会话缓存,则对所述采集设备标识对应的采集设备发起会话访问;If there is a corresponding session cache in the system cache, initiate session access to the collection device corresponding to the collection device identifier;
    若所述系统缓存中不存在对应的会话缓存,则查询所述采集设备标识对应的会话锁的状态;If there is no corresponding session cache in the system cache, query the status of the session lock corresponding to the collection device identifier;
    若所述采集设备标识对应的会话锁处于锁定状态,则将所述数据采集请求放入等待队列中。If the session lock corresponding to the collection device identifier is in the locked state, the data collection request is put into the waiting queue.
  2. 如权利要求1所述的SDN网络设备访问方法,其中,在所述查询所述采集设备标识对应的会话锁的状态之后,所述SDN网络设备访问方法还包括:5. The method for accessing SDN network equipment according to claim 1, wherein after said querying the status of the session lock corresponding to said collection device identifier, said method for accessing SDN network equipment further comprises:
    若所述采集设备标识对应的会话锁处于未锁定状态,则对所述采集设备标识对应的采集设备发起会话访问。If the session lock corresponding to the collection device identifier is in an unlocked state, initiate session access to the collection device corresponding to the collection device identifier.
  3. 如权利要求1所述的SDN网络设备访问方法,其中,在所述若所述采集设备标识对应的会话锁处于锁定状态,则将所述数据采集请求放入等待队列中之后,所述SDN网络设备访问方法还包括:The SDN network device access method according to claim 1, wherein, after the session lock corresponding to the collection device identifier is in a locked state, the data collection request is put into a waiting queue, the SDN network Equipment access methods also include:
    实时监测所述采集设备标识对应的会话锁状态;Real-time monitoring of the session lock status corresponding to the collection device identifier;
    若所述采集设备标识对应的会话锁状态为未锁定状态,则根据所述采集设备标识查询系统缓存中是否存在对应的会话缓存;If the session lock state corresponding to the collection device identifier is an unlocked state, query whether there is a corresponding session cache in the system cache according to the collection device identifier;
    若所述系统缓存中不存在对应的会话缓存,则根据所述等待队列依序对所述采集设备发起会话访问;If there is no corresponding session cache in the system cache, initiate session access to the collection device in sequence according to the waiting queue;
    若所述系统缓存中存在对应的会话缓存,则获取所述会话缓存中的会话指针,根据所述会话指针对所述采集设备标识对应的采集设备发起会话访问。If there is a corresponding session cache in the system cache, obtain the session pointer in the session cache, and initiate session access to the collection device corresponding to the collection device identifier according to the session pointer.
  4. 如权利要求1所述的SDN网络设备访问方法,其中,在所述接收访问终端的数据采集请求之前,所述SDN网络设备访问方法还包括:8. The method for accessing SDN network equipment according to claim 1, wherein, before said receiving the data collection request of the access terminal, the method for accessing SDN network equipment further comprises:
    获取各个采集设备的配置信息;Obtain the configuration information of each collection device;
    按照预设的解析策略对每一采集设备的配置信息进行解析,得到每一采集设备的结构体数据,其中,所述解析策略为对配置信息的解析方式。The configuration information of each collection device is analyzed according to a preset analysis strategy to obtain the structure data of each collection device, wherein the analysis strategy is an analysis method of the configuration information.
  5. 如权利要求1所述的SDN网络设备访问方法,其中,所述若所述系统缓存中存在对应的会话缓存,则对所述采集设备标识对应的采集设备发起会话访问,包括:The SDN network device access method according to claim 1, wherein if the corresponding session cache exists in the system cache, initiating session access to the collection device corresponding to the collection device identifier comprises:
    若所述系统缓存中存在对应的会话缓存,则获取所述会话缓存中的会话指针;If there is a corresponding session cache in the system cache, acquiring the session pointer in the session cache;
    根据所述会话指针,对所述采集设备标识对应的采集设备发起会话访问。According to the session pointer, a session access is initiated to the collection device corresponding to the collection device identifier.
  6. 一种SDN网络设备访问装置,其中,包括:A device for accessing SDN network equipment, which includes:
    接收模块,用于接收访问终端的数据采集请求;The receiving module is used to receive the data collection request of the access terminal;
    解析模块,用于解析所述数据采集请求,得到数据采集信息,所述数据采集信息包括采集设备标识;Parsing module, configured to parse the data collection request to obtain data collection information, where the data collection information includes the identification of the collection device;
    查询模块,用于根据所述采集设备标识查询系统缓存中是否存在对应的会话缓存;The query module is used to query whether there is a corresponding session cache in the system cache according to the collection device identifier;
    第一执行模块,用于在所述系统缓存中存在对应的会话缓存时,则对所述采集设备标识对应的采集设备发起会话访问;The first execution module is configured to initiate session access to the collection device corresponding to the collection device identifier when there is a corresponding session cache in the system cache;
    第二执行模块,用于在所述系统缓存中不存在对应的会话缓存时,则查询所述采集设备标识对应的会话锁的状态;The second execution module is configured to query the status of the session lock corresponding to the collection device identifier when the corresponding session cache does not exist in the system cache;
    第三执行模块,用于在所述采集设备标识对应的会话锁处于锁定状态时,则将所述数据采集请求放入等待队列中。The third execution module is configured to put the data collection request into the waiting queue when the session lock corresponding to the collection device identifier is in the locked state.
  7. 如权利要求6所述的SDN网络设备访问装置,其中,所述SDN网络设备访问装置还包括:7. The apparatus for accessing SDN network equipment according to claim 6, wherein the apparatus for accessing SDN network equipment further comprises:
    第四执行模块,用于在所述采集设备标识对应的会话锁处于未锁定状态时,则对所述采集设备标识对应的采集设备发起会话访问。The fourth execution module is configured to initiate session access to the collection device corresponding to the collection device ID when the session lock corresponding to the collection device ID is in an unlocked state.
  8. 如权利要求6所述的SDN网络设备访问装置,其中,所述SDN网络设备访问装置还包括:7. The apparatus for accessing SDN network equipment according to claim 6, wherein the apparatus for accessing SDN network equipment further comprises:
    监测模块,用于实时监测所述采集设备标识对应的会话锁状态;A monitoring module for real-time monitoring of the session lock status corresponding to the collection device identifier;
    查询模块,用于在所述采集设备标识对应的会话锁状态为未锁定状态时,则根据所述采集设备标识查询系统缓存中是否存在对应的会话缓存;The query module is configured to query whether there is a corresponding session cache in the system cache according to the collection device identifier when the session lock state corresponding to the collection device identifier is in the unlocked state;
    第一处理模块,用于在所述系统缓存中不存在对应的会话缓存时,则根据所述等待队列依序对所述采集设备发起会话访问;The first processing module is configured to initiate session access to the collection device in sequence according to the waiting queue when there is no corresponding session cache in the system cache;
    第二处理模块,用于在所述系统缓存中存在对应的会话缓存时,则获取所述会话缓存中的会话指针,根据所述会话指针对所述采集设备标识对应的采集设备发起会话访问。The second processing module is configured to obtain a session pointer in the session cache when there is a corresponding session cache in the system cache, and initiate session access to the collection device corresponding to the collection device identifier according to the session pointer.
  9. 如权利要求6所述的SDN网络设备访问装置,其中,还包括获取模块和第二解析模块;7. The SDN network equipment access device according to claim 6, further comprising an acquisition module and a second analysis module;
    获取模块,用于获取各个采集设备的配置信息;The acquisition module is used to acquire the configuration information of each collection device;
    第二解析模块,用于按照预设的解析策略对每一采集设备的配置信息进行解析,得到每一采集设备的结构体数据,其中,所述解析策略为对配置信息的解析方式。The second analysis module is configured to analyze the configuration information of each collection device according to a preset analysis strategy to obtain the structure data of each collection device, wherein the analysis strategy is an analysis method of the configuration information.
  10. 如权利要求6所述的SDN网络设备访问装置,其中,所述第一执行模块包括第一指针单元和第二指针单元;7. The SDN network device access device according to claim 6, wherein the first execution module includes a first pointer unit and a second pointer unit;
    所述第一指针单元,用于在所述系统缓存中存在对应的会话缓存时,则获取所述会话缓存中的会话指针;The first pointer unit is configured to obtain the session pointer in the session cache when there is a corresponding session cache in the system cache;
    所述第二指针单元,用于根据所述会话指针,对所述采集设备标识对应的采集设备发起会话访问。The second pointer unit is configured to initiate session access to the collection device corresponding to the collection device identifier according to the session pointer.
  11. 一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其中,所述处理器执行所述计算机可读指令时实现如下步骤:A computer device includes a memory, a processor, and computer-readable instructions that are stored in the memory and can run on the processor, wherein the processor implements the following steps when the processor executes the computer-readable instructions:
    接收访问终端的数据采集请求;Receive data collection requests from the access terminal;
    解析所述数据采集请求,得到数据采集信息,所述数据采集信息包括采集设备标识;Parse the data collection request to obtain data collection information, where the data collection information includes a collection device identification;
    根据所述采集设备标识查询系统缓存中是否存在对应的会话缓存;Query whether there is a corresponding session cache in the system cache according to the collection device identifier;
    若所述系统缓存中存在对应的会话缓存,则对所述采集设备标识对应的采集设备发起会话访问;If there is a corresponding session cache in the system cache, initiate session access to the collection device corresponding to the collection device identifier;
    若所述系统缓存中不存在对应的会话缓存,则查询所述采集设备标识对应的会话锁的状态;If there is no corresponding session cache in the system cache, query the status of the session lock corresponding to the collection device identifier;
    若所述采集设备标识对应的会话锁处于锁定状态,则将所述数据采集请求放入等待队列中。If the session lock corresponding to the collection device identifier is in the locked state, the data collection request is put into the waiting queue.
  12. 如权利要求11所述的计算机设备,其中,在所述查询所述采集设备标识对应的会话锁的状态之后,所述处理器执行所述计算机可读指令时还实现如下步骤:11. The computer device according to claim 11, wherein after the query of the status of the session lock corresponding to the collection device identifier, the processor further implements the following steps when executing the computer-readable instruction:
    若所述采集设备标识对应的会话锁处于未锁定状态,则对所述采集设备标识对应的采集设备发起会话访问。If the session lock corresponding to the collection device identifier is in an unlocked state, initiate session access to the collection device corresponding to the collection device identifier.
  13. 如权利要求11所述的计算机设备,其中,在所述若所述采集设备标识对应的会话锁处于锁定状态,则将所述数据采集请求放入等待队列中之后,所述处理器执行所述计算机可读指令时还实现如下步骤:The computer device according to claim 11, wherein, after the session lock corresponding to the collection device identifier is in a locked state, the data collection request is placed in a waiting queue, and the processor executes the The following steps are also implemented when the computer-readable instructions are:
    实时监测所述采集设备标识对应的会话锁状态;Real-time monitoring of the session lock status corresponding to the collection device identifier;
    若所述采集设备标识对应的会话锁状态为未锁定状态,则根据所述采集设备标识查询系统缓存中是否存在对应的会话缓存;If the session lock state corresponding to the collection device identifier is an unlocked state, query whether there is a corresponding session cache in the system cache according to the collection device identifier;
    若所述系统缓存中不存在对应的会话缓存,则根据所述等待队列依序对所述采集设备发起会话访问;If there is no corresponding session cache in the system cache, initiate session access to the collection device in sequence according to the waiting queue;
    若所述系统缓存中存在对应的会话缓存,则获取所述会话缓存中的会话指针,根据所述会话指针对所述采集设备标识对应的采集设备发起会话访问。If there is a corresponding session cache in the system cache, obtain the session pointer in the session cache, and initiate session access to the collection device corresponding to the collection device identifier according to the session pointer.
  14. 如权利要求11所述的计算机设备,其中,在所述接收访问终端的数据采集请求之前,所述处理器执行所述计算机可读指令时还实现如下步骤:The computer device according to claim 11, wherein, before the receiving the data collection request of the access terminal, the processor further implements the following steps when executing the computer-readable instruction:
    获取各个采集设备的配置信息;Obtain the configuration information of each collection device;
    按照预设的解析策略对每一采集设备的配置信息进行解析,得到每一采集设备的结构体数据,其中,所述解析策略为对配置信息的解析方式。The configuration information of each collection device is analyzed according to a preset analysis strategy to obtain the structure data of each collection device, wherein the analysis strategy is an analysis method of the configuration information.
  15. 如权利要求11所述的计算机设备,其中,所述若所述系统缓存中存在对应的会话缓存,则对所述采集设备标识对应的采集设备发起会话访问,包括:The computer device according to claim 11, wherein, if a corresponding session cache exists in the system cache, initiating session access to the collection device corresponding to the collection device identifier includes:
    若所述系统缓存中存在对应的会话缓存,则获取所述会话缓存中的会话指针;If there is a corresponding session cache in the system cache, acquiring the session pointer in the session cache;
    根据所述会话指针,对所述采集设备标识对应的采集设备发起会话访问。According to the session pointer, a session access is initiated to the collection device corresponding to the collection device identifier.
  16. 一个或多个存储有计算机可读指令的可读存储介质,其中,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤: One or more readable storage media storing computer readable instructions, where when the computer readable instructions are executed by one or more processors, the one or more processors execute the following steps:
    接收访问终端的数据采集请求;Receive data collection requests from the access terminal;
    解析所述数据采集请求,得到数据采集信息,所述数据采集信息包括采集设备标识;Parse the data collection request to obtain data collection information, where the data collection information includes a collection device identification;
    根据所述采集设备标识查询系统缓存中是否存在对应的会话缓存;Query whether there is a corresponding session cache in the system cache according to the collection device identifier;
    若所述系统缓存中存在对应的会话缓存,则对所述采集设备标识对应的采集设备发起会话访问;If there is a corresponding session cache in the system cache, initiate session access to the collection device corresponding to the collection device identifier;
    若所述系统缓存中不存在对应的会话缓存,则查询所述采集设备标识对应的会话锁的状态;If there is no corresponding session cache in the system cache, query the status of the session lock corresponding to the collection device identifier;
    若所述采集设备标识对应的会话锁处于锁定状态,则将所述数据采集请求放入等待队列中。If the session lock corresponding to the collection device identifier is in the locked state, the data collection request is put into the waiting queue.
  17. 如权利要求16所述的可读存储介质,其中,在所述查询所述采集设备标识对应的会话锁的状态之后,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器还执行如下步骤:The readable storage medium according to claim 16, wherein, after the query of the status of the session lock corresponding to the collection device identifier, when the computer-readable instructions are executed by one or more processors, the One or more processors also perform the following steps:
    若所述采集设备标识对应的会话锁处于未锁定状态,则对所述采集设备标识对应的采集设备发起会话访问。If the session lock corresponding to the collection device identifier is in an unlocked state, initiate session access to the collection device corresponding to the collection device identifier.
  18. 如权利要求16所述的可读存储介质,其中,在所述若所述采集设备标识对应的会话锁处于锁定状态,则将所述数据采集请求放入等待队列中之后,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器还执行如下步骤:The readable storage medium according to claim 16, wherein, after the session lock corresponding to the collection device identifier is in a locked state, the data collection request is placed in a waiting queue, the computer readable When the instruction is executed by one or more processors, the one or more processors further execute the following steps:
    实时监测所述采集设备标识对应的会话锁状态;Real-time monitoring of the session lock status corresponding to the collection device identifier;
    若所述采集设备标识对应的会话锁状态为未锁定状态,则根据所述采集设备标识查询系统缓存中是否存在对应的会话缓存;If the session lock state corresponding to the collection device identifier is an unlocked state, query whether there is a corresponding session cache in the system cache according to the collection device identifier;
    若所述系统缓存中不存在对应的会话缓存,则根据所述等待队列依序对所述采集设备发起会话访问;If there is no corresponding session cache in the system cache, initiate session access to the collection device in sequence according to the waiting queue;
    若所述系统缓存中存在对应的会话缓存,则获取所述会话缓存中的会话指针,根据所述会话指针对所述采集设备标识对应的采集设备发起会话访问。If there is a corresponding session cache in the system cache, obtain the session pointer in the session cache, and initiate session access to the collection device corresponding to the collection device identifier according to the session pointer.
  19. 如权利要求16所述的可读存储介质,其中,在所述接收访问终端的数据采集请求之前,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器还执行如下步骤:The readable storage medium according to claim 16, wherein, before the data collection request of the access terminal is received, when the computer-readable instruction is executed by one or more processors, the one or more processing The device also performs the following steps:
    获取各个采集设备的配置信息;Obtain the configuration information of each collection device;
    按照预设的解析策略对每一采集设备的配置信息进行解析,得到每一采集设备的结构体数据,其中,所述解析策略为对配置信息的解析方式。The configuration information of each collection device is analyzed according to a preset analysis strategy to obtain the structure data of each collection device, wherein the analysis strategy is an analysis method of the configuration information.
  20. 如权利要求16所述的可读存储介质,其中,所述若所述系统缓存中存在对应的会话缓存,则对所述采集设备标识对应的采集设备发起会话访问,包括:The readable storage medium according to claim 16, wherein, if a corresponding session cache exists in the system cache, initiating session access to the collection device corresponding to the collection device identifier includes:
    若所述系统缓存中存在对应的会话缓存,则获取所述会话缓存中的会话指针;If there is a corresponding session cache in the system cache, acquiring the session pointer in the session cache;
    根据所述会话指针,对所述采集设备标识对应的采集设备发起会话访问。According to the session pointer, a session access is initiated to the collection device corresponding to the collection device identifier.
PCT/CN2020/117979 2020-02-27 2020-09-27 Sdn network device access method and apparatus, computer device, and storage medium WO2021169275A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010122323.3 2020-02-27
CN202010122323.3A CN111447102B (en) 2020-02-27 2020-02-27 SDN network device access method and device, computer device and storage medium

Publications (1)

Publication Number Publication Date
WO2021169275A1 true WO2021169275A1 (en) 2021-09-02

Family

ID=71650993

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/117979 WO2021169275A1 (en) 2020-02-27 2020-09-27 Sdn network device access method and apparatus, computer device, and storage medium

Country Status (2)

Country Link
CN (1) CN111447102B (en)
WO (1) WO2021169275A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115297174A (en) * 2022-10-10 2022-11-04 广州市易鸿智能装备有限公司 Method and device for sequentially storing out-of-order data source, electronic equipment and storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111447102B (en) * 2020-02-27 2024-02-13 平安科技(深圳)有限公司 SDN network device access method and device, computer device and storage medium
CN112188456B (en) * 2020-09-25 2023-02-14 三维通信股份有限公司 Bluetooth device data acquisition method and device, storage medium and electronic device
CN113645118B (en) * 2021-07-09 2023-01-24 江苏省未来网络创新研究院 Industrial internet identification flow caching processing method based on SDN
CN115695594B (en) * 2023-01-03 2023-03-07 徐工汉云技术股份有限公司 Internet of things data communication method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1326162A (en) * 2000-05-30 2001-12-12 松下电器产业株式会社 Data collecting apparatus and method
CN103095859A (en) * 2011-11-04 2013-05-08 阿里巴巴集团控股有限公司 Multi-domain-name dialogue information sharing method and system
US9491031B2 (en) * 2014-05-06 2016-11-08 At&T Intellectual Property I, L.P. Devices, methods, and computer readable storage devices for collecting information and sharing information associated with session flows between communication devices and servers
CN108768791A (en) * 2018-07-04 2018-11-06 山东汇贸电子口岸有限公司 A kind of information collection configuration management system and method
CN111447102A (en) * 2020-02-27 2020-07-24 平安科技(深圳)有限公司 SDN network device access method and device, computer device and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6098093A (en) * 1998-03-19 2000-08-01 International Business Machines Corp. Maintaining sessions in a clustered server environment
CN104185148B (en) * 2014-09-15 2017-11-17 武汉地大信息工程股份有限公司 Geological environment mobile terminal optimization of collection system and method
US10454936B2 (en) * 2015-10-23 2019-10-22 Oracle International Corporation Access manager session management strategy
CN105472002B (en) * 2015-12-09 2018-11-02 国家电网公司 Based on the session synchronization method copied immediately between clustered node
CN107659607A (en) * 2017-07-21 2018-02-02 国网浙江省电力公司 The external delivery system of gathered data based on distributed service processing
CN107483418A (en) * 2017-07-27 2017-12-15 阿里巴巴集团控股有限公司 Login process method, method for processing business, device and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1326162A (en) * 2000-05-30 2001-12-12 松下电器产业株式会社 Data collecting apparatus and method
CN103095859A (en) * 2011-11-04 2013-05-08 阿里巴巴集团控股有限公司 Multi-domain-name dialogue information sharing method and system
US9491031B2 (en) * 2014-05-06 2016-11-08 At&T Intellectual Property I, L.P. Devices, methods, and computer readable storage devices for collecting information and sharing information associated with session flows between communication devices and servers
CN108768791A (en) * 2018-07-04 2018-11-06 山东汇贸电子口岸有限公司 A kind of information collection configuration management system and method
CN111447102A (en) * 2020-02-27 2020-07-24 平安科技(深圳)有限公司 SDN network device access method and device, computer device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115297174A (en) * 2022-10-10 2022-11-04 广州市易鸿智能装备有限公司 Method and device for sequentially storing out-of-order data source, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111447102A (en) 2020-07-24
CN111447102B (en) 2024-02-13

Similar Documents

Publication Publication Date Title
WO2021169275A1 (en) Sdn network device access method and apparatus, computer device, and storage medium
CN109271265B (en) Request processing method, device, equipment and storage medium based on message queue
CN112910945B (en) Request link tracking method and service request processing method
WO2021003818A1 (en) Interface test case generating method and apparatus, computer device, and storage medium
WO2020238066A1 (en) Software pressure test method and apparatus, and storage medium and server
US10860604B1 (en) Scalable tracking for database udpates according to a secondary index
WO2019109518A1 (en) Data list uploading method and terminal thereof
US9058330B2 (en) Verification of complex multi-application and multi-node deployments
US8849947B1 (en) IT discovery of virtualized environments by scanning VM files and images
CN110932918B (en) Log data acquisition method and device and storage medium
CN111258627A (en) Interface document generation method and device
US11297105B2 (en) Dynamically determining a trust level of an end-to-end link
CN112231168A (en) Micro server control method, device, equipment and storage medium
CN107133231B (en) Data acquisition method and device
US11178160B2 (en) Detecting and mitigating leaked cloud authorization keys
CN111813573A (en) Communication method of management platform and robot software and related equipment thereof
WO2017174013A1 (en) Data storage management method and apparatus, and data storage system
CN111475705A (en) SQ L query-based network service monitoring method, device, equipment and storage medium
US9256641B1 (en) Dynamic optimization of data aggregation
CN117294763A (en) Cloud desktop terminal management method for forwarding terminal request information based on proxy service
CN111651235A (en) Virtual machine set task management method and device
CN113704203A (en) Log file processing method and device
CN115729727A (en) Fault repairing method, device, equipment and medium
US20210194969A1 (en) System and method for bot detection and classification
CN107948316B (en) File synchronization method, device and equipment

Legal Events

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

Ref document number: 20921951

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20921951

Country of ref document: EP

Kind code of ref document: A1