CN105306442B - Proxy server and its instruction transmission method - Google Patents
Proxy server and its instruction transmission method Download PDFInfo
- Publication number
- CN105306442B CN105306442B CN201510599158.XA CN201510599158A CN105306442B CN 105306442 B CN105306442 B CN 105306442B CN 201510599158 A CN201510599158 A CN 201510599158A CN 105306442 B CN105306442 B CN 105306442B
- Authority
- CN
- China
- Prior art keywords
- information
- instruction
- session management
- management module
- client
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/10—Architectures or entities
- H04L65/1045—Proxies, e.g. for session initiation protocol [SIP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0807—Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3226—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using a predetermined code, e.g. password, passphrase or PIN
- H04L9/3228—One-time or temporary data, i.e. information which is sent for every authentication or authorization, e.g. one-time-password, one-time-token or one-time-key
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/64—Hybrid switching systems
- H04L12/6418—Hybrid transport
- H04L2012/6445—Admission control
- H04L2012/6448—Medium Access Control [MAC]
- H04L2012/6451—Deterministic, e.g. Token, DQDB
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Multimedia (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of proxy servers, instruction transmission method, the instruction transmission method includes: that interface module receives the instruction from client, and judging whether the instruction from client is real-time command, the real-time command includes the information and command information of destination apparatus;When the instruction from client is real-time command, session management module establishes the online channel between respective objects device according to the information of destination apparatus, and the port numbers in the online channel are bound with respective objects device;Command information is converted to the protocol format of respective objects device by session management module, is then forwarded to respective objects device.Implement technical solution of the present invention, the development cost of client and destination apparatus can be reduced.
Description
Technical field
The present invention relates to communication network areas more particularly to a kind of proxy server and its instruction transmission methods.
Background technique
With the development of science and technology the development of various intelligent terminals is maked rapid progress, so as to each intelligent terminal using more
Convenient more diversity, such as making can easily mutually " call " between each intelligent terminal.But since different intelligent terminal is made
Agreement is different, and bottom operation is difficult, so that the development cost of intelligent terminal is higher.
Summary of the invention
The technical problem to be solved in the present invention is that the defect high for the above-mentioned development cost of the prior art, provides one
Kind proxy server and its instruction transmission method, can reduce the development cost of terminal.
The technical solution adopted by the present invention to solve the technical problems is: constructing a kind of instruction transmission method, comprising:
Interface module receives the instruction from client, and judges whether the instruction from client is real-time command, institute
State the information and command information that real-time command includes destination apparatus;
When the instruction from client is real-time command, session management module is established and phase according to the information of destination apparatus
The online channel between destination apparatus is answered, and the port numbers in the online channel are bound with respective objects device;
Command information is converted to the protocol format of respective objects device by session management module, is then forwarded to respective objects
Device.
Further, further includes:
After the session is completed, session management module discharges the memory headroom of corresponding real-time command and releases tying up for port numbers
It is fixed.
Further, it is established in session management module according to the information of destination apparatus online between respective objects device
Channel, and after the step of port numbers in the online channel and respective objects device are bound, further includes:
Session management module generates token corresponding to the online channel;
Session management module manages port numbers corresponding to different tokens, and maintains the port numbers and respective objects equipment
Between on line state.
The present invention also constructs a kind of instruction transmission method, comprising:
Interface module receives the instruction from client, and judges whether the instruction from client is conditional order, institute
State the information, conditional information and command information that conditional order includes destination apparatus;
When the instruction from client is conditional order, script parsing module is by the conditional information by description language solution
Analysis is machine language;
Logic engine module sends the first notice after receiving the conditional information after parsing, to session management module, and
Condition instantly is monitored according to the conditional information after the parsing, and when condition meets trigger condition instantly, to session management mould
Block sends the second notice;
Session management module is established and respective objects device after receiving first notice according to the information of destination apparatus
Between online channel, and the port numbers in the online channel are bound with respective objects device;Session management module exists
After receiving second notice, command information is converted to the protocol format of respective objects device, is then forwarded to respective objects
Device.
Further, further includes:
After the session is completed, the memory headroom and release tying up for port numbers that session management module release corresponding conditions instruct
It is fixed.
Further, the step of the conditional information is resolved to machine language by description language by script parsing module it
Afterwards, further includes:
Script parsing module generates token corresponding to the online channel;
Session management module manages port numbers corresponding to different tokens, and maintains the port numbers and respective objects equipment
Between on line state.
The present invention also constructs a kind of proxy server, for the instruction from client to be transmitted to destination apparatus, comprising:
Interface module for receiving the instruction from client, and judges whether the instruction from client is that condition refers to
It enables, the conditional order includes information, conditional information and the command information of destination apparatus;
Script parsing module is connected to the interface module, and is used for when the instruction from client is conditional order,
The conditional information is resolved into machine language by description language;
Logic engine module is connected to the script parsing module, and is used for after receiving the conditional information after parsing,
The first notice is sent to session management module;It is also used to monitor condition instantly according to the conditional information after the parsing, and is working as
When lower condition meets trigger condition, the second notice is sent to session management module;
Session management module is connected to the logic engine module, and is used for, after receiving first notice, according to
Online channel between the information foundation of destination apparatus and respective objects device, and by the port numbers in the online channel and accordingly
Destination apparatus is bound;Moreover, command information to be converted to the agreement of respective objects device after receiving second notice
Format is then forwarded to respective objects device.
Further,
The interface module is also used to judge whether the instruction from client is real-time command, the real-time command packet
Include the information and command information of destination apparatus;
The session management module is also attached to the interface module, and for being real-time in the instruction from client
When instruction, the online channel between respective objects device is established according to the information of destination apparatus, and by the online channel
Port numbers are bound with respective objects device, moreover, command information to be converted to the protocol format of respective objects device, then
It is sent to respective objects device;
Further, further includes:
Multiple connection service modules, are connected between the session management module and respective objects device, and for maintaining
The online channel and according to the protocol format carry out information forwarding.
Further,
The session management module is also used to discharge the memory of corresponding real-time command or conditional order after the session is completed
Space and the binding for releasing port numbers.
Further,
The script parsing module is also used to when the instruction from client is conditional order, is generated described online logical
Token corresponding to road;
The session management module is also used to when the instruction from client is real-time command, is generated described online logical
Token corresponding to road;
The session management module is also used to manage port numbers corresponding to different tokens, and maintain the port numbers with
On line state between respective objects equipment.
Implement technical solution of the present invention, has the advantages that
1. because protocol conversion and condition judgement (when needed) all have proxy server completion, so reduce client and
The development cost of destination apparatus makes client and destination apparatus end all be not necessarily to high gauge, integrates moreover, reducing in distinct device
Cost.
2., even if equipment is not online, instruction can also be retained because maintaining connecting method that proxy server can be transferred to maintain
At proxy server end, sent after waiting destination apparatus online, it is possible to reduce the power consumption of client.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is the logic chart of proxy server embodiment one of the present invention;
Fig. 2 is the logic chart of information transmission system embodiment one of the present invention;
Fig. 3 is the flow chart of present invention instruction transmission method embodiment one;
Fig. 4 is the flow chart of present invention instruction transmission method embodiment two;
Fig. 5 is the flow chart of present invention instruction transmission method embodiment three;
Fig. 6 is the flow chart of present invention instruction transmission method example IV;
Fig. 7 is the flow chart of present invention instruction transmission method embodiment five;
Fig. 8 is the flow chart of present invention instruction transmission method embodiment six;
Fig. 9 is the flow chart of present invention instruction transmission method embodiment seven.
Specific embodiment
Fig. 1 is the logic chart of proxy server embodiment one of the present invention, and proxy server is used for will be from the finger of client
Order is transferred to destination apparatus, and the proxy server of the embodiment includes interface module 11, script parsing (ScriptParser)
Module 12, logic engine (LogicalEngine) module 13, session management (sessionmanager) module 14 and multiple connections
Service (socketservice) module 15 ..., 15 ', moreover, script parsing module 12 and session management module 14 respectively with connect
Mouth mold block 11 connects, and logic engine module 13 is connect with script parsing module 12 and session management module 14 respectively, multiple connections
Service module 15 ..., 15 ' also respectively with session management module 14 connect.Illustrate the logical construction of each module separately below:
Interface module 11 starts session, and judge the instruction from client for receiving the instruction from client
For real-time command or conditional order, wherein when the real-time command includes the information and command information of destination apparatus, the condition
Instruction includes information, conditional information and the command information of destination apparatus.ID of the information of destination apparatus for example including destination apparatus,
Password corresponding to destination apparatus, agreement used in destination apparatus etc.;Conditional information for example including when condition, where item
Part, event condition, compound condition etc.;Command information includes order or movement.The interface module 11 is, for example, SPI
(ServiceProgramming Interface, service programming interface) interface module, communication way is much first, can use
RESTAPI allows user to call simultaneously related transmitting information as method of reseptance.
Script parsing module 12 is used in the conditional order from client, by the conditional information by description language solution
Analysis is machine language.
Logic engine module 13 is used for after receiving the conditional information after parsing, sends first to session management module 14
Notice;It is also used to monitor condition instantly according to the conditional information after parsing, and when condition meets trigger condition instantly, to session
Management module 14 sends the second notice.
Session management module 14 is used to be built when the instruction from client is real-time command according to the information of destination apparatus
The vertical online channel between respective objects device, and the port numbers in the online channel are tied up with respective objects device
It is fixed;Moreover, command information to be converted to the protocol format of respective objects device, it is then forwarded to respective objects device;It is also used to
The instruction from client be conditional order when, receive it is described first notice after, according to the information of destination apparatus establish with
Online channel between respective objects device, and the port numbers in the online channel are bound with respective objects device;And
And after receiving second notice, command information is converted to the protocol format of respective objects device, is then forwarded to corresponding
Destination apparatus.
Multiple connection service modules 15 ..., 15 ' for maintaining the online channel and carry out letter according to the protocol format
Breath forwarding, moreover, session management module establishes online channel with respective objects device by connecting service module accordingly.When
So, in other embodiments, can also will connection service module 15 ..., 15 ' with session management module merge into single execution journey
Sequence.
In some preferred embodiments, session management module 14 is also used to after the session is completed, that is, by real-time command or item
After part instruction is sent to destination apparatus, discharges the memory headroom of corresponding real-time command or conditional order and release tying up for port numbers
Fixed, which is used to store online channel information and port binding information, can reduce resource contention in this way and consume excessively,
To which network efficiency utilization rate is promoted to highest.It is corresponding that session management module 14 is also used to manage different tokens (token)
Port numbers, and the on line state between the port numbers and respective objects equipment is maintained, in this way, being not necessarily to when user's broken string
Carrying out again online or logging device can restore online.
In other preferred embodiments, logic engine module 13 is also used to manage, controls and monitor all things instantly
Part (such as whether some event occurs), time (such as whether some time reaches), space are (for example whether reach some position
Set) etc. various conditions.Moreover, all control entries are placed in memory or database, until condition is executed into
Or judgement executes circuit and has terminated, and can allow progress data between all SPI hosts synchronous in this way.
It should be understood that in some embodiments, the instruction from client may only include real-time command, alternatively, only including
Conditional order, correspondingly, the logical construction of proxy server are also changed accordingly, for example, only wrapping in the instruction from client
When including real-time command, script parsing module and logic engine module can be saved.
Fig. 2 is the logic chart of information transmission system embodiment one of the present invention, which includes multiple client
20 ..., 20 ', multiple destination apparatus 30 ..., 30 ' and proxy server 10, proxy server 10 be connected to client 20 ...,
20 ' and destination apparatus 30 ..., between 30 '.The logical construction of proxy server 10 can refer to embodiment shown in FIG. 1, herein not
It repeats.Client 20 ..., 20 ' for application layer represent, including various mobile devices, mobile unit, browser, robot and
The application of various contact users is all in such.Destination apparatus 30 ..., 30 ' be necessarily present on network, or can receive
To in the various on-line environments of network instruction.In one example, (instruction can be real to one instruction of the generation of client 20
Shi Zhiling can also be conditional order) and it is sent to proxy server 10,10 pairs of received instructions of institute of proxy server are handled
And conversion, and pass through transmission of network to destination apparatus 30.
There are two types of instructions from client: real-time command and conditional order, wherein real-time command includes destination apparatus
Information and command information, conditional order include information, conditional information and the command information of destination apparatus.For real-time command, generation
Reason server main purpose is exactly in real time to handle instruction and be transmitted on destination apparatus.For conditional order, agency service
Device needs to parse its logic and is connected in different destination apparatus according to demand, and the triggering of waiting condition sends instructions to mesh again
Device for mark.
Fig. 3 is the flow chart of present invention instruction transmission method embodiment one, which includes:
S11. interface module receives the instruction from client, and judges whether the instruction from client is to refer in real time
It enables, the real-time command includes the information and command information of destination apparatus, if so, thening follow the steps S12;
S12. session management module establishes the online channel between respective objects device according to the information of destination apparatus, and
The port numbers in the online channel are bound with respective objects device;
S13. command information is converted to the protocol format of respective objects device by session management module, is then forwarded to corresponding
Destination apparatus.
Preferably, on the basis of the above embodiments, the instruction transmission method further include:
After the session is completed, session management module discharges the memory headroom of corresponding real-time command and releases tying up for port numbers
It is fixed.
Preferably, after the step S12 of above-described embodiment, further includes:
Session management module generates token corresponding to the online channel;
Session management module manages port numbers corresponding to different tokens, and maintains the port numbers and respective objects equipment
Between on line state.
Fig. 4 is the flow chart of present invention instruction transmission method embodiment two, which includes:
S21. interface module receives the instruction from client, and judges whether the instruction from client is that condition refers to
It enables, the conditional order includes information, conditional information and the command information of destination apparatus, if so, thening follow the steps S22;
S22. the conditional information is resolved to machine language by description language by script parsing module;
S23. it is logical to send first to session management module after receiving the conditional information after parsing for logic engine module
Know, and condition instantly is monitored according to the conditional information after the parsing, and when condition meets trigger condition instantly, to session pipe
It manages module and sends the second notice;
S24. session management module is after receiving first notice, according to the foundation of the information of destination apparatus and respective objects
Online channel between device, and the port numbers in the online channel are bound with respective objects device;Session management mould
Command information is converted to the protocol format of respective objects device after receiving second notice by block, is then forwarded to corresponding
Destination apparatus.
Preferably, on the basis of the above embodiments, further includes:
After the session is completed, the memory headroom and release tying up for port numbers that session management module release corresponding conditions instruct
It is fixed.
Preferably, after step s 22, further includes:
Script parsing module generates token corresponding to the online channel;
Session management module manages port numbers corresponding to different tokens, and maintains the port numbers and respective objects equipment
Between on line state.
Fig. 5 is the flow chart of present invention instruction transmission method embodiment three, in this embodiment, the instruction that client is sent
For a real-time command.The following are instruction transmission flows: client issues a real-time command to interface module by step a1, should
Information (include ID, password, using agreement) of the instruction comprising destination apparatus and command information, interface module are judged after receiving
The received instruction of institute is real-time command, then this log (log) information of start recording, and be packaged all information passes through step
A2 sends it to session management module, and the command information received is converted to destination apparatus immediately and is connect by session management module
The protocol format received, and destination apparatus is sent to through step a3.After destination apparatus receives command information, by step a4 to meeting
Words management module is replied as a result, session management module is sent to interface module through step a5 again after collecting, and interface module is again by it
It is converted into data format specified by interface module, and returns to client through step a6.
Fig. 6 is the flow chart of present invention instruction transmission method example IV, in this embodiment, the instruction that client is sent
For continuous real-time command.In general, in the case where online channel has been established, the reaction time instructed every time can be reduced,
Therefore in the present embodiment, the foundation in online channel just need to be first carried out, the following are instruction transmission flows: client passes through step b1
Channel demand is established to interface module transmission, this demand is transferred directly to meeting by step b2 after record log by interface module
Management module is talked about, session management module establishes fixed online channel to respective objects device according to the specified protocol of destination apparatus
B3, after online Path Setup, immediately by returning token to interface module in step b4, as representing this online channel
b3.Interface module converts thereof into specific protocol format after receiving token, and is sent to client through step b5.Client
End is by the token in this online channel along with command information and relevant parameter etc. are sent to interface module, interface through step b6 together
Module through step b7 is sent to session management module after being converted, and session management module is converted into the association that destination apparatus is received
Format is discussed, and is transferred to destination apparatus through step b8.After destination apparatus receives instruction, result is back to by step b9
Session management module, session management module carry out conversion to it and are sent to interface module by step b10, interface module again into
Row is converted and is sent to client by step b11.Then it is confirmed whether to continue, if still needing to continue transmission instruction, returns to step
Rapid b6, is otherwise sent to interface module by step b12 and terminates online-order, and interface module leads to this demand after record log
It crosses step b13 and informs session management module, session management module closes online channel b3, and implementing result is passed through step b14
It is back to interface module, interface module is back to client by step b15 again after carrying out Data Format Transform to implementing result.
Fig. 7 is the flow chart of information transferring method example IV of the present invention, in this embodiment, finger transmitted by client
Enabling is conditional order, and the conditional order is the instruction that is caused according to event, and the information including destination apparatus, conditional information
And command information, the following are instruction triggers processes: client issues conditional order, the conditional order to interface module through step d1
Information, conditional information and command information including various destination apparatus after interface module record log, are sent out by step d2
It send to script parsing module, conditional information therein is parsed into machine language by description language by script parsing module, and immediately
Generate corresponding token, be then sent to interface module through step d3, interface module it is formatted after again through step
D4 returns to client, and client can issue requirement checking current state according to this token, or even decide whether change condition
Information.In addition, script parsing module sends it to logic engine module after generating machine language, through step d5, logic is drawn
It holds up module and sends the notice for establishing online channel, session pipe to session management module through step d6 according to the conditional information after parsing
Reason module just establishes the online channel d8 with device 1 according to the information of the destination apparatus in conditional order, and it is online logical to obtain this
The port numbers in road, and this port numbers and respective objects device are bound, then logic engine module is replied to through step d7.
After waiting time T, the event (Event) on device 1 occurs, for example, IP Camera (device 1) detects someone's invasion, and
The event information is sent to session management module through step d9, and session management module carries out it after Data Format Transform through step
D10 notification logic engine modules.Logic engine module is pushed away event by third party according to parameter requirements originally in step d11
The service of broadcasting transfers to client.Meanwhile logic engine module is when judging to need triggering command according to conditional information, through step
D12 sends the notice for carrying out protocol conversion to session management module, and session management module carries out received command information
The conversion of protocol format, and the command information after conversion is sent to device 2 through step d13.
Fig. 8 is the flow chart of present invention instruction transmission method embodiment six, in this embodiment, finger transmitted by client
Enabling is conditional order, and the conditional order is the instruction judged according to event condition, and more emphasizes rapid/real-time triggering command
Behavior greatly reduces reaction time (such as being down within 0.8~1.2 second 0.02 second by script).The following are instruction triggers processes: visitor
Family end issues to interface module through step c1 and instructs.Interface module receives and after record log, sends it to foot through step c2
This parsing module, conditional information therein is parsed into machine language by description language by script parsing module, and generates phase immediately
The token answered, is then sent to interface module through step c3, and interface module is returned through step c4 again after formatting to it
To client, client can issue requirement checking current state according to this token, or even whether change conditional information.In addition,
Script parsing module sends it to logic engine module after generating machine language, through step c5, and logic engine module is through step
Rapid c6 sends the notice for establishing online channel to session management module, and session management module establishes the online channel c8 with device 1
And the online channel c9 of foundation and device 2, and the port numbers in two online channels are obtained, and respectively by itself and device 1, device 2
It is bound, then replies to logic engine module through step c7.When establishing the time T after the c8 of channel, device 1 passes through step
C10 returns an event (Event) to session management module, and session management module will be transferred by step c11 after event conversion
To logic engine module, logic engine module determines whether condition meets trigger condition instantly, after meeting all trigger conditions,
Send the notice for carrying out protocol format conversion to session management module through step c13 immediately, session management module is to command information
After carrying out protocol format conversion, life is directly transmitted to device 2 (destination apparatus) according to the port numbers previously obtained in step c14
Enable information.If not replying event without setting, logic engine module can be pushed away via third party in step c12 broadcast service to
Client sends event and occurs and trigger to complete message.
Fig. 9 is the flow chart of information transferring method embodiment six of the present invention, in this embodiment, finger transmitted by client
Enabling is conditional order, and the conditional order is the instruction that is judged according to time conditions, when time conditions meet trigger condition,
It goes to send relevant command information again.The following are instruction triggers processes: client is issued to interface module through step e1 and is instructed, this refers to
Enable include destination apparatus information, conditional information and command information, after interface module record log, be sent to by step e2
To script parsing module, conditional information therein is parsed into machine language by description language by script parsing module, and is produced immediately
Then raw corresponding token is sent to interface module through step e3, interface module it is formatted after again through step e4
Return to client.In addition, script parsing module sends it to logic engine mould after generating machine language, through step e5
Block, the judgement of logic engine module need first to open the device in online channel, and through step e6 announcement session management module, session pipe
Module is managed according to the online channel e8 of notice foundation and destination apparatus, and immediately through port used in step e7 passback.When patrolling
When volume engine modules determine to meet time trigger condition after time T, passes through step e9 announcement session management module and carry out agreement
Format conversion after command information is carried out protocol conversion by session management module, sends the command information after conversion through step e10
To destination apparatus, command information carries out corresponding actions to destination apparatus based on the received, and returns through step e11 to session management module
Implementing result is passed, after session management module formats the received execution result information of institute, then is sent to through step e12
Logic engine module, logic engine module decide whether to be pushed away by step e13 according to parameter setting the service broadcast through the 3rd side for result
Send client to.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should be included within scope of the presently claimed invention.
Claims (10)
1. a kind of instruction transmission method characterized by comprising
Interface module receives the instruction from client, and judges whether the instruction from client is real-time command, the reality
Shi Zhiling includes the information and command information of destination apparatus;
When the instruction from client is real-time command, session management module is established and corresponding mesh according to the information of destination apparatus
Online channel between device for mark, and the port numbers in the online channel are bound with respective objects device;
Command information is converted to the protocol format of respective objects device by session management module, is then forwarded to respective objects dress
It sets;
After the session is completed, session management module discharges the memory headroom of corresponding real-time command and releases the binding of port numbers;Institute
Method is stated applied in proxy server.
2. instruction transmission method according to claim 1, which is characterized in that in session management module according to destination apparatus
Information establishes the online channel between respective objects device, and by the port numbers in the online channel and respective objects device into
After the step of row binding, further includes:
Session management module generates token corresponding to the online channel;
Session management module manages port numbers corresponding to different tokens, and maintains between the port numbers and respective objects equipment
On line state.
3. a kind of instruction transmission method characterized by comprising
Interface module receives the instruction from client, and judges whether the instruction from client is conditional order, the item
Part instruction includes information, conditional information and the command information of destination apparatus;
When the instruction from client is conditional order, script parsing module is resolved to the conditional information by description language
Machine language;
Logic engine module sends first to session management module and notifies after receiving the conditional information after parsing, and according to
Conditional information after the parsing monitors condition instantly, and when condition meets trigger condition instantly, sends out to session management module
Send the second notice;
Session management module is established between respective objects device after receiving first notice according to the information of destination apparatus
Online channel, and the port numbers in the online channel are bound with respective objects device;Session management module is receiving
After second notice, command information is converted to the protocol format of respective objects device, is then forwarded to respective objects device;
The method is applied in proxy server.
4. instruction transmission method according to claim 3, feature in, further includes:
After the session is completed, the binding of the memory headroom of session management module release corresponding conditions instruction and releasing port numbers.
5. instruction transmission method according to claim 3, which is characterized in that in script parsing module by the conditional information
After the step of resolving to machine language by description language, further includes:
Script parsing module generates token corresponding to the online channel.
6. a kind of proxy server, for the instruction from client to be transmitted to destination apparatus characterized by comprising
Interface module for receiving the instruction from client, and judges whether the instruction from client is conditional order, institute
State the information, conditional information and command information that conditional order includes destination apparatus;
Script parsing module is connected to the interface module, and is used for when the instruction from client is conditional order, by institute
It states conditional information and machine language is resolved to by description language;
Logic engine module is connected to the script parsing module, and is used for after receiving the conditional information after parsing, Xiang Hui
It talks about management module and sends the first notice;It is also used to monitor condition instantly according to the conditional information after the parsing, and in item instantly
When part meets trigger condition, the second notice is sent to session management module;
Session management module is connected to the logic engine module, and is used for, after receiving first notice, according to target
The information of device establishes the online channel between respective objects device, and by the port numbers and respective objects in the online channel
Device is bound;Moreover, command information to be converted to the agreement lattice of respective objects device after receiving second notice
Formula is then forwarded to respective objects device.
7. proxy server according to claim 6, which is characterized in that
The interface module is also used to judge whether the instruction from client is real-time command, and the real-time command includes mesh
The information and command information of device for mark;
The session management module is also attached to the interface module, and for being real-time command in the instruction from client
When, the online channel between respective objects device is established according to the information of destination apparatus, and by the port in the online channel
It number is bound with respective objects device, moreover, command information to be converted to the protocol format of respective objects device, is then sent
To respective objects device.
8. proxy server according to claim 7, which is characterized in that further include:
Multiple connection service modules, are connected between the session management module and respective objects device, and for remaining described
Online channel and according to the protocol format carry out information forwarding.
9. proxy server according to claim 7, which is characterized in that
The session management module is also used to discharge the memory headroom of corresponding real-time command or conditional order after the session is completed
And release the binding of port numbers.
10. proxy server according to claim 7, which is characterized in that
The script parsing module is also used to generate the online channel institute when the instruction from client is conditional order
Corresponding token;
The session management module is also used to generate the online channel institute when the instruction from client is real-time command
Corresponding token;
The session management module is also used to manage port numbers corresponding to different tokens, and maintains port numbers and corresponding
On line state between target device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510599158.XA CN105306442B (en) | 2015-09-17 | 2015-09-17 | Proxy server and its instruction transmission method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510599158.XA CN105306442B (en) | 2015-09-17 | 2015-09-17 | Proxy server and its instruction transmission method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105306442A CN105306442A (en) | 2016-02-03 |
CN105306442B true CN105306442B (en) | 2018-12-25 |
Family
ID=55203197
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510599158.XA Active CN105306442B (en) | 2015-09-17 | 2015-09-17 | Proxy server and its instruction transmission method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105306442B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106878467B (en) * | 2017-04-07 | 2023-06-16 | 同方威视技术股份有限公司 | Method for remotely controlling equipment and remote control system |
CN107276994A (en) * | 2017-05-31 | 2017-10-20 | 沃太能源南通有限公司 | The communication management system and method for a kind of energy-storage system |
CN110191165B (en) * | 2019-05-20 | 2023-05-12 | 深圳前海微众银行股份有限公司 | Method and device for processing code execution request |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1722663A (en) * | 2004-07-13 | 2006-01-18 | 联想(北京)有限公司 | A proxy server system and method for realizing proxy communication thereof |
CN101404703A (en) * | 2008-11-18 | 2009-04-08 | 中国电信股份有限公司 | Voice gateway and method for implementing voice gateway telemanagement |
CN102340528A (en) * | 2010-07-23 | 2012-02-01 | 捷达世软件(深圳)有限公司 | Data transmission system and method |
WO2014093699A1 (en) * | 2012-12-13 | 2014-06-19 | Qualcomm Incorporated | Loading a re-directed web page on a web browser of a client device in a communications system |
CN104219299A (en) * | 2014-08-27 | 2014-12-17 | 小米科技有限责任公司 | Data transmission method and data transmission device |
-
2015
- 2015-09-17 CN CN201510599158.XA patent/CN105306442B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1722663A (en) * | 2004-07-13 | 2006-01-18 | 联想(北京)有限公司 | A proxy server system and method for realizing proxy communication thereof |
CN101404703A (en) * | 2008-11-18 | 2009-04-08 | 中国电信股份有限公司 | Voice gateway and method for implementing voice gateway telemanagement |
CN102340528A (en) * | 2010-07-23 | 2012-02-01 | 捷达世软件(深圳)有限公司 | Data transmission system and method |
WO2014093699A1 (en) * | 2012-12-13 | 2014-06-19 | Qualcomm Incorporated | Loading a re-directed web page on a web browser of a client device in a communications system |
CN104219299A (en) * | 2014-08-27 | 2014-12-17 | 小米科技有限责任公司 | Data transmission method and data transmission device |
Also Published As
Publication number | Publication date |
---|---|
CN105306442A (en) | 2016-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2008103103A3 (en) | A method and apparatus for enabling user group services in a communication network | |
CN102006616B (en) | Test system and test method | |
CN109462637A (en) | MR expert's remote collaboration method and system based on power equipment 3D model library | |
CN109327493A (en) | A kind of remote medical monitoring system based on cloud and monitoring method | |
CN105306442B (en) | Proxy server and its instruction transmission method | |
CN108965312A (en) | Remote invocation method, device, system and storage medium | |
CN104410982B (en) | Terminal polymerization and reconstructing method in a kind of Wireless Heterogeneous Networks | |
CN102843784B (en) | Call access method, equipment and system | |
CN109672857A (en) | Monitor the treating method and apparatus of resource | |
WO2011035578A1 (en) | Method and system for visual service flow debugging | |
KR100794416B1 (en) | Method of obtaining the packet charge data for the voice over internet protocol call using session initiation protocol | |
CN114979133B (en) | Deployment method and device for converged communication cloud platform | |
CN112995234A (en) | Media transmission link management method and device | |
CN101171851B (en) | A method for receiving/sending short message by a G net short message center for a CDMA user and the short message gateway thereof | |
CN101453790A (en) | Communication method and device for user terminal | |
CN1946120B (en) | Method and system for realizing telephone list association | |
CN106230915B (en) | A method of realizing function machine intelligence communication | |
CN112422300A (en) | Cloud network private line management method based on block chain, UPF (unified power flow) and area chain platform | |
CN111343196A (en) | Communication system and communication method compatible with multiple communication protocols | |
CN115866535A (en) | Method and system for realizing 5G message access by multiple protocols | |
CN109361915A (en) | A kind of wired network camera mounting test system and method | |
CN109151221A (en) | Call prompting method reminds server and computer readable storage medium | |
CN106685078A (en) | Smart grid remote monitoring system based on Android system | |
CN104144147B (en) | Voice communication method and system in video monitoring | |
CN110098958A (en) | Communications management system and dangerous alarm method suitable for IMS mobile office and intelligent O&M |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |