CN104468250B - Message treatment method and system in TR069 tests - Google Patents
Message treatment method and system in TR069 tests Download PDFInfo
- Publication number
- CN104468250B CN104468250B CN201310426049.9A CN201310426049A CN104468250B CN 104468250 B CN104468250 B CN 104468250B CN 201310426049 A CN201310426049 A CN 201310426049A CN 104468250 B CN104468250 B CN 104468250B
- Authority
- CN
- China
- Prior art keywords
- node
- message
- work order
- rpc
- request message
- 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
Landscapes
- Computer And Data Communications (AREA)
- Debugging And Monitoring (AREA)
- Multi Processors (AREA)
Abstract
Message treatment method and system in being tested the present invention provides a kind of TR069.The method includes:By user node to agent node initial request messages;The request message is distributed by the agent node;The request message of the distribution is received, processing obtains corresponding handling result, and the handling result is back in the agent node;The handling result is returned to, and show by the user node by the agent node.The system comprises:User node, for agent node initial request messages;Agent node, for distributing the request message;Executive device, for receiving the request message of the distribution, processing obtains corresponding handling result, and the handling result is back in the agent node;The agent node is additionally operable to the handling result be returned to the user node, and show.Network communication bottleneck can be eliminated using the present invention, improve oncurrent processing ability.
Description
Technical field
The present invention relates to the communication technology, message treatment method and system in being tested more particularly to a kind of TR096.
Background technology
With various ustomer premises access equipments development and be widely used, carry out TR069 tests for various ustomer premises access equipments
Need it is also more and more, usually the same time have multiple client for same ustomer premises access equipment carry out parameter configuration, also usually
Parameter configuration is carried out for different user end equipment in same time multiple client, wherein, the parameter configuration carried out is all abided by
Follow TR069 communications protocol, the data processing of generation etc. calculating completed by end host, all clients all with terminal master
Machine is connected.
However, end host possesses very high performance in the test process of this TR069, but due to all visitors
Family end is connected on end host, and all calculating is completed by end host, and therefore, there will be the bottles of network communication
Neck can not improve the ability of its concurrent processing.
Invention content
Based on this, it is necessary to be connected on end host for due to all clients, and all calculating by
End host complete and caused by network communication bottleneck, the technical issues of its oncurrent processing ability can not be improved, provide a kind of energy
Network communication bottleneck is eliminated, improves the message treatment method in the TR069 tests of oncurrent processing ability.
In addition, there is a need to, offer is a kind of to eliminate network communication bottleneck, in the TR069 tests for improving oncurrent processing ability
Message handling system.
A kind of message treatment method in TR069 tests, includes the following steps:
By user node to agent node initial request messages;
The request message is distributed by the agent node;
The request message of the distribution is received, processing obtains corresponding handling result, and the handling result is back to
In the agent node;
The handling result is returned to, and show by the user node by the agent node.
The request message is inquiry request message in one of the embodiments,;It is described to be distributed by the agent node
The step of request message, includes:
The inquiry request message received is added to the corresponding query messages queue of the user node;
Inquiry request message is extracted from the query messages queue, by the agent node and is automatically configured between node
Connection the inquiry request message be sent to automatically configure node.
The request message is RPC request messages in one of the embodiments, described to distribute institute by the agent node
The step of stating request message includes:
The RPC request messages received are added to request message queue;
RPC request messages are extracted from the request message queue, initiate the agent node and are automatically configured between node
Connection, the RPC request messages are sent to and automatically configure node, and block wait for respective handling result.
The request message for receiving the distribution, processing obtain corresponding handling result in one of the embodiments,
And the step that the handling result is back in the agent node includes:
It verifies the legitimacy of the RPC request messages, judges whether the RPC request messages are received, if it is not, then generating
RPC performs failed message, and returns to the agent node, if so,
RPC interactions are carried out by the interface channel automatically configured between node and equipment under test, and are generated corresponding
Handling result;
It sends in the handling result to the agent node.
The request message is work order request message in one of the embodiments, described to be distributed by the agent node
The step of request message, includes:
Work order reservation message is generated by the agent node, the work order reservation message is sent to and automatically configures node
In to carry out work order reservation, judge whether the reservation succeeds, if so,
It generates work order and performs message, and the work order is performed into message and is added to request message queue;
The work order is extracted from the request message queue and performs message, and work order execution message is sent to automatically
Configuration node.
The request message for receiving the distribution, processing obtain corresponding handling result in one of the embodiments,
And the step that the handling result is back in the agent node includes:
Work order execution message described in node processing is automatically configured by described, the generation response work order performs connecing for message
Message is performed by work order;
Message generation work order task message is performed, and be sent to work order according to the work order that receives by the agent node
Perform node;
Node is performed from the work order, the work order task is issued to the agent node according to the work order task message
The corresponding work order RPC request messages of message;
By the work order RPC request messages for automatically configuring node Receiving Agent node and sending, with by described automatic
Configuration node completes the processing of work order RPC request messages, and returns to handling result;
The work order performs node and detects that the work order task disappears by the handling result that the agent node receives
The corresponding work order of breath has been finished, and generate worksheet as a result, the worksheet result is sent to the generation
Manage node.
A kind of message handling system in TR069 tests, including:
User node, for agent node initial request messages;
Agent node, for distributing the request message;
Executive device, for receiving the request message of the distribution, processing obtains corresponding handling result, and by the place
Reason result is back in the agent node;
The agent node is additionally operable to the handling result be returned to the user node, and show.
The request message is inquiry request message in one of the embodiments, and the executive device is automatically configures
Node;The agent node includes:
Query messages add module, for the inquiry request message received to be added to, the user node is corresponding to be looked into
Ask message queue;
Query messages transfer module for extracting inquiry request message from the request message queue, passes through the agency
The inquiry request message is sent to and automatically configures node by node and the connection automatically configured between node.
The request message is RPC request messages in one of the embodiments, and the executive device is automatically configures section
Point, the agent node include:
RPC asks add module, and the RPC request messages for will receive are added to request message queue;
RPC asks transfer module, for extracting RPC request messages from the request message queue, initiates agency's section
It puts and automatically configures the connection between node, the RPC request messages are sent to and automatically configure node, and it is corresponding to block waiting
Handling result.
The node that automatically configures includes in one of the embodiments,:
Legitimate verification module for verifying the legitimacy of the RPC request messages, judges that the RPC request messages are
It is no to be received, if it is not, authentication failed processing module is then notified, if so, notice interactive module;
The authentication failed processing module performs message for generating RPC, and returns to the agent node;
The interactive module is used to carry out RPC friendships by the interface channel automatically configured between node and equipment under test
Mutually, and corresponding handling result is generated;
As a result sending module, for sending in the handling result to the agent node.
The request message is work order request message in one of the embodiments, and the agent node includes:
Work order preengages module, for generating work order reservation message, the work order reservation message is sent to and automatically configures section
Point judges whether the reservation succeeds, if so, notice performs message add module to carry out work order reservation;
It is described to perform message add module for generating work order execution message, and work order execution message is added to and is asked
Seek message queue;
Message transmission module is performed, message is performed, and by described in for extracting the work order from the request message queue
Work order execution message, which is sent to, automatically configures node.
Executive device includes automatically configuring node in one of the embodiments, and work order performs node;It is described to match automatically
It puts node and includes respond module and request processing module, the work order performs node and issues module and detection module including message;
The respond module performs message for handling the work order, and the generation response work order execution message receives work
It is single to perform message;
The agent node is additionally operable to perform message generation work order task message, and be sent to institute according to the work order that receives
It states work order and performs node;
The message issues module and appoints for issuing the work order to the agent node according to the work order task message
The corresponding work order RPC request messages of message of being engaged in;
The request processing module receives the work order RPC request messages that the agent node is sent, with by described automatic
Configuration node completes the processing of work order RPC request messages, and returns to handling result;
The handling result that the detection module is used to receive by the agent node detects that the work order task disappears
The corresponding work order of breath has been finished, and generate worksheet as a result, the worksheet result is sent to the generation
Manage node.
Message treatment method and system in above-mentioned TR069 tests, initiate request to agent node by user node and disappear
Breath, distributes request message by agent node, automatically configures node after the request message of distribution is received, will be at it
Reason, to obtain corresponding handling result, and is back to agent node, and handling result is returned to user by agent node saves
Point, and show, it enables a user to, by user's node checks handling result, compared with prior art, not need to by one
Station terminal host individually completes all processing, avoids the generation of network communication bottleneck, improves its oncurrent processing ability.
Description of the drawings
Fig. 1 is the flow chart of the message treatment method in TR069 tests in one embodiment;
Fig. 2 is the method flow diagram for distributing request message in one embodiment by agent node;
Fig. 3 is the method flow diagram for distributing request message in another embodiment by agent node;
Fig. 4 is the request message that distribution is received in one embodiment, and processing obtains corresponding handling result, and processing is tied
Fruit is back to the method flow diagram in agent node;
Fig. 5 is the method flow diagram for distributing request message in another embodiment by agent node;
Fig. 6 is the request message that distribution is received in another embodiment, and processing obtains corresponding handling result, and will processing
As a result the method flow diagram being back in agent node;
Fig. 7 is the structure diagram of the message handling system in TR069 tests in one embodiment;
Fig. 8 is the structure diagram of agent node in one embodiment;
Fig. 9 is the structure diagram of agent node in another embodiment;
Figure 10 is the structure diagram that node is automatically configured in one embodiment;
Figure 11 is the structure diagram of agent node in another embodiment;
Figure 12 is the structure diagram of executive device in one embodiment.
Specific embodiment
As shown in Figure 1, in one embodiment, the message treatment method in a kind of TR069 tests includes the following steps:
Step S10, by user node to agent node initial request messages.
In the present embodiment, user node is the client that user triggers the various operations of various TR069 tests, by using
Family node triggering and the relevant various operations of equipment under test, to generate corresponding request message.Wherein, which will include
Inquiry request message, RPC(Remote procedure call, Remote Procedure Call)Request message and work order request message.
For example, user can be by RPC configurations relevant in user's querying node equipment under test and work order business, it can also
The operation interface provided by user node is configured and is tested to equipment under test.
Step S30 distributes request message by agent node.
In the present embodiment, agent node will receive the request message initiated by user node, at this point, will be according to preset
Message distribution mechanism makes requests on the distribution of message.
Further, it during actually runing, due to being connected with agent node, and initiates request to agent node and disappears
The user node of breath is mostly multiple, and therefore, after the request message for receiving user node initiation, request message is stored in
In message queue, in order to be distributed processing to the request message in message queue one by one, the orderly of Message Processing is improved
Property.
Step S50, receives the request message of distribution, and processing obtains corresponding handling result, and handling result is back to
In agent node.
In the present embodiment, after the request message of distribution is received, it will be handled to obtain everywhere according to request message
Reason is as a result, and feed back in agent node.
Further, the message received by agent node is typically diversified, therefore, receive message it
Afterwards, it will determine that whether the message is current in the handling result of waiting, if so, it is anti-to user node to enter step S70
Feedback contains the handling result of processing data, if it is not, then generating the handling result of processing failure, and is fed back to user node, with
Report to user's processing failure.
Handling result is returned to user node, and show by step S70 by agent node.
As shown in Fig. 2, in one embodiment, which is inquiry request message, above-mentioned steps S30 includes:
The inquiry request message received is added to the corresponding query messages queue of user node by step S310a.
In the present embodiment, user initiates the network connection between user node and agent node to pass through by user node
The network connection sends inquiry request message to agent node, at this point, user node will block with etc. query result to be returned.
The message received is handled according to message distribution mechanism pre-set in agent node, specifically, right
For inquiry request message, each user node for having initiated inquiry request message has its corresponding inquiry in agent node
Message queue, therefore, agent node will be searched with initiating the inquiry request message after the inquiry request message received
The corresponding query messages queue of user node, by the inquiry request message received be added to query messages queue in, with according to
The secondary processing for carrying out inquiry request message.
Step S330a, from query messages queue extract inquiry request message, by agent node and automatically configure node it
Between connection inquiry request message be sent to automatically configure node.
In the present embodiment, inquiry request message is extracted successively in query messages queue, initiate agent node and match automatically
The connection between node is put, inquiry request message is sent to and is automatically configured in node, at this point, agent node will continue with
Next inquiry request message in query messages queue automatically configures node response inquiry request message institute without blocking to wait for
The handling result of return.
In message treatment method in above-mentioned TR069 tests, the distribution of inquiry request message is realized by agent node, automatically
Configuration node will be distributed and be handled after the message for receiving distribution, and then be returned handling result by the connection of initiation
Back to agent node, the treatment mechanism of this inquiry request message will further improve the parallel processing energy in TR069 tests
Power.
Further, if detect agent node have been received by automatically configure node return contain inquiry data
Handling result alternatively, communication abnormality occurs for the connection for detecting agent node and automatically configuring between node, will terminate agency's section
Point and the communication automatically configured between node interact, and close connection.
Further, agent node, will be at return after the handling result for automatically configuring node return is received
Extraction obtains inquiry data in reason result, and inquiry data are sent to user node, and user's section is shown in order to inquire data
In the operation interface that point provides.
Further, user node is abnormal in the inquiry data or the communication between agent node for receiving return
When, close the connection between user node and agent node.
As shown in figure 3, in one embodiment, which is RPC request messages, above-mentioned steps S30 includes:
The RPC request messages received are added to request message queue by step S310b.
In the present embodiment, RPC requests are initiated by user node, to generate RPC request messages, and blocks and waits for RPC please
The handling result asked is shown in the operation interface for being provided handling result in user node.
Further, user node is initiated the connection so that RPC request messages are sent in agent node, and agent node receives
It will be added in corresponding request message queue after to the RPC request messages transmitted by user node, it please to carry out RPC successively
Ask the processing of message.
Step S330b, from request message queue extract RPC request messages, initiate agent node and automatically configure node it
Between connection, RPC request messages are sent to and automatically configure node, and block wait for respective handling result.
In the present embodiment, agent node will take out RPC request messages from request message queue, initiate and automatically configure section
Connection between point, the RPC request messages of taking-up are sent to and automatically configure node, at this point, agent node will be blocked straight
To the handling result for receiving return.
As shown in figure 4, in one embodiment, above-mentioned steps S50 includes the following steps:
Step S510b, verify RPC request messages legitimacy, judge whether RPC request messages are received, if it is not, then into
Enter step S520b, if so, entering step S530b.
In the present embodiment, node is automatically configured in the RPC request messages received, will first verify that RPC request messages
Legitimacy, if legitimate verification automatically configured if node will receive the RPC request, start to distribute and handle RPC request
Message, if it is not, then automatically configuring node refusal RPC requests.
Further, after the legitimate verification of RPC request messages, generation is verified message and is returned by agent node
Back to user node, to realize to the Real-time Feedback of message processing procedure in TR069 tests, in order to which user holds Message Processing
Progress.
Step S520b, generation RPC perform failed message, and return to agent node.
In the present embodiment, the legitimate verifications of RPC request messages not by when, automatically configure node and have rejected RPC requests,
It will be unable to handle current RPC request messages, therefore, generation RPC performs failed message, and it is to work as which, which performs failed message,
RPC execution failed messages are returned to agent node, are returned to accordingly by agent node by the handling result of preceding RPC request messages
User node, with the display of the RPC that is currently triggered by the operation interface that user node the provides handling result asked.
Step S530b carries out RPC interactions, and generate by automatically configuring the interface channel between node and equipment under test
Corresponding handling result.
In the present embodiment, the legitimate verifications of RPC request messages by when, automatically configuring node will establish and equipment under test
Connection, and then by automatically configure the interface channel between node and equipment under test carry out RPC interactions, this is, RPC request disappear
The corresponding message package of breath will be passed in equipment under test, and the message package that equipment under test parsing receives is therein to obtain
RPC methods, and then the RPC methods for parsing and obtaining are locally executed in equipment under test, corresponding handling result is generated, and by matching automatically
Node and agent node are put to user node feedback processing as a result, handling result is shown in operation circle that user node provides
In face.
Further, it will be SOAP to automatically configure the message transmitted between node and equipment under test(Simple Object
Access Protocol, Simple Object Access Protocol)What the form of message package was closed, it is filled with the data format of SOAP
In HTTP backpack bodies.In fact, soap message packet is by SOAP Head(SOAP heads)With SOAP Body(SOAP bodies)Composition
XML document.
Step S540b is sent in handling result to agent node.
In the present embodiment, automatically configure node complete RPC interaction after, will return generation handling result, with processing
RPC request messages are completed, at this point, by the connection between closing user node and agent node.
Further, obstruction is waited for it to return by agent node after RPC request messages are sent to automatically configures node
Corresponding handling result is returned, therefore, by setting and the corresponding counter of RPC request messages, opens the overtime machine of RPC processing
System, to judge whether time-out.
In the handling result for receiving return, the handling result will be parsed, to judge whether the handling result is current
The response of RPC request messages waited for if so, closing counter, exits timeout treatment, if it is not, then continuing through meter
Number device carries out timing.
If determining current RPC processing time-out, generate RPC and perform failed message, and return to user node, to accuse
The RPC request message processing failures currently initiated of user, and close the connection between user node and agent node.
As shown in figure 5, in one embodiment, which is work order request message, above-mentioned steps S30 includes as follows
Step:
Step S310c generates work order reservation message by agent node, work order reservation message is sent to and automatically configures section
To carry out work order reservation in point, judge whether reservation succeeds, if so, S320c is entered step, if it is not, then entering step
S330c。
In the present embodiment, user can set certain work order by user node, to test various equipment under tests,
Wherein, the RPC method names and corresponding parameter that work order performs required for having recorded.
User in user node by setting certain work order to initiate work order request message, to establish user node and agency
The work order request message of initiation is transferred in agent node by the connection between node by the connection.
Work order request message will be parsed by receiving the agent node of work order request message, to be carried out by work order request message
Legitimate verification judges whether to receive the execution of the work order, if so, work order reservation message is generated according to work order request message,
Progress work order reservation in node is automatically configured so that work order reservation message to be sent to.
If the legitimate verification of work order request message does not pass through, the execution of work order is had rejected, then generates work order and performs failure
Message, and user node is returned to, at this point, also by the connection between closing agent node and user node.
Step S320c, generation work order performs message, and work order is performed message and is added to request message queue.
Step S330c, generation reservation failed message, and return to user node.
In the present embodiment, agent node preengages failure to the work order for automatically configuring node progress, then obtains failure cause, with
Generation reservation failed message, wherein, failure cause is closed in the reservation failed message of generation.
Step S340c performs message, and work order execution message is sent to and is matched automatically from request message queue extraction work order
Put node.
In the present embodiment, agent node performs message by taking out work order in request message queue, establishes agent node and oneself
The work order execution message of taking-up is sent to and automatically configures in node, at this point, agent node by the connection between dynamic configuration node
By handling results or time-out to be returned such as obstructions.
As shown in fig. 6, in one embodiment, above-mentioned steps S50 includes the following steps:
Step S510c performs message by automatically configuring node processing work order, and generation response work order performs the receiving of message
Work order performs message.
In the present embodiment, automatically configure node and reported to by the work order execution message that receives of generation response work order execution message
Agent node currently needs the work order performed that can start to perform, if automatically configuring node response work order performs message failure,
Agent node will generate work order end message, and return to user node and perform failure to report to work order.
Step S520c performs message generation work order task message, and be sent to work by agent node according to work order is received
It is single to perform node.
In the present embodiment, agent node, which receives, to be automatically configured the work order that receives that node sent out and performs message, illustrate automatically
Configuration node can perform the work order, therefore, message will be performed according to work order and generates corresponding work order task message, to be sent to work
It is single to perform in node.
Step S530c performs node from work order and issues work order task message pair to agent node according to work order task message
The work order RPC request messages answered.
In the present embodiment, work order performs node and is used to find corresponding RPC methods, Jin Ersheng according to work order task message
Into the corresponding work order RPC request messages of every RPC methods, and will by the connection that work order is performed between node and agent node
The work order RPC request messages of generation are issued in agent node.
Step S540c, the work order RPC request messages sent by automatically configuring node Receiving Agent node, with by certainly
Dynamic configuration node completes the processing of work order RPC request messages, and returns to handling result.
In the present embodiment, work order RPC request messages are added in request message queue by agent node, successively extraction request
Work order RPC request messages in message queue, which are sent to, to be automatically configured in node, and block waiting automatically configure node return should
The handling result of work order RPC request messages, and open timeout mechanism, the handling result waiting for receiving return or occurs time-out
Afterwards, the connection automatically configured between node and agent node is closed.
Step S550c, work order perform node and detect work order task message by the handling result that agent node receives
Corresponding work order has been finished, and generates worksheet as a result, worksheet result is sent to agent node.
In the present embodiment, treating that work order is performed in nodal test to work order needs the RPC performed methods all to perform
Bi Shi will generate worksheet as a result, to report to current work order by issuing for worksheet result and be disposed and close
Close the connection between work order execution node and agent node.
Above-mentioned user node, agent node automatically configure node and work order and perform node one will be integrated in by network
In working environment, that is to say, that can independently be deployed on the different computers of consolidated network environment, can also be deployed in same
On the same computer of network, the transmission of mutual message is using C/S frameworks, i.e. user terminal/server framework, client and
Communication between server will use Python http protocol standards.
As shown in fig. 7, in one embodiment, the message handling system in a kind of TR069 tests include user node 10,
Agent node 30 and executive device 50.
User node 10, for agent node initial request messages.
In the present embodiment, user node 10 is the client that user triggers the various operations of various TR069 tests, is passed through
User node 10 triggers and the relevant various operations of equipment under test, to generate corresponding request message.Wherein, which will
Include inquiry request message, RPC(Remote procedure call, Remote Procedure Call)Request message and work order request
Message.
For example, user can inquire relevant RPC configurations and work order business in equipment under test by user node 10, also may be used
Equipment under test is configured and is tested with the operation interface provided by user node 10.
Agent node 30, for distributing request message.
In the present embodiment, agent node 30 will receive the request message initiated by user node 10, at this point, will be according to pre-
If message distribution mechanism make requests on the distribution of message.
Further, it during actually runing, initiates to ask due to agent node 10 being connected, and to agent node 30
The user node 10 for seeking message is mostly multiple, and therefore, after the request message for receiving the initiation of user node 10, request is disappeared
Breath is stored in message queue, in order to be distributed processing to the request message in message queue one by one, is improved at message
The order of reason.
Executive device 50, for receiving the request message of distribution, processing obtains corresponding handling result, and by handling result
It is back in agent node 30.
In the present embodiment, after the request message of distribution is received, it will be handled to obtain everywhere according to request message
Reason is as a result, and feed back in agent node 30.
Further, the message received by agent node 30 is typically diversified, therefore, receive message it
Afterwards, it will determine that whether the message is current in the handling result of waiting, if so, notification agent node 30 is to user node
10 feedbacks contain the handling result of processing data, if it is not, then generating the handling result of processing failure, and anti-to user node 10
Feedback, to report to user's processing failure.
Agent node 30 is additionally operable to handling result be returned to user node 10, and show.
As shown in figure 8, in one embodiment, which is inquiry request message, which is automatic
Configuration node 510, agent node 30 include query messages add module 310a and query messages transfer module 330a.
Query messages add module 310a, it is corresponding for the inquiry request message received to be added to user node 10
Query messages queue.
In the present embodiment, user initiates the connection between user node 10 and agent node 30 to lead to by user node 10
Cross the network connection and send inquiry request message to agent node 30, at this point, user node 10 will block with etc. to be returned look into
Ask result.
Query messages add module 310a is according to message distribution mechanism pre-set in agent node 30 to receiving
Message is handled, specifically, for inquiry request message, each user node 10 for having initiated inquiry request message exists
Agent node 30 has its corresponding query messages queue, therefore, agent node 30 after the inquiry request message received,
The 10 corresponding query messages queue of user node with initiating the inquiry request message, the inquiry request that will be received will be searched
Message is added in query messages queue, to carry out the processing of inquiry request message successively.
Query messages transfer module 330a for extracting inquiry request message from request message queue, passes through agent node
30 and the connection that automatically configures between node 510 inquiry request message is sent to and automatically configures node 510.
In the present embodiment, query messages transfer module 330a extracts inquiry request message successively in query messages queue,
It initiates agent node 30 and automatically configures the connection between node 510, inquiry request message is sent to and automatically configures node
In 510, at this point, next inquiry request message that agent node 30 will be continued in query messages queue, without obstruction etc.
Node 510 to be automatically configured responds the handling result that inquiry request message is returned.
In message handling system in above-mentioned TR069 tests, the distribution of inquiry request message is realized by agent node 30, from
Dynamic configuration node 510 will be distributed and be handled after the message for receiving distribution, and then will be handled by the connection of initiation
As a result return to agent node 30, the treatment mechanism of this inquiry request message will further improve it is in TR069 tests and
Row processing capacity.
Further, if detect agent node 30 have been received by automatically configure node 510 return contain inquiry
The handling result of data, alternatively, communication abnormality occurs for the connection for detecting agent node 30 and automatically configuring between node 510,
It will terminate agent node 30 and automatically configure the communication between node 510 to interact, close connection.
Further, agent node 30, will be from return after the handling result for automatically configuring the return of node 510 is received
Handling result in extraction obtain inquiry data, to user node 10 send inquiry data, be shown in order to which data will be inquired
In the operation interface that user node 10 provides.
Further, user node 10 occurs in the inquiry data for receiving return or the communication between agent node 30
When abnormal, the connection between user node 10 and agent node 30 is closed.
As shown in figure 9, in one embodiment, which is RPC request messages, and the executive device 50 is matches automatically
Node 510 is put, agent node 30 includes RPC request add module 310b and RPC request transfer modules 330b.
RPC asks add module 310b, and the RPC request messages for will receive are added to request message queue.
In the present embodiment, RPC requests are initiated by user node 10, to generate RPC request messages, and blocks and waits for RPC
The handling result of request is shown in the operation interface for being provided handling result in user node 10.
Further, user node 10 is initiated the connection so that RPC request messages are sent in agent node 30, agent node
RPC requests add module 310b in 30 will be added to accordingly after receiving the RPC request messages transmitted by user node
In request message queue, to carry out the processing of RPC request messages successively.
RPC asks transfer module 330b, for extracting RPC request messages from request message queue, initiates agent node 30
And the connection between node 510 is automatically configured, RPC request messages are sent to and automatically configure node 510, and it is corresponding to block waiting
Handling result.
In the present embodiment, the RPC requests transfer module 330b in agent node 30 will take out RPC from request message queue
The connection between node 510 is initiated and automatically configured to request message, and the RPC request messages of taking-up are sent to and are automatically configured
Node, 510 at this point, agent node 30 will be blocked until receiving the handling result of return.
As shown in Figure 10, in one embodiment, it is above-mentioned automatically configure node 510 include legitimate verification module 511b,
Authentication failed processing module 513b, interactive module 515b and result sending module 517b.
Legitimate verification module 511b, for verifying the legitimacy of RPC request messages, judge RPC request messages whether by
Receive, if it is not, authentication failed processing module 513b is then notified, if so, notice interactive module 515b.
In the present embodiment, the legitimate verification module 511b in node 510 is automatically configured in the RPC request messages received
When, it will first verify that the legitimacy of RPC request messages, node 510 is automatically configured if if legitimate verification will receive the RPC
Request, starts to distribute and handles RPC request messages, if it is not, then automatically configuring node 510 refuses RPC requests.
Further, after the legitimate verification of RPC request messages, interactive module 515b generations are verified message simultaneously
User node 10 is returned to by agent node 30, to realize in TR069 tests to the Real-time Feedback of message processing procedure, in order to
User holds the progress of Message Processing.
Authentication failed processing module 513b performs message, and return to agent node 10 for generating RPC.
In the present embodiment, the legitimate verifications of RPC request messages not by when, automatically configure node 510 have rejected RPC please
It asks, will be unable to handle current RPC request messages, therefore, authentication failed processing module 513b generations RPC performs failed message,
The RPC performs the handling result that failed message is current RPC request messages, and RPC execution failed messages are returned to agency's section
Point 30, corresponding user node 10 is returned to by agent node 30, with by the operation interface that user node 10 provides into the trade
The display of the handling result of the RPC requests of preceding triggering.
Interactive module 515b, for carrying out RPC friendships by automatically configuring the interface channel between node 510 and equipment under test
Mutually, and corresponding handling result is generated.
In the present embodiment, the legitimate verifications of RPC request messages by when, automatically configuring node 510 will establish and tested
The connection of equipment, and then interactive module 515b carries out RPC by automatically configuring the interface channel between node 510 and equipment under test
Interaction, this is, the message package corresponding to RPC request messages will be passed in equipment under test, and equipment under test parsing receives
Message package locally executes the RPC methods for parsing and obtaining in equipment under test to obtain RPC methods therein, and generation is corresponding
Handling result, and from automatically configuring node 510 and agent node 30 to 10 feedback processing of user node as a result, with by handling result
It is shown in the operation interface of the offer of user node 10.
Further, it will be SOAP to automatically configure the message transmitted between node 510 and equipment under test(Simple
Object Access Protocol, Simple Object Access Protocol)What the form of message package was closed, with the data lattice of SOAP
Formula is filled in HTTP backpack bodies.In fact, soap message packet is by SOAP Head(SOAP heads)With SOAP Body(SOAP bodies)
The XML document of composition.
As a result sending module 517b, for sending handling result to agent node 30.
In the present embodiment, automatically configure node 510 complete RPC interaction after, automatically configure in node 510 result hair
The handling result for sending module 517b that will return generation completes RPC request messages with processing, at this point, 10 He of user node will be closed
Connection between agent node 30.
Further, agent node 30 is after RPC request messages are sent to automatically configures node 510, will obstruction etc.
It treats that it returns to corresponding handling result, therefore, by setting and the corresponding counter of RPC request messages, opens RPC processing
Timeout mechanism, to judge whether time-out.
In the handling result for receiving return, the handling result will be parsed, to judge whether the handling result is current
The response of RPC request messages waited for if so, closing counter, exits timeout treatment, if it is not, then continuing through meter
Number device carries out timing.
If determining current RPC processing time-out, generate RPC and perform failed message, and return to user node, to accuse
The RPC request message processing failures currently initiated of user, and close the connection between user node 10 and agent node 30.
As shown in figure 11, in one embodiment, request message is work order request message, and it is pre- that agent node 30 includes work order
About module 310c, message add module 330c, failed message generation module 350c are performed and performs message transmission module 370c.
Work order preengages module 310c, for generating work order reservation message, work order reservation message is sent to and automatically configures section
Point 510 judges whether reservation succeeds, if so, notice performs message add module 330c, if it is not, then to carry out work order reservation
Notify failed message generation module 350c.
In the present embodiment, user can set certain work order by user node 10, to be surveyed to various equipment under tests
Examination, wherein, the RPC method names and corresponding parameter that work order performs required for having recorded.
User is by setting certain work order in user node 10, at this point, work order reservation module 310c will initiate work order and ask
Message is sought, to establish the connection between user node 10 and agent node 30, by the connection by the work order request message of initiation
It is transferred in agent node 30.
Work order request message will be parsed by receiving the reservation of the work order in the agent node 30 of work order request message module 310c,
To carry out legitimate verification by work order request message, judge whether to receive the execution of the work order, if so, being asked according to work order
Message generates work order reservation message, and work order reservation message is sent to and automatically configures progress work order reservation in node 510.
If the legitimate verification of work order request message does not pass through, the execution of work order is had rejected, then failed message is notified to generate
Module 350c generation work orders perform failed message, and return to user node 10, at this point, will also close agent node 30 and user
Connection between node 10.
Message add module 330c is performed, message is performed, and work order is performed into message and is added to request for generating work order
Message queue.
Failed message generation module 350c preengages failed message, and return to user node 10 for generating.
In the present embodiment, agent node 30 preengages failure to the work order for automatically configuring the progress of node 510, then failed message is given birth to
Failure cause is obtained into module 350c, to generate reservation failed message, wherein, failure cause is closed in the reservation failure of generation
In message.
Message transmission module 370c is performed, for performing message, and work order is performed from request message queue extraction work order
Message, which is sent to, automatically configures node 510.
In the present embodiment, the execution message transmission module 370c in agent node 30 in request message queue by taking out work order
Message is performed, agent node 30 is established and automatically configures the connection between node 510, the work order taken out is performed message sends
To automatically configuring in node 510, at this point, agent node 30 such as will block at the handling result or time-out to be returned.
As shown in figure 12, in one embodiment, above-mentioned executive device 50 includes automatically configuring node 510 and work order performs
Node 530 automatically configures node 510 and includes respond module 511c and request processing module 513c, and work order performs node 530 and includes
Message issues module 531 and detection module 533.
Respond module 511c performs message for handling work order, and the work order that receives that generation response work order performs message performs
Message.
In the present embodiment, the work order execution message that receives that respond module 511c responds work order execution message by generation reports to
Agent node 30 currently needs the work order performed that can start to perform, if automatically configuring node response work order performs message failure,
Then agent node 30 will generate work order end message, and return to user node 10 and perform failure to report to work order.
Agent node 30 be additionally operable to according to receive work order perform message generation work order task message, and be sent to work order execution
Node 530.
In the present embodiment, agent node 30, which receives, to be automatically configured the work order that receives that node 510 sent out and performs message, explanation
It automatically configures node 510 and can perform the work order, therefore, message will be performed according to work order and generates corresponding work order task message, with
Work order is sent to perform in node 530.
Message issues module 531, for issuing work order task message and correspondence to agent node according to work order task message
Work order RPC request messages.
In the present embodiment, the message that work order is performed in node 530 issues module 531 for being searched according to work order task message
To corresponding RPC methods, and then the corresponding work order RPC request messages of every RPC methods are generated, and pass through work order and perform node
The work order RPC request messages of generation will be issued in agent node 30 by the connection between 530 and agent node 30.
Request processing module 513c, for the work order RPC request messages that Receiving Agent node is sent, with by automatically configuring
Node completes the processing of work order RPC request messages, and returns to handling result.
In the present embodiment, work order RPC request messages are added in request message queue by agent node 30, and extraction successively please
The work order RPC request messages in message queue is asked to be sent to automatically configure in node 510, and block waiting and automatically configure node
510 return to the handling result of work order RPC request messages, and open timeout mechanism, the handling result or hair waiting for receiving return
After raw time-out, the connection automatically configured between node 510 and agent node 30 is closed.
Detection module 533 detects that work order task message institute is right for passing through the handling result that agent node 30 receives
The work order answered has been finished, and generates worksheet as a result, worksheet result is sent to agent node 30.
In the present embodiment, module 533 to be detected, which detects, needs the RPC performed methods to be all finished in work order
When, worksheet will be generated as a result, to report to current work order by issuing for worksheet result and be disposed and close
Work order performs the connection between node 530 and agent node 30.
Above-mentioned user node 10, agent node 30 automatically configure node 510 and work order and perform node 530 and will pass through network
It is integrated in a working environment, that is to say, that it can independently be deployed on the different computers of consolidated network environment, it can also
It is deployed on the same computer of consolidated network, the transmission of mutual message is using C/S frameworks, i.e. client/server frame
Structure, the communication between client and server will use Python http protocol standards.
Message treatment method and system in above-mentioned TR069 tests, initiate request to agent node by user node and disappear
Breath, distributes request message by agent node, automatically configures node after the request message of distribution is received, will be at it
Reason, to obtain corresponding handling result, and is back to agent node, and handling result is returned to user by agent node saves
Point, and show, it enables a user to, by user's node checks handling result, compared with prior art, not need to by one
Station terminal host individually completes all processing, avoids the generation of network communication bottleneck, improves its oncurrent processing ability.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access
Memory, RAM)Deng.
Embodiment described above only expresses the several embodiments of the present invention, and description is more specific and detailed, but simultaneously
Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention
Protect range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. the message treatment method in a kind of TR069 tests, includes the following steps:
By user node to agent node initial request messages;
The request message is distributed by the agent node, the request message is work order request message, including:Pass through the generation
Node generation work order reservation message is managed, the work order reservation message is sent to and is automatically configured to carry out work order reservation in node,
Judge whether the reservation succeeds, if so, generation work order performs message, and the work order is performed into message and is disappeared added to request
Cease queue;The work order is extracted from the request message queue and performs message, and work order execution message is sent to automatically
Configuration node;
Receive the request message of the distribution, processing obtains corresponding handling result, and the handling result is back to described
In agent node;
The handling result is returned to, and show by the user node by the agent node.
2. according to the method described in claim 1, it is characterized in that, the request message is inquiry request message;It is described by institute
It states and includes the step of agent node distributes the request message:
The inquiry request message received is added to the corresponding query messages queue of the user node;
Inquiry request message is extracted from the query messages queue, by the agent node and automatically configures the company between node
It connects the inquiry request message being sent to and automatically configures node.
3. according to the method described in claim 1, it is characterized in that, the request message be RPC request messages, it is described by described
The step of agent node distribution request message, includes:
The RPC request messages received are added to request message queue;
RPC request messages are extracted from the request message queue, the agent node is initiated and automatically configures the company between node
It connects, the RPC request messages is sent to and automatically configure node, and block and wait for respective handling result.
4. according to the method described in claim 3, it is characterized in that, the request message for receiving the distribution, processing obtain
Corresponding handling result, and the step that the handling result is back in the agent node includes:
It verifies the legitimacy of the RPC request messages, judges whether the RPC request messages are received, if it is not, then generating RPC
Failed message is performed, and returns to the agent node, if so,
RPC interactions are carried out by the interface channel automatically configured between node and equipment under test, and generate corresponding processing
As a result;
It sends in the handling result to the agent node.
5. according to the method described in claim 1, it is characterized in that, the request message for receiving the distribution, processing obtain
Corresponding handling result, and the step that the handling result is back in the agent node includes:
Work order execution message described in node processing is automatically configured by described, the generation response work order execution message receives work
It is single to perform message;
Message generation work order task message is performed, and be sent to work order execution according to the work order that receives by the agent node
Node;
Node is performed from the work order, the work order task message is issued to the agent node according to the work order task message
Corresponding work order RPC request messages;
By the work order RPC request messages for automatically configuring node Receiving Agent node and sending, to be automatically configured by described
Node completes the processing of work order RPC request messages, and returns to handling result;
The work order performs node and detects the work order task message institute by the handling result that the agent node receives
Corresponding work order has been finished, and generates worksheet and saved as a result, the worksheet result is sent to the agency
Point.
6. a kind of message handling system in TR069 tests, which is characterized in that including:
User node, for agent node initial request messages;
Agent node, for distributing the request message, the request message is work order request message, including:Work order preengages mould
Block for generating work order reservation message, the work order reservation message is sent to and automatically configures node to carry out work order reservation, is sentenced
Whether the disconnected reservation succeeds, if so, notice performs message add module;The execution message add module is used to generate work
It is single to perform message, and the work order is performed into message and is added to request message queue;Message transmission module is performed, for from described
Request message queue extracts the work order and performs message, and work order execution message is sent to and automatically configures node;
Executive device, for receiving the request message of the distribution, processing obtains corresponding handling result, and the processing is tied
Fruit is back in the agent node;
The agent node is additionally operable to the handling result be returned to the user node, and show.
7. system according to claim 6, which is characterized in that the request message be inquiry request message, the execution
Device is automatically configures node;The agent node includes:
Query messages add module disappears for the inquiry request message received to be added to the corresponding inquiry of the user node
Cease queue;
Query messages transfer module for extracting inquiry request message from the request message queue, passes through the agent node
And the inquiry request message is sent to and automatically configures node by the connection automatically configured between node.
8. system according to claim 6, which is characterized in that the request message is RPC request messages, described to perform dress
It is set to and automatically configures node, the agent node includes:
RPC asks add module, and the RPC request messages for will receive are added to request message queue;
RPC ask transfer module, for from the request message queue extract RPC request messages, initiate the agent node and
The connection between node is automatically configured, the RPC request messages are sent to and automatically configure node, and block waiting respective handling
As a result.
9. system according to claim 8, which is characterized in that the node that automatically configures includes:
Legitimate verification module, for verifying the legitimacy of the RPC request messages, judge the RPC request messages whether by
Receive, if it is not, authentication failed processing module is then notified, if so, notice interactive module;
The authentication failed processing module performs failed message for generating RPC, and returns to the agent node;
The interactive module is used to carry out RPC interactions by the interface channel automatically configured between node and equipment under test,
And generate corresponding handling result;
As a result sending module, for sending in the handling result to the agent node.
10. system according to claim 6, which is characterized in that executive device includes automatically configuring node and work order performs
Node;The node that automatically configures includes respond module and request processing module, and the work order performs node and issued including message
Module and detection module;
The respond module performs message for handling the work order, and the work order that receives that generation responds the work order execution message is held
Row message;
The agent node is additionally operable to perform message generation work order task message, and be sent to the work according to the work order that receives
It is single to perform node;
The message issues module and disappears for issuing the work order task to the agent node according to the work order task message
Cease corresponding work order RPC request messages;
The request processing module receives the work order RPC request messages that the agent node is sent, to be automatically configured by described
Node completes the processing of work order RPC request messages, and returns to handling result;
The handling result that the detection module is used to receive by the agent node detects the work order task message institute
Corresponding work order has been finished, and generates worksheet and saved as a result, the worksheet result is sent to the agency
Point.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310426049.9A CN104468250B (en) | 2013-09-17 | 2013-09-17 | Message treatment method and system in TR069 tests |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310426049.9A CN104468250B (en) | 2013-09-17 | 2013-09-17 | Message treatment method and system in TR069 tests |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104468250A CN104468250A (en) | 2015-03-25 |
CN104468250B true CN104468250B (en) | 2018-06-15 |
Family
ID=52913659
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310426049.9A Active CN104468250B (en) | 2013-09-17 | 2013-09-17 | Message treatment method and system in TR069 tests |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104468250B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108347445B (en) * | 2018-03-19 | 2021-04-27 | 武汉斗鱼网络科技有限公司 | Method and device for realizing remote calling |
CN108846095A (en) * | 2018-06-15 | 2018-11-20 | 联想(北京)有限公司 | A kind of data processing method and device |
CN113157461B (en) * | 2020-01-22 | 2023-09-26 | 北京京东振世信息技术有限公司 | Method and device for transmitting message in task list execution process |
CN111343272B (en) * | 2020-02-26 | 2023-02-07 | 杭州涂鸦信息技术有限公司 | Cross-node request retry method of star network architecture and electronic equipment |
CN113872929B (en) * | 2021-08-16 | 2023-08-29 | 中国人民解放军战略支援部队信息工程大学 | Web application safety protection method, system and server based on dynamic domain name |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101729316A (en) * | 2009-12-29 | 2010-06-09 | 中国联合网络通信集团有限公司 | Test method and system and remote management platform equipment for different types of home gateways |
CN102427480A (en) * | 2011-12-31 | 2012-04-25 | 北京新媒传信科技有限公司 | Application access method in a plurality of application service platform systems |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20010039497A1 (en) * | 2000-03-30 | 2001-11-08 | Hubbard Edward A. | System and method for monitizing network connected user bases utilizing distributed processing systems |
-
2013
- 2013-09-17 CN CN201310426049.9A patent/CN104468250B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101729316A (en) * | 2009-12-29 | 2010-06-09 | 中国联合网络通信集团有限公司 | Test method and system and remote management platform equipment for different types of home gateways |
CN102427480A (en) * | 2011-12-31 | 2012-04-25 | 北京新媒传信科技有限公司 | Application access method in a plurality of application service platform systems |
Non-Patent Citations (1)
Title |
---|
TR-069协议在家庭网关中的实现;熊琦;《中国优秀硕士论文全文数据库 信息科技辑》;20090515;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN104468250A (en) | 2015-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104468250B (en) | Message treatment method and system in TR069 tests | |
CN101257431B (en) | Converse exit passageway remote device management mode | |
CN101163000A (en) | Secondary authentication method and system | |
CN106559405B (en) | Portal authentication method and equipment | |
CN110022294A (en) | A kind of proxy server, Docker system and its right management method, storage medium | |
CN115118705B (en) | Industrial edge management and control platform based on micro-service | |
CN105050088B (en) | A kind of wireless authentication method and the network equipment | |
CN109413649A (en) | A kind of access authentication method and device | |
CN109685483A (en) | Key management system and key management method | |
CN106534129B (en) | Connection control method and device | |
CN103297390A (en) | Method for enabling server to be connected with client-sides reversely | |
CN101656608A (en) | Method and system for single login of Web end of instant messaging device | |
CN102035879B (en) | Server and data processing system using same | |
CN102025748B (en) | Method, device and system for acquiring user name of Kerberos authentication mode | |
CN108023922A (en) | A kind of method, apparatus and system for issuing and setting configuration data | |
CN110311970A (en) | A kind of remote debugging system and its method | |
CN109587169A (en) | A kind of management method and device servicing access | |
CN103116845A (en) | Pay processing system and corresponding transaction processing system | |
CN101968815A (en) | Processing method of concurrent requests | |
CN105407093B (en) | A kind of network access au-thentication method and system | |
CN110062016A (en) | Method and device for trusted service management | |
CN107094157A (en) | A kind of RADIUS safety certifying methods and system based on SDN | |
CN108616393A (en) | A kind of authentication method and device based on ldap server | |
CN103595722B (en) | Data postback method and device in network safety | |
CN107241461A (en) | MAC Address acquisition methods, gateway device, network authentication apparatus and network system |
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 |