CN103780573B - The method and system that EPON speech datas are opened in real time - Google Patents
The method and system that EPON speech datas are opened in real time Download PDFInfo
- Publication number
- CN103780573B CN103780573B CN201210394322.XA CN201210394322A CN103780573B CN 103780573 B CN103780573 B CN 103780573B CN 201210394322 A CN201210394322 A CN 201210394322A CN 103780573 B CN103780573 B CN 103780573B
- Authority
- CN
- China
- Prior art keywords
- instruction
- file
- making
- detection
- soft switch
- 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
- Storage Device Security (AREA)
Abstract
The present invention proposes the method and system that EPON speech datas are opened in real time.Interface routine is set between terminal and soft switch interface message processor (IMP), by client checks and data check, the interface routine monitors detection instruction, sends detection instruction and arrive soft switch, receive the detection instruction results file that soft switch is returned, be sent to terminal;Terminal judges detection instruction results file is normal, and first timer has not timed out, and generation makes instruction, and starts second timer;Interface routine monitors making instruction, sends to make to instruct and arrives soft switch, receives the making instruction results file that soft switch is returned, be sent to terminal;Terminal judges make instruction results file normally, and second timer has not timed out, then data creating success, soft switch generation EPON configurations, complete EPON speech datas open-minded in real time.The problem of solving too many levels in EPON opening processes, low manual manufacture data efficiency, high error rate and not strong real-time.
Description
Technical field
The present invention relates to data processing, more particularly to EPON(Ethernet Passive Optical Network, ether
Net EPON)The method and system that speech data is opened in real time.
Background technology
With the construction in light net city, EPON access ways are used widely.Existing EPON access process is related to point
Company, Internet resources center(Referred to as net is provided)And the multiple interagency coordinations of exchange part coordinate.
Branch company initiates SF from local first(Operation flow work order)List is adjusted to provide forwarding SF work orders to exchange to money, net is netted
Portion, exchange part seeing and handled after work order that feedback processing result is provided to net again after processing, finally by net money feedback processing situation
To branch company.
In general, whole process can take 2-3 working day, but if the SF that branch company itself submits is mono- wrong, such as
IP(Internet Protocol, Internet protocol)Address is wrong or number section is wrong, and whole link will retract, and initiate again
One new flow.
In addition, net money functions only as the role of forwarding work order, and non-automatic processing in this flow, belong to redundancy link.
The making of EPON mass datas turns into the bottleneck in opening process, it is impossible to meets and builds and the market demand.Solve
Too many levels present in EPON equipment opening process, manual manufacture data efficiency are low, high error rate and the problems such as not strong real-time,
Turn into an important topic in the present network operation.
The content of the invention
In view of more than, the present invention proposes the method and system that EPON speech datas are opened in real time.
The present invention proposes the method that EPON speech datas are opened in real time, wherein:
Input Ethernet passive optical network(EPON)Data real-time manufacturing web site Internet agreement(IP)Address, display is logged in
Interface;
User name is inputted on login interface and account password is verified;
After being verified, into data configuration interface, in data configuration interface input parameter to complete client checks;
Judge whether client checks pass through, if passed through, into data check, whether checking IP address is reused;
Judge whether data check passes through, if passed through, terminal generation detection instruction, and start first timer, the inspection
Surveying instruction includes checking whether node number is available and checks whether IP address repeats;
Interface routine is set between terminal and soft switch interface message processor (IMP), the interface routine monitors detection instruction, sends inspection
Survey instruction and arrive soft switch, receive the detection instruction results file that soft switch is returned, and be sent to terminal, wherein, detection instruction knot
Fruit file includes the content of returning result number and returning result;
Whether terminal judges detection instruction results file is normal, and first timer has not timed out, if it is, terminal generation system
Instruct, and start second timer;
Interface routine monitors making instruction, sends to make to instruct and arrives soft switch, receives the making instruction that soft switch is returned
Destination file, and terminal is sent to, wherein, making instruction generates the instruction of EPON configurations for soft switch;
Whether terminal judges make instruction results files normal, and second timer has not timed out, if it is, data creating into
Work(, soft switch generation EPON configurations, completion EPON speech datas are open-minded in real time, otherwise, returned data configuration interface, wherein, system
Make content of the instruction results file including returning result number and returning result.
Further, interface routine interacts the following operation of execution with soft switch:
Interface routine calls transmission control protocol(TCP)Socket(SOCKET)Interface message processor (IMP) in connection, passes through user name
With password login interface message processor (IMP), the legitimacy certification of interface message processor (IMP) docking port program is completed;
The making instruction of interface routine is forwarded to soft switch by interface message processor (IMP), signs in soft switch, completes soft switch to data
Make the legitimacy certification of user;
Storage detection instruction and the file of making instruction that interface routine selection is opened in real time, to read file;
Interface routine selection storage detection instruction results file and the file for making instruction results file, refer to record
Make implementing result.
Further, interface routine performs following operate after data creating success:
A, startup monitor flow, monitor and detection command file or the generation for making command file in real time;
B, determine whether detection command file or make command file generation, if it is, according to detection command file or
The generation time for making command file is ranked up, and the detection command file generated earliest or system are taken out from the queue after sequence
Make command file, instructing or make instruction by subsequent detection according to filename is sent to corresponding soft switch, otherwise, returns to A;
C, one detection instruction of reading make instruction;
Whether D, verification detection instruction or making instruction are correct, if correctly, sending interface message processor (IMP), are handled by soft switch,
And Log Directory is write the result into, otherwise, then report an error, order is not in allowed limits, and result is write into daily record mesh
Record;
E, judge whether also detection instruction or make instruction, if it has, return to C, otherwise, perform F;
F, judge whether also detection command file or make command file, if it has, returning to C, otherwise, return to A.
Further, in interface routine implementation procedure, monitoring file will be locked, and monitoring mesh is included in monitoring file
Be stored with detection command file or making command file in record and Log Directory, the monitored directory, is stored with the Log Directory
Result file, newly-generated detection command file or making command file will not be included and this time perform scope, treat all to hold
Go after above-mentioned flow, command file or making command file and newly-generated detection command file or making are detected by remaining
Command file is repeated together.
Further, client checks include herein below:
IP address is correct, and not comprising any non-digital content, and IP address range is within the scope of configuration;
Originate physical number and be less than end physical number;
Originate terminal identifier(TID)Difference with end TID is the port number of equipment, should be with end physics number
The value of code-starting physical number+1 is identical.
Further, think normal when returning result number is equal to detection instruction strip number in detection instruction results file, make
Returning result number, which is equal to when making instruction strip number, in instruction results file thinks normal.
The present invention also proposes the system opened in real time of EPON speech datas, including terminal, soft switch and is arranged on terminal
With the interface routine between soft switch interface message processor (IMP), wherein:
Terminal includes:
Unit is logged in, is configured in input Ethernet passive optical network(EPON)During data real-time manufacturing website IP, display
Login interface for inputting user name and account password;
Legitimacy verifies unit, is configured at verification user name and whether account password is legal;
Client checks unit, is configured to validated user and provides data configuration interface, is inputted according at data configuration interface
Parameter complete client checks;
Data check unit, is configured in client checks by rear, carries out data check, whether checking IP address repeats to make
With;
Instruction generation unit is detected, is configured in data check by rear, generation detection instruction, and start the first timing
Device, detection instruction includes checking whether node number is available and checks whether IP address repeats;
Instruction results judging unit is detected, is configured at and judges whether detection instruction results file is normal, and first timer
Have not timed out, if it is, being continued executing with by making instruction generation unit, otherwise, return to client verification unit and continue executing with;
Instruction generation unit is made, generation is configured at and makes instruction, and start second timer;
Instruction results judging unit is made, is configured at and whether normally to judge to make instruction results file, and second timer
Have not timed out, if it is, data creating success, soft switch generation EPON configurations, completion EPON speech datas are open-minded in real time, otherwise,
Client checks unit is returned, wherein, making instruction results file includes the content of returning result number and returning result;
Interface routine, including:
Instruction process unit is detected, is configured at and monitors detection instruction, detection instruction is sent and arrives soft switch, receive soft switch
The detection instruction results file of return, and the detection instruction results judging unit of terminal is sent to, wherein, detection instruction results text
Part includes the content of returning result number and returning result;
Instruction process unit is made, is configured at and monitors making instruction, making instruction is sent and arrives soft switch, receive soft switch
The making instruction results file of return, and the making instruction results judging unit of terminal is sent to, wherein, making instruction is soft
Exchange the instruction of generation EPON configurations.
Further, interface routine interacts the following operation of execution with soft switch:
Interface routine calls transmission control protocol(TCP)Socket(SOCKET)Interface message processor (IMP) in connection, passes through user name
With password login interface message processor (IMP), the legitimacy certification of interface message processor (IMP) docking port program is completed;
The making instruction of interface routine is forwarded to soft switch by interface message processor (IMP), signs in soft switch, completes soft switch to data
Make the legitimacy certification of user;
Storage detection instruction and the file of making instruction that interface routine selection is opened in real time, to read file;
Interface routine selection storage detection instruction results file and the file for making instruction results file, refer to record
Make implementing result.
Further, interface routine data creating success after, start in real time monitoring flow, monitor and detection command file or
Make the generation of command file;
Determine whether detection command file or make command file generation, if it is, according to detection command file or system
The generation time for making command file is ranked up, and the detection command file generated earliest or making are taken out from the queue after sequence
Command file, instructs or makes instruction by subsequent detection according to filename and be sent to corresponding soft switch, otherwise, continue to monitor;
A detection instruction or making instruction are read, whether verification detection instruction or making instruction are correct, if correctly, sent
Interface message processor (IMP), is handled by soft switch, and writes the result into Log Directory, otherwise, is then reported an error, and order is not in the scope of permission
It is interior, and result is write into Log Directory;
Judge whether also detection instruction or make instruction, if it has, reading detection instruction or making instruction, otherwise, sentence
It is disconnected whether to also have detection command file or make command file, if it has, reading detection instruction or making instruction, otherwise, continue
Monitoring.
Further, in interface routine implementation procedure, monitoring file will be locked, and monitoring mesh is included in monitoring file
Be stored with detection command file or making command file in record and Log Directory, the monitored directory, is stored with the Log Directory
Result file, newly-generated detection command file or making command file will not be included and this time perform scope, treat all to hold
Go after above-mentioned flow, command file or making command file and newly-generated detection command file or making are detected by remaining
Command file is repeated together.
Further, client checks unit verification herein below:
IP address is correct, and not comprising any non-digital content, and IP address range is within the scope of configuration;
Originate physical number and be less than end physical number;
Starting TID and end TID difference are the port number of equipment, should be with end physical number-starting physics number
The value of code+1 is identical.
Further, think normal when returning result number is equal to detection instruction strip number in detection instruction results file, make
Returning result number, which is equal to when making instruction strip number, in instruction results file thinks normal.
Only IP address and number segment need to be inputted by WEB modes can complete the real-time open-minded of EPON data to the present invention, advise
The problems such as having kept away low efficiency caused by artificial operation, high error rate and not strong real-time.
The present invention has the advantages that at least one of:
It ensure that user can not normally log in non-security IP network section;
Repeatedly verified by terminal, soft switch, interface routine, it is ensured that dependent instruction is highly reliable;
Passage time sequence, processing of being ranked to concurrent operations, fundamentally avoids the conflict of data creating;
Execution time increase timer monitoring to instruction, it is ensured that the real-time of instruction and the validity of result;
Back end interface program sends heartbeat message with interface message processor (IMP) by timing, and whether detection interface routine is effective, if heartbeat
Lose, interface routine can auto-timeout reconnect interface message processor (IMP);
Support that online data makes simultaneously by different geographical, multi-user.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the present invention, this hair
Bright schematic description and description is used to explain the present invention, does not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the method flow diagram that EPON speech datas of the present invention are opened in real time.
Fig. 2 is interface routine Auto Processing figure in the inventive method flow.
After Fig. 3 is data creating of the present invention success, the flow chart of the instruction of user's submission is continued with.
Fig. 4 is the system architecture diagram that EPON speech datas of the present invention are opened in real time.
Fig. 5 is the structural representation of terminal and interface routine in the present invention.
Embodiment
Fig. 1 is the method flow diagram that EPON speech datas of the present invention are opened in real time.
S101, on the subscriber terminal input EPON data real-time manufacturing web IP address, if the IP address is telecommunications DCN
(Data Communication Network, data communication network)The network segment, then show login interface, continues executing with S102, otherwise,
When accessing the non-DCN network segments, webpage can not be opened.So as to ensure that user can not normally log in non-security IP network section.
S102, user name and account password are inputted on login interface, are verified by rear end sql server databases,
If the verification passes, S103 is continued executing with, otherwise, mistake is pointed out, returns to login interface.
S103, the data configuration interface into terminal, in data configuration interface input parameter to complete client checks, mainly
The basic validity checking for the relevant parameter being related to including EPON data creatings.
Input parameter includes IP address, starting physical number, terminates physical number, starting TID(Termination
Identity, terminal identifier)With end TID.By WEB(Network)Automatic Verification.
Client checks can include herein below:
IP address is correct, and not comprising any non-digital content, and IP address range allows the model of configuration in branch company
Within enclosing(The scope value is obtained by database query user relevant information), that is, verify that can the IP address section of branch company make
With;
Originate physical number and be less than end physical number, in specific set, starting physical number and end can be set
Physical number must be 6 or 4 beginnings;
Starting TID and end TID difference are the port number of equipment;
The port number of equipment should be identical with the value of " terminating physical number-starting physical number+1 ";
It can also include:No more than 35 characters of EPON title, and do not allow for null value.
S104, judge whether client checks pass through, if passed through, perform S105, otherwise S103.
S105, into data check, whether checking IP address is reused.
Whether verification EPON IP address can inquire on the database and whether EPON physical number is being preset
EPON physics number sections.Mainly include soft switch side core network data to check, such as No. hundred groups, IP address whether rechecking.
No. hundred groups of the prewired all branch companies of database, No. hundred groups are obtained according to the number of input(6 before number)It is compared.Check
Whether No. hundred groups of user input are in interval set in advance, to judge whether IP address repeats.
S106, judge whether data check passes through, if passed through, perform S107, otherwise S103.Judgement operation can be by
WEB is performed.
S107, terminal generation detection instruction, and start first timer.Wherein, detection instruction includes checking that node number is
It is no to can use and check whether IP address repeats.
S108, between terminal and soft switch interface message processor (IMP) interface routine is set, the interface routine monitors detection instruction, hair
Censorship surveys instruction and arrives soft switch, receives the detection instruction results file that soft switch is returned, and be sent to terminal.Wherein, detection refers to
Making destination file includes the content of returning result number and returning result.
The operation interacted with soft switch that interface routine is performed will be described in detail in fig. 2.Interface routine is handed over soft
It is configuration data on switches to change interactive purpose.
Whether S109, terminal judges detection instruction results file are normal, and first timer has not timed out, if it is, performing
S111, otherwise, performs S110.
Wherein, think normal when returning result number is equal to detection instruction strip number in detection instruction results file.For example, root
Whether normal carry out decision instruction destination file according to keyword in detection instruction results file and keyword occurrence number.Keyword can
To be defined according to actual conditions, for example, the result that soft switch is returned, is currently " return of order no data ".
S110, prompting mistake, return to S103, i.e. returned data configuration interface, to be inputted again at data configuration interface
Parameter.
S111, terminal generation make instruction, and start second timer.
S112, interface routine monitor making instruction, send to make to instruct and arrive soft switch, receive the making that soft switch is returned
Instruction results file, and it is sent to terminal.Making instruction generates the instruction of EPON configurations for soft switch.Making instruction can wrap
Include three instructions, first:Create node data, Article 2:Create physical number data, Article 3:Create TID data.Its
In, the operation interacted with soft switch that interface routine is performed will be described in detail in fig. 2.
Whether normally S113, terminal judges make instruction results file, and second timer has not timed out, if it is, performing
S114, otherwise, points out mistake, performs S103.
Wherein, making instruction results file includes the content of returning result number and returning result.Make instruction results text
Returning result number, which is equal to when making instruction strip number, in part thinks normal.For example, according to keyword in making instruction results file
And keyword occurrence number judges whether making instruction results file is normal.Keyword mentioned here refers to the knot of soft switch return
Really, for example, being currently " RETN=0, ID=0, NUM=0, RESULT=".
S114, data creating success, soft switch generation EPON configurations, complete EPON speech datas open-minded in real time.
In this embodiment, repeatedly verified by terminal, interface routine and soft switch, it is ensured that dependent instruction is highly
It is reliable.Execution time increase timer monitoring to instruction, it is ensured that the real-time of instruction and the validity of result.Support different
Online data makes simultaneously by region, multi-user.
Fig. 2 is interface routine Auto Processing figure in the inventive method flow.
S201, interface routine call TCP(Transmission Control Protocol, transmission control protocol)'s
SOCKET(Socket)Interface message processor (IMP) in connection, can be realized by VB program codes.
S202, interface routine as interface message processor (IMP) CLIENT(Client), it is complete by user name and password login interface message processor (IMP)
Into the legitimacy certification of interface message processor (IMP) docking port program.
The making instruction of interface routine is forwarded to soft switch by S203, interface message processor (IMP), is signed in soft switch SS, is completed soft switch
Legitimacy certification to data creating user.
The username and password that the username and password of input is stored with soft switch is compared, and this process is that use is examined in soft switch
The process of family legitimacy.
Storage detection instruction and the file of making instruction that S204, selection are opened in real time, to read file.
S205, selection storage detection instruction results file and the file for making instruction results file, so as to recording instruction
Implementing result.Selection operation in S204 and S205 can be by manually being selected.
In this embodiment, interface routine sends heartbeat message with interface message processor (IMP) by timing, and whether detection interface routine has
Effect, if heartbeat is lost, interface routine can auto-timeout reconnect interface message processor (IMP).
After Fig. 3 is data creating of the present invention success, the flow chart of the instruction of user's submission is continued with.Used including same
Other command files at family, the command file also submitted including other users.I.e. after S112, the present invention can also include with
Lower flow:
S301, startup monitor flow, monitor and detection command file or the generation for making command file in real time.
Specify and be stored with monitored directory and Log Directory, the monitored directory in the monitoring file that interface routine is specified
Detect command file or make the result file that is stored with command file, the Log Directory.Start interface process, complete certainly
The environmental preparation of dynamic processing, including advance login interface machine, completion session service user name and cipher authentication.Now interface routine can be every
Number of files in 1 second scanning file folder.
S302, determine whether detection command file or make command file generation, if it is, perform S303, otherwise, hold
Row S301.
The processing file of generation is passed to after monitored directory, and interface process can be found in monitored file with the presence of file.
Wherein, including at least one detection instruction in detection command file, making command file includes at least one making instruction.
S303, according to detection command file or make command file the generation time be ranked up.
S304, the detection command file that generates earliest is taken out from the queue after sequence or command file is made, according to text
Part name judge that file is the data submitted by which branch company, so as to subsequent detection instruct or make instruction be sent to accordingly it is soft
Exchange.
S305, one detection instruction of reading make instruction.
S306, verification detection instruction make whether instruction is correct, if correctly, otherwise S307, then reports an error, order is not
In allowed limits, and by result Log Directory is write.
S307, interface message processor (IMP) is sent, handled by soft switch, and write the result into Log Directory.
S308, judge whether also detection instruction or make instruction, if it has, perform S305, otherwise, perform S309.
S309, judge whether also detection instruction or make command file, if it has, perform S305, otherwise, perform
S301。
The embodiment passage time sequence, processing of being ranked to concurrent operations fundamentally avoids data creating
Conflict.
In interface routine implementation procedure, monitoring file will be locked, and newly-generated file, which will not be included, this time performs model
Enclose, after all above-mentioned flow has been performed, remaining file is repeated together with newly-generated file.It is finally completed all
The data creating file that branch company submits, opens EPON speech datas in real time.
Complete after making, the file that is monitored is sky, interface process continues to monitor this document folder.
Fig. 4 is the system architecture diagram that EPON speech datas of the present invention are opened in real time.The system include terminal, soft switch, with
And it is arranged on the interface routine between terminal and soft switch interface message processor (IMP).The system can also include database.
Fig. 5 is the structural representation of terminal and interface routine in the present invention.
Terminal includes:Log in unit, legitimacy verifies unit, client checks unit, data check unit, detection instruction life
Into unit, detection instruction results judging unit, make instruction generation unit and making instruction results judging unit.
Unit is logged in, is configured in input Ethernet passive optical network(EPON)During data real-time manufacturing website IP, display
Login interface for inputting user name and account password.
Legitimacy verifies unit, is configured at verification user name and whether account password is legal.
Client checks unit, is configured to validated user and provides data configuration interface, is inputted according at data configuration interface
Parameter complete client checks.
Wherein, client checks unit verification herein below:
IP address is correct, and not comprising any non-digital content, and IP address range is within the scope of configuration;
Originate physical number and be less than end physical number;
Starting TID and end TID difference are the port number of equipment, should be with end physical number-starting physics number
The value of code+1 is identical.
Data check unit, is configured in client checks by rear, carries out data check, whether checking IP address repeats to make
With.
Instruction generation unit is detected, is configured in data check by rear, generation detection instruction, and start the first timing
Device, detection instruction includes checking whether node number is available and checks whether IP address repeats.
Instruction results judging unit is detected, is configured at and judges whether detection instruction results file is normal, and first timer
Have not timed out, if it is, being continued executing with by making instruction generation unit, otherwise, return to client verification unit and continue executing with.Detection
Think normal when returning result number is equal to detection instruction strip number in instruction results file.
Instruction generation unit is made, generation is configured at and makes instruction, and start second timer.
Instruction results judging unit is made, is configured at and whether normally to judge to make instruction results file, and second timer
Have not timed out, if it is, data creating success, soft switch generation EPON configurations, completion EPON speech datas are open-minded in real time, otherwise,
Client checks unit is returned, wherein, making instruction results file includes the content of returning result number and returning result.Making refers to
Make and think normal when returning result number is equal to making instruction strip number in destination file.
It is also as shown in Figure 5.Interface routine includes:Detect instruction process unit and make instruction process unit.
Instruction process unit is detected, is configured at and monitors detection instruction, detection instruction is sent and arrives soft switch, receive soft switch
The detection instruction results file of return, and the detection instruction results judging unit of terminal is sent to, wherein, detection instruction results text
Part includes the content of returning result number and returning result.
Instruction process unit is made, is configured at and monitors making instruction, making instruction is sent and arrives soft switch, receive soft switch
The making instruction results file of return, and the making instruction results judging unit of terminal is sent to, wherein, making instruction is soft
Exchange the instruction of generation EPON configurations.
In the system embodiment of the present invention, interface routine interacts the following operation of execution with soft switch:
Interface routine calls transmission control protocol(TCP)Socket(SOCKET)Interface message processor (IMP) in connection, passes through user name
With password login interface message processor (IMP), the legitimacy certification of interface message processor (IMP) docking port program is completed;
The making instruction of interface routine is forwarded to soft switch by interface message processor (IMP), signs in soft switch, completes soft switch to data
Make the legitimacy certification of user;
Storage detection instruction and the file of making instruction that interface routine selection is opened in real time, to read file;
Interface routine selection storage detection instruction results file and the file for making instruction results file, refer to record
Make implementing result.
In another system embodiment of the invention, interface routine starts monitoring flow in real time after data creating success,
Monitor and detection command file or the generation for making command file;
Determine whether detection command file or make command file generation, if it is, according to detection command file or system
The generation time for making command file is ranked up, and the detection command file generated earliest or making are taken out from the queue after sequence
Command file, instructs or makes instruction by subsequent detection according to filename and be sent to corresponding soft switch, otherwise, continue to monitor;
A detection instruction or making instruction are read, whether verification detection instruction or making instruction are correct, if correctly, sent
Interface message processor (IMP), is handled by soft switch, and writes the result into Log Directory, otherwise, is then reported an error, and order is not in the scope of permission
It is interior, and result is write into Log Directory;
Judge whether also detection instruction or make instruction, if it has, reading detection instruction or making instruction, otherwise, sentence
It is disconnected whether to also have detection command file or make command file, if it has, reading detection instruction or making instruction, otherwise, continue
Monitoring.
In interface routine implementation procedure, monitoring file will be locked, include monitored directory and day in monitoring file
Be stored with detection command file or making command file in will catalogue, the monitored directory, and be stored with processing knot in the Log Directory
Fruit file, newly-generated detection command file or making command file will not be included and this time perform scope, treat all to have performed
State after flow, by remaining detection command file or making command file and newly-generated detection command file or making instruction text
Part is repeated together.
The present invention is automatically performed EPON and opens the comparison of data, verification, has evaded that efficiency caused by artificial operation is low, mistake
The problems such as rate height and not strong real-time.
Below by specific embodiment, the present invention is described in further detail.
Ba Nan branch companies use account:Bndingli, password:* * * * *, log in EPON data real-time manufacturing nets
After standing, data are submitted on WEB.
EPON IP address is:10.59.233.118, the starting physical number of configuration:62749614, terminate physics number
Code:62749637, originate TID:AG5800, terminates TID:AG5823, EPON title:11 unit 17F_ of Ba Nan face Longshan waterside town
HW_6101903_213。
Client checks include herein below:
IP address is correct, and not comprising any non-digital content, and IP address range allows the model of configuration in branch company
Within enclosing(The scope value is obtained by database query user relevant information);
Originate physical number and be less than end physical number, and must be 6 beginnings;
Starting TID and end TID difference are the port number of equipment;
The port number of equipment should with " terminate physical number-starting physical number+1 " value it is identical;
No more than 35 characters of EPON title, and do not allow for null value.
Data check includes herein below:
EPON IP address inquire about on the database less than;
EPON physical number is the EPON physics number sections of the branch company.
Subsequent treatment situation is described as follows:
By way of beating timestamp to generation script, time series is formed, completes to automatically process in temporal sequence one by one,
The result and generation script of generation are made a distinction by increasing res suffix on filename.In this way, by interface message processor (IMP)
The speed sum amount for sending instruction to soft switch is well controlled, and also ensure that multi-user concurrent is operated.
The first step:Obtain after user input, in assigned catalogue generation detection instruction " Ba Nan 20110322145415_
Pre.txt ", Ba Nan 20110322145415_pre.txt such as 4456:6="10.59.233.118",1=1,2=
2147483647;4456:1=6101903,2=6101903;.Command content is:Check that IP address whether there is, check magnanimity section
Period(Soft switch interchanger parameter)Whether taken by other nodes, start timer T1.
Second step:Delivered to by toBoss programs after soft switch interface message processor (IMP) program is performed and generate destination file " Ba Nan
20110322145415_pre_res.txt ", for example, ACK:2011-03-2214:54:13:4456:RETN=6671,DESC="
Order no data is returned ";ACK:2011-03-2214:54:13:4456:RETN=6671, DESC=" return of order no data ".
If this document is not generated in the range of specified timer T1, system will be prompted to " toBoss is without response mistake ", and return to number
According to configuration interface part, subsequent step is no longer performed.
3rd step:According to " Ba Nan 20110322145415_pre_res.txt " results judge whether normally, basis for estimation
Whether result " return of the order no data " character string returned for soft switch occurs twice(It is relevant with instruction strip number, there are several fingers
Order should just return to how many times)If occurring twice, generating real EPON data creatings instruction " Ba Nan
20110322145415.txt ", for example, 7467:7=0,5=" Ba Nan face Longshan 11 unit 17F_HW_6101903_ of waterside town
213",4="10.59.233.118",3="[10.59.233.118]",2=91,1=6101903;4201:1=1,2=23,5=1,6
=3,7=3,8=1,9=0,10=0,11=20,12=,14=6101903,15=,16=,17=1,20=101,21=5,22=0&1&3&4&
6&7&8&10&11&12&13&14&15,31=1&2&8&9&13&15,25=0&1&4&5&6&7&9&13,28=20,33=0,3="
62749614",4="62749637";4712:1=6101903,2="AG58",3=4,6="62749614",7=1,8=23,9=0,
10=23,11=2,12=;Start timer T2.Delivered to by toBoss programs after soft switch interface message processor (IMP) program is performed and generate knot
Fruit file " Ba Nan 20110322145415_res.txt ";If judging " Ba Nan 20110322145415_pre_res.txt " files
Content " return of order no data " character string occurrence number is less than 2, then is reported an error to client, subsequent step is no longer performed, " Ba Nan
20110322145415.txt " files will not also be generated.
4th step:According to " Ba Nan 20110322145415_res.txt " judge whether soft switch data finally successfully give birth to
Into Ba Nan 20110322145415_res.txt are for example, ACK:2011-03-2214:54:23:7467:RETN=0,ID=0,NUM
=0,RESULT=;ACK:2011-03-2214:54:24:4201:RETN=0,ID=0,NUM=0,RESULT=;ACK:2011-03-
2214:54:25:4712:RETN=0,ID=0,NUM=0,RESULT=;Basis for estimation be soft switch return result " RETN=0,
Whether ID=0, NUM=0, RESULT=" character string occur three times;If occurring three times, data creating success;If judging " Ba Nan
In 20110322145415_res.txt " files " RETN=0, ID=0, NUM=0, RESULT=" character string occurrence number are less than 3,
Then reported an error to client, and the final result that reports an error is presented.If this document is not generated in the range of specified timer T2, it is
System be will be prompted to " toBoss is without response mistake ", and returned data configuration interface part, and subsequent step is no longer performed.
So far, the present invention is described in detail.In order to avoid the design of the masking present invention, this area institute is not described public
Some details known.Those skilled in the art can be appreciated how to implement technology disclosed herein as described above, completely
Scheme.
The method of the present invention and device may be achieved in many ways.For example, can by software, hardware, firmware or
Person's software, hardware, any combinations of firmware realize the method for the present invention and device.The step of for methods described it is above-mentioned
Order is not limited to order described in detail above merely to illustrate, the step of the method for the present invention, unless with other sides
Formula is illustrated.In addition, in certain embodiments, the present invention can be also embodied as recording to program in the recording medium, these
Program includes the machine readable instructions for being used to realize the method according to the invention.Thus, the present invention also covering storage is used to perform
The recording medium of the program of the method according to the invention.
Although some specific embodiments of the present invention are described in detail by example, the skill of this area
Art personnel are it should be understood that above example is merely to illustrate, the scope being not intended to be limiting of the invention.The skill of this area
Art personnel to above example it should be understood that can modify without departing from the scope and spirit of the present invention.This hair
Bright scope is defined by the following claims.
Claims (12)
- The method that 1.EPON speech datas are opened in real time, it is characterised in that:Ethernet passive optical network EPON data real-time manufacturing web site Internet Protocol IP address is inputted, login interface is shown;User name is inputted on login interface and account password is verified;After being verified, into data configuration interface, in data configuration interface input parameter to complete client checks;Judge whether client checks pass through, if passed through, into data check, whether the IP address in checking input parameter repeats Use;Judge whether data check passes through, if passed through, terminal generation detection instruction, and start first timer, the detection refers to Order includes checking whether node number is available and checks whether IP address repeats;Interface routine is set between terminal and soft switch interface message processor (IMP), the interface routine monitors detection instruction, sends detection and refer to Soft switch is made, the detection instruction results file that soft switch is returned is received, and is sent to terminal, wherein, detection instruction results text Part includes the content of returning result number and returning result;Whether terminal judges detection instruction results file is normal, and first timer has not timed out, if it is, terminal generation making refers to Order, and start second timer;Interface routine monitors making instruction, sends to make to instruct and arrives soft switch, receives the making instruction results that soft switch is returned File, and terminal is sent to, wherein, making instruction generates the instruction of EPON configurations for soft switch;Whether normally terminal judges make instruction results file, and second timer has not timed out, if it is, data creating success, Soft switch generation EPON configurations, completion EPON speech datas are open-minded in real time, otherwise, returned data configuration interface, wherein, making refers to Making destination file includes the content of returning result number and returning result.
- 2. the method that EPON speech datas are opened in real time according to claim 1, it is characterised in that:Interface routine interacts the following operation of execution with soft switch:Interface routine calls interface message processor (IMP) in the socket SOCKET connections of transmission control protocol TCP, is stepped on by username and password Interface message processor (IMP) is recorded, the legitimacy certification of interface message processor (IMP) docking port program is completed;The making instruction of interface routine is forwarded to soft switch by interface message processor (IMP), signs in soft switch, completes soft switch to data creating The legitimacy certification of user;Storage detection instruction and the file of making instruction that interface routine selection is opened in real time, to read file;Interface routine selection storage detection instruction results file and the file for making instruction results file, so that recording instruction is held Row result.
- 3. the method that EPON speech datas according to claim 1 or claim 2 are opened in real time, it is characterised in that:Interface routine performs following operate after data creating success:A, startup monitor flow, monitor and detection command file or the generation for making command file in real time, wherein, detect command file Inside include at least one detection instruction, making command file includes at least one making instruction;B, determine whether detection command file or make command file generation, if it is, according to detection command file or making The generation time of command file is ranked up, and the detection command file generated earliest is taken out from the queue after sequence or making refers to File is made, instructing or make instruction by subsequent detection according to filename is sent to corresponding soft switch, otherwise, returns to A;C, one detection instruction of reading make instruction;Whether D, verification detection instruction or making instruction are correct, if correctly, sending interface message processor (IMP), are handled by soft switch, and will As a result Log Directory is write, otherwise, is then reported an error, order is not in allowed limits, and result is write into Log Directory;E, judge whether also detection instruction or make instruction, if it has, return to C, otherwise, perform F;F, judge whether also detection command file or make command file, if it has, returning to C, otherwise, return to A.
- 4. the method that EPON speech datas are opened in real time according to claim 3, it is characterised in that:In interface routine implementation procedure, monitoring file will be locked, include monitored directory and daily record mesh in monitoring file Be stored with detection command file or making command file in record, the monitored directory, and be stored with result text in the Log Directory Part, newly-generated detection command file or making command file will not be included and this time perform scope, treat all to have performed above-mentioned stream Cheng Hou, by remaining detection command file or making command file and newly-generated detection command file or making command file one Rise and repeat.
- 5. the method that EPON speech datas according to claim 1 or claim 2 are opened in real time, it is characterised in that:Client checks include herein below:IP address is correct, and not comprising any non-digital content, and IP address range is within the scope of configuration;Originate physical number and be less than end physical number;Starting terminal identifier TID and end TID difference are the port number of equipment, should be with end physical number-starting The value of physical number+1 is identical.
- 6. the method that EPON speech datas according to claim 1 or claim 2 are opened in real time, it is characterised in that:Think normal when returning result number is equal to detection instruction strip number in detection instruction results file, make instruction results file Middle returning result number, which is equal to when making instruction strip number, thinks normal.
- The system that 7.EPON speech datas are opened in real time, it is characterised in that including terminal, soft switch and be arranged on terminal with Interface routine between soft switch interface message processor (IMP), wherein:Terminal includes:Unit is logged in, is configured at when inputting Ethernet passive optical network EPON data real-time manufacturing website IP, shows for defeated The login interface of access customer name and account password;Legitimacy verifies unit, is configured at verification user name and whether account password is legal;Client checks unit, is configured to validated user and provides data configuration interface, according to the ginseng inputted at data configuration interface Count up into client checks;Data check unit, is configured in client checks by rear, carries out data check, verifies that the IP address in input parameter is It is no to reuse;Instruction generation unit is detected, is configured in data check by rear, generation detection instruction, and starts first timer, should Detection instruction includes checking whether node number is available and checks whether IP addresses repeat;Instruction results judging unit is detected, is configured at and judges whether detection instruction results file is normal, and first timer does not surpass When, if it is, being continued executing with by making instruction generation unit, otherwise, return to client verification unit and continue executing with;Instruction generation unit is made, generation is configured at and makes instruction, and start second timer;Instruction results judging unit is made, is configured at and whether normally to judge to make instruction results file, and second timer does not surpass When, if it is, data creating success, soft switch generation EPON configurations, completion EPON speech datas are open-minded in real time, otherwise, return Client checks unit, wherein, making instruction results file includes the content of returning result number and returning result;Interface routine, including:Instruction process unit is detected, is configured at and monitors detection instruction, detection instruction is sent and arrives soft switch, receive soft switch and return Detection instruction results file, and be sent to the detection instruction results judging unit of terminal, wherein, detect instruction results file bag Include the content of returning result number and returning result;Instruction process unit is made, is configured at and monitors making instruction, making instruction is sent and arrives soft switch, receive soft switch and return Making instruction results file, and be sent to the making instruction results judging unit of terminal, wherein, making instruction is soft switch Generate the instruction of EPON configurations.
- 8. the system that EPON speech datas are opened in real time according to claim 7, it is characterised in that:Interface routine interacts the following operation of execution with soft switch:Interface routine calls interface message processor (IMP) in the socket SOCKET connections of transmission control protocol TCP, is stepped on by username and password Interface message processor (IMP) is recorded, the legitimacy certification of interface message processor (IMP) docking port program is completed;The making instruction of interface routine is forwarded to soft switch by interface message processor (IMP), signs in soft switch, completes soft switch to data creating The legitimacy certification of user;Storage detection instruction and the file of making instruction that interface routine selection is opened in real time, to read file;Interface routine selection storage detection instruction results file and the file for making instruction results file, so that recording instruction is held Row result.
- 9. the system that the EPON speech datas according to claim 7 or 8 are opened in real time, it is characterised in that:Interface routine starts monitoring flow in real time, monitor and detection command file or making instruction text after data creating success The generation of part, wherein, including at least one detection instruction in detection command file, making command file includes at least one making Instruction;Determine whether detection command file or make command file generation, if it is, being referred to according to detection command file or making Make the generation time of file be ranked up, the detection command file generated earliest is taken out from the queue after sequence or instruction is made File, instructs or makes instruction by subsequent detection according to filename and be sent to corresponding soft switch, otherwise, continue to monitor;A detection instruction or making instruction are read, whether verification detection instruction or making instruction are correct, if correctly, sending interface Machine, is handled by soft switch, and writes the result into Log Directory, otherwise, is then reported an error, and is ordered not in allowed limits, and Result is write into Log Directory;Judge whether also detection instruction or make instruction, if it has, reading detection instruction or making instruction, otherwise, judgement is It is no to also have detection command file or make command file, if it has, reading detection instruction or making instruction, otherwise, continue to monitor.
- 10. the system that EPON speech datas are opened in real time according to claim 9, it is characterised in that:In interface routine implementation procedure, monitoring file will be locked, include monitored directory and daily record mesh in monitoring file Be stored with detection command file or making command file in record, the monitored directory, and be stored with result text in the Log Directory Part, newly-generated detection command file or making command file will not be included and this time perform scope, treat all to have performed above-mentioned stream Cheng Hou, by remaining detection command file or making command file and newly-generated detection command file or making command file one Rise and repeat.
- 11. the system that the EPON speech datas according to claim 7 or 8 are opened in real time, it is characterised in that:Client checks unit verifies herein below:IP address is correct, and not comprising any non-digital content, and IP address range is within the scope of configuration;Originate physical number and be less than end physical number;Starting TID and end TID difference are the port number of equipment, should be with end physical number-starting physical number+1 Value it is identical.
- 12. the system that the EPON speech datas according to claim 7 or 8 are opened in real time, it is characterised in that:Think normal when returning result number is equal to detection instruction strip number in detection instruction results file, make instruction results file Middle returning result number, which is equal to when making instruction strip number, thinks normal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210394322.XA CN103780573B (en) | 2012-10-17 | 2012-10-17 | The method and system that EPON speech datas are opened in real time |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210394322.XA CN103780573B (en) | 2012-10-17 | 2012-10-17 | The method and system that EPON speech datas are opened in real time |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103780573A CN103780573A (en) | 2014-05-07 |
CN103780573B true CN103780573B (en) | 2017-07-14 |
Family
ID=50572409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210394322.XA Active CN103780573B (en) | 2012-10-17 | 2012-10-17 | The method and system that EPON speech datas are opened in real time |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103780573B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101621331A (en) * | 2008-06-30 | 2010-01-06 | 中兴通讯股份有限公司 | Optical network unit configuration method and device |
CN101729343A (en) * | 2009-11-17 | 2010-06-09 | 中兴通讯股份有限公司 | Zero configuration method and system of remotely-managed home terminal equipment |
CN102571408A (en) * | 2010-12-08 | 2012-07-11 | 中国电信股份有限公司 | Service opening resource configuration method based on address information and system thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090016720A1 (en) * | 2007-07-11 | 2009-01-15 | Inventec Multimedia & Telecom (Tianjin) Co., Ltd. | Problem detection device at ONU end in PON system and method thereof |
-
2012
- 2012-10-17 CN CN201210394322.XA patent/CN103780573B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101621331A (en) * | 2008-06-30 | 2010-01-06 | 中兴通讯股份有限公司 | Optical network unit configuration method and device |
CN101729343A (en) * | 2009-11-17 | 2010-06-09 | 中兴通讯股份有限公司 | Zero configuration method and system of remotely-managed home terminal equipment |
CN102571408A (en) * | 2010-12-08 | 2012-07-11 | 中国电信股份有限公司 | Service opening resource configuration method based on address information and system thereof |
Also Published As
Publication number | Publication date |
---|---|
CN103780573A (en) | 2014-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106789983B (en) | A kind of CC attack defense method and its system of defense | |
CN104348822B (en) | A kind of method, apparatus and server of internet account number authentication | |
CN104660416B (en) | A kind of working method of voice authentication system and equipment | |
CN105897782B (en) | A kind of processing method and processing device of the call request for interface | |
CN101605108B (en) | Method, system and apparatus for instant communication | |
CN105450582B (en) | Method for processing business, terminal, server and system | |
CN108769173A (en) | The block chain implementation method and equipment of the intelligent contract of operation | |
CN105119722B (en) | A kind of auth method, equipment and system | |
CN103916244B (en) | Verification method and device | |
CN106126402B (en) | The processing method and processing device of accelerator exception | |
CN108462704A (en) | Login validation method, device, computer equipment and storage medium | |
CN103475726B (en) | A kind of virtual desktop management, server and client side | |
CN109309666A (en) | Interface security control method and terminal device in a kind of network security | |
CN104144167B (en) | User login authentication method of open intelligent gateway platform | |
CN108989291A (en) | Login validation method, the verification method of automated log on, server-side and client | |
CN105187372A (en) | Method for data processing based on mobile application entrance, device and system | |
CN105681030B (en) | key management system, method and device | |
CN105828329A (en) | Authentication management method for mobile terminals | |
CN107911381A (en) | Access method, system, server-side and the client of application programming interface | |
CN105959276A (en) | Application control method, device, and terminal device based on third party account login | |
CN110677383A (en) | Firewall opening method and device, storage medium and computer equipment | |
CN106331003A (en) | Method and device for accessing application portal system on cloud desktop | |
CN110519280A (en) | A kind of crawler recognition methods, device, computer equipment and storage medium | |
CN110430084A (en) | Node state monitoring method and device | |
CN105592459B (en) | Safety certification device based on wireless communication |
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 |