CN109542653A - A kind of queue port communication means based on port list - Google Patents

A kind of queue port communication means based on port list Download PDF

Info

Publication number
CN109542653A
CN109542653A CN201811471404.3A CN201811471404A CN109542653A CN 109542653 A CN109542653 A CN 109542653A CN 201811471404 A CN201811471404 A CN 201811471404A CN 109542653 A CN109542653 A CN 109542653A
Authority
CN
China
Prior art keywords
port
list
queue
destination
communication means
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811471404.3A
Other languages
Chinese (zh)
Inventor
贠海顺
李运喜
时磊
徐晓光
陈晓磊
杨静远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Aeronautics Computing Technique Research Institute of AVIC
Original Assignee
Xian Aeronautics Computing Technique Research Institute of AVIC
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 Xian Aeronautics Computing Technique Research Institute of AVIC filed Critical Xian Aeronautics Computing Technique Research Institute of AVIC
Priority to CN201811471404.3A priority Critical patent/CN109542653A/en
Publication of CN109542653A publication Critical patent/CN109542653A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3096Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents wherein the means or processing minimize the use of computing system or of computing system component resources, e.g. non-intrusive monitoring which minimizes the probe effect: sniffing, intercepting, indirectly deriving the monitored data from other directly available data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Abstract

The invention belongs to computer system software professional skill fields, it is related to a kind of queue port communication means based on port list, this method is for solving in embedded real time partitioned operating system, in subregion process need while listening for and when handling multiple destination port message, using the waste of cpu resource caused by polling mode and Message Processing problem not in time.A kind of queue port communication means based on port list provided by the invention includes two critical aspects: an realizes that process monitors processing to one group of destination port simultaneously in subregion by port list;Whether there is or not message according to destination port for receiving and its condition conversion by two, pass through management port listing signal amount, realize to the access control of port list.After implementing the queue port communication means that the present invention designs, process is needed while being monitored under the scene for handling multiple destination ports in subregion, can save CPU computing resource, improves Message Processing efficiency.

Description

A kind of queue port communication means based on port list
Technical field
The invention belongs to computer system software professional skill fields, and it is logical to be related to a kind of queue port based on port list Letter method.
Background technique
Synthesization, modular avionics system (IMA) are by multiple application Integratings to high speed processing ability In computer, pass through resource-sharing, lifting system efficiency.Partition operating system is the embedded real-time operation that IMA is mainly used System.In order to guarantee certainty and robustness, what the subregion in partition operating system was mutually isolated in room and time.Queue Port, which is to provide between subregion, interconnects, and carries out the main path of information exchange.
Queue port is divided into source port and destination port.Process can send message by source port in subregion, pass through mesh Port receive message.Queue port provides message queuing services, and when destination port is empty, process can block in subregion The message to be received such as on corresponding port, until port becomes available (the available meaning in port: for destination port, for end Mouth has message for receiving).It is one-to-many corresponding relationship between source port and destination port, a destination port is corresponding unique A source port, therefore, in existing queue port information communication mechanism, process can only be at most blocked in simultaneously in subregion On one destination port.If process needs while receiving, handling multiple destination port message in a subregion, certain can only be specified A time interval, the in sequence each destination port of poll.Under this processing mode, if polling interval is short, between message reaches It is long every the time, then waste CPU computing resource;If polling interval is long, message interarrival time is short, then will lead to message cannot In time the problem of processing.
Summary of the invention
The purpose of the present invention: the present invention provides a kind of queue port communication means based on port list, it is therefore an objective to solve Process is when needing while listening for and handling multiple destination port message in subregion, using the wave of cpu resource caused by polling mode Take and Message Processing problem not in time, to improve queue port communication efficiency in this case.
Technical solution of the present invention: a kind of queue port communication means based on port list includes the following steps and comes in fact The multiple destination ports of processing are now monitored simultaneously:
Step 1: creation queue port port list is initially empty;
Step 2: the destination port monitored will be needed to be added in port list;
Step 3: according to monitoring needs, by setting port activity state be ACTIVE state or NOT_ACTIVE state, Monitoring range is adjusted flexibly;
Step 4: service being received by port list while monitoring and handling multiple destination ports, according in port list Whether destination port has that message can receive and its state change carrys out management port listing signal amount, final to realize to port list Access management.
The present invention has the advantage that effect: after implementing method of the present invention, it is possible to provide a kind of interrupt monitors simultaneously The method for handling multiple destination ports compares polling mode, can save the computing resource of CPU, improves and handles multiple destinations The efficiency of mouth message.
Detailed description of the invention
Fig. 1 port list receives service execution process figure.
Specific embodiment
A kind of queue port communication means based on port list, comprising the following steps:
Step 1: creation queue port port list is initially empty
When creating queue port list, the specified maximum destination port number for allowing to be added the port list, creation storage Space, and port list creates a counting semaphore thus, semaphore initial value is 0;
Step 2: will need while the destination port of monitoring is added in port list
It will need while monitoring destination port to be added to port list, this destination port is made to become pair of port list service As a port service list is at most added in a destination port.It is other to check whether this destination port has been added to when addition Miniport service list, and whether have exceeded the number upper limit that port list allows to be added;
Step 3: according to monitoring needs, active state of the destination port in port list being set, monitoring model is adjusted flexibly It encloses.
It can set the destination port in miniport service list to Mobile Forms (ACTIVE) or inactive (NOT_ ACTIVE).The meaning of ACTIVE state is that miniport service list needs to monitor this destination port message of processing, and NOT_ACTIVE contains Justice is in contrast.By the way that active state of each destination port in miniport service list can be respectively set, port is provided The flexibility of list service control monitoring range.
When active state is arranged, if switching to ACTIVE by NOT_ACTIVE, and the current state of this destination port is There is message can receive, then discharges a port list counting semaphore;If switching to NOT_ACTIVE, and this purpose by ACTIVE The current state of port is to have message can receive, then recycles a port list counting semaphore.It is counted and is believed by port list Number amount, with the access times of control port list;
Step 4: service being received by port list while monitoring and handling multiple destination ports, according in port list Whether destination port has that message can receive and its state change carrys out management port listing signal amount, final to realize to port list Access management.
Port list receives the main process flow of service, as shown in Figure 1:
It is arrived if a) port list semaphore is available, then it represents that there is purpose port to can receive message on port list. It needs to complete the reception of a piece of news by first manageable destination port according to specified Rule.Rule includes: It according to addition sequence, always searches for since first position, or is searched for the position behind last processing position.It receives After complete a piece of news, if this destination port still has message that can continue to, a port list semaphore is discharged.
If b) port list semaphore can not be got, according to specified time-out time, obstruction calls this service Process in subregion, until there is port to become available on port list, or time-out.
C) when destination port from it is unavailable become available when, if destination port is in port list, and active state For ACTIVE, then the port list semaphore where this destination port is discharged.Note: destination port becomes available inspection from unavailable Survey mechanism is a part of queue port script communication mechanism, is not belonging to the description range of this patent.
It d), can be processed according to Rule first after the process unblocking state being blocked on port list Destination port, complete the reception and subsequent processing of message.Same step a).
Specific work steps illustrated below:
1) multiple subregions are configured in the configuration tool that operating system provides.For three, respectively subregion A, subregion B With subregion C;
2) difference subregion A, subregion B and subregion C distribution queue port.For example, the corresponding relationship of configuration is QPort_B2A_ SRC (source port of subregion B) -- > QPort_B2A_DST (destination port of subregion A), the QPort_C2A_SRC (source of subregion C Mouthful) -- > QPort_C2A_DST (destination port of subregion A);
3) in subregion A, subregion B, subregion C, the creation of queue port creation service completing port is called.
4) in subregion A, a port list, and the destination port (QPort_B2A_ that will need to pass through processing are created DST, QPort_C2A_DST), it is added to port list;
5) in subregion A, it is ACTIVE that active state of the destination port in port list, which is respectively set,;
6) message is sent periodically through respective queue port in the process in subregion B and subregion C;
7) it calls port list to receive service in the process of subregion A, prison while to multiple destination ports can be completed Control and processing;
8) invention effect achieved can be realized according to the execution of above-mentioned work step.

Claims (3)

1. a kind of queue port communication means based on port list, it is characterised in that the following steps are included:
Step 1: creation queue port port list is initially empty;
Step 2: the destination port monitored will be needed to be added in port list;
Step 3: monitoring range is adjusted flexibly by the way that port activity state is arranged according to monitoring needs;
Step 4: service being received by port list while monitoring and handling multiple destination ports, according to the purpose in port list Whether port has that message can receive and its state change carrys out management port listing signal amount, the final access realized to port list Management.
2. a kind of queue port communication means based on port list as described in claim 1, it is characterised in that: the step In 1, when creating queue port port list, the specified maximum destination port number for allowing to be added the port list, creation storage Space, and port list creates a counting semaphore thus, semaphore initial value is 0.
3. a kind of queue port communication means based on port list as described in claim 1, it is characterised in that: the step In 2, a destination port is at most added a port service list, and it is other that when addition checks whether this destination port has been added to Miniport service list, and whether have exceeded the number upper limit that port list allows to be added.
CN201811471404.3A 2018-12-04 2018-12-04 A kind of queue port communication means based on port list Pending CN109542653A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811471404.3A CN109542653A (en) 2018-12-04 2018-12-04 A kind of queue port communication means based on port list

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811471404.3A CN109542653A (en) 2018-12-04 2018-12-04 A kind of queue port communication means based on port list

Publications (1)

Publication Number Publication Date
CN109542653A true CN109542653A (en) 2019-03-29

Family

ID=65853657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811471404.3A Pending CN109542653A (en) 2018-12-04 2018-12-04 A kind of queue port communication means based on port list

Country Status (1)

Country Link
CN (1) CN109542653A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030028681A1 (en) * 2001-08-02 2003-02-06 International Business Machines Corporation Apparatus and method for port sharing among a plurality of server processes
US20110125821A1 (en) * 2009-11-24 2011-05-26 International Business Machines Corporation Service Oriented Architecture Enterprise Service Bus With Universal Ports
WO2013049091A1 (en) * 2011-09-29 2013-04-04 Transact Technologies Incorporated Status monitor for casino print system and corresponding methods for status monitoring
CN103139101A (en) * 2011-11-23 2013-06-05 中国航空工业集团公司第六三一研究所 Implementation method of queuing port for aviation dedicated full-duplex exchange type Ethernet terminal system
WO2016169529A2 (en) * 2016-05-16 2016-10-27 白杨 Bai yang messaging port switch service

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030028681A1 (en) * 2001-08-02 2003-02-06 International Business Machines Corporation Apparatus and method for port sharing among a plurality of server processes
US20110125821A1 (en) * 2009-11-24 2011-05-26 International Business Machines Corporation Service Oriented Architecture Enterprise Service Bus With Universal Ports
WO2013049091A1 (en) * 2011-09-29 2013-04-04 Transact Technologies Incorporated Status monitor for casino print system and corresponding methods for status monitoring
CN103139101A (en) * 2011-11-23 2013-06-05 中国航空工业集团公司第六三一研究所 Implementation method of queuing port for aviation dedicated full-duplex exchange type Ethernet terminal system
WO2016169529A2 (en) * 2016-05-16 2016-10-27 白杨 Bai yang messaging port switch service

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
贠海顺: "《分区操作系统下模块间端口通信机制》", 《信息通信》 *

Similar Documents

Publication Publication Date Title
EP3072260B1 (en) Methods, systems, and computer readable media for a network function virtualization information concentrator
CN101616083B (en) Message forwarding method and device
US20150215228A1 (en) Methods, systems, and computer readable media for a cloud-based virtualization orchestrator
CN105580318A (en) Port mirroring for sampling measurement of network flows
EP3979577B1 (en) Queue congestion control method, device and storage medium
JP6692178B2 (en) Communications system
CN111147403B (en) Message processing method and device, storage medium and electronic device
CN111211999A (en) OVS-based real-time virtual network implementation method
CN111953553A (en) Message detection method, device and system
CN108718258B (en) Quality detection method and equipment for inter-board link
CN115484047A (en) Method, device, equipment and storage medium for identifying flooding attack in cloud platform
CN111209112A (en) Exception handling method and device
RU2687215C1 (en) Method and device for transmitting information on openflow switch functions
CN110677358A (en) Message processing method and network equipment
CN110087226B (en) Flow statistical method and device, storage medium and electronic device
CN109542653A (en) A kind of queue port communication means based on port list
CN109450941B (en) DDoS-resistant SDN controller message scheduling method
CN112272933A (en) Queue control method, device and storage medium
CN111464456B (en) Flow control method and device
CN114938376A (en) Industrial Internet of things based on priority processing data and control method thereof
CN111106977B (en) Data stream detection method, device and storage medium
CN114553880A (en) Distributed task exception handling method and system
WO2023105697A1 (en) Conversion device, conversion method, and conversion program
CN114205254B (en) Flow monitoring method, device, integrated circuit, network equipment and network system
CN115277424B (en) Decision issuing method, device and storage medium in software defined network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190329

RJ01 Rejection of invention patent application after publication