CN103780573A - Method and system for real-time opening of EPON speech data - Google Patents

Method and system for real-time opening of EPON speech data Download PDF

Info

Publication number
CN103780573A
CN103780573A CN201210394322.XA CN201210394322A CN103780573A CN 103780573 A CN103780573 A CN 103780573A CN 201210394322 A CN201210394322 A CN 201210394322A CN 103780573 A CN103780573 A CN 103780573A
Authority
CN
China
Prior art keywords
instruction
file
soft switch
detect
epon
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.)
Granted
Application number
CN201210394322.XA
Other languages
Chinese (zh)
Other versions
CN103780573B (en
Inventor
郑丹
徐�明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201210394322.XA priority Critical patent/CN103780573B/en
Publication of CN103780573A publication Critical patent/CN103780573A/en
Application granted granted Critical
Publication of CN103780573B publication Critical patent/CN103780573B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention provides a method and a system for real-time opening of EPON speech data. An interface program is set between a terminal and a soft switch interface machine, and the interface program monitors a detection instruction through terminal verification and data verification, sends the detection instruction to the soft switch, receives a detection instruction result file returned by the soft switch and sends the detection instruction result file to the terminal; the terminal generates a production instruction and starts a second timer when judging that the detection instruction result file is normal and a first timer does not expire; the interface program monitors the production instruction, sends the production instruction to the soft switch, receives a production instruction result file returned by the soft switch and sends the production instruction result file to the terminal; and when the terminal judges that the production instruction result file is normal and the second timer does not expire, data is produced successfully, and the soft switch generates an EPON configuration to complete real-time opening of EPON speech data. The problems of multiple links, low artificial data production efficiency, high error rate and bad real-time performance in the EPON opening process are solved.

Description

The method and system that EPON speech data is opened in real time
Technical field
The present invention relates to data processing, particularly EPON(Ethernet Passive Optical Network, Ethernet passive optical network) method and system opened in real time of speech data.
Background technology
Along with the construction in light net city, EPON access way is used widely.Existing EPON access process relates to branch company, Internet resources center (being called for short net money) and the multiple interagency coordinations of exchange portion and coordinates.
First branch company initiates SF(operation flow work order from this locality) adjust list to net money, net money forwarding SF work order to exchange portion, exchange portion processes after seeing work order, and after processing, feedback processing result, to net money, finally provides feedback processing situation to branch company by net again.
Generally speaking, whole process can 2-3 consuming time a working day, if but the SF that branch company self submits to is mono-wrong, as IP(Internet Protocol, Internet protocol) address is wrong or number section is wrong, and whole link, by rollback, is laid equal stress on and is newly initiated a new flow process.
In addition, net money is only served as the role who forwards work order in this flow process, and non-automatic processing, belongs to redundancy link.
The making of EPON mass data has become the bottleneck in opening process, cannot meet and build and the market demand.The problem such as solve the too many levels that exists in EPON equipment opening process, manual manufacture data efficiency is low, error rate is high and real-time is not strong, has become an important topic in the present network operation.
Summary of the invention
In view of more than, the present invention proposes the method and system that EPON speech data is opened in real time.
The present invention proposes the method that EPON speech data is opened in real time, wherein:
Input Ethernet passive optical network (EPON) data real-time manufacturing website Internet protocol (IP) address, shows login interface;
On login interface, input user name and account password is verified;
After being verified, enter data configuration interface, at data configuration interface input parameter to complete terminal verification;
Judge whether terminal verification is passed through, if passed through, enters data check, whether checking IP address is reused;
Judge whether data check passes through, if passed through, terminal generates and detects instruction, and starts first timer, this detection instruction comprise check node number whether can with and check whether IP address repeats;
Between terminal and soft switch interface message processor (IMP), interface routine is set, this interface routine monitors detection instruction, send and detect instruction to soft switch, receive the detection instruction results file that soft switch is returned, and send to terminal, wherein, detect instruction results file and comprise the content that returns results number and return results;
Whether terminal judges detects instruction results file normal, and first timer is not overtime, and if so, terminal generates makes instruction, and starts second timer;
Interface routine monitors making instruction, sends and makes instruction to soft switch, receives the making instruction results file that soft switch is returned, and sends to terminal, and wherein, this making instruction is the instruction that soft switch generates EPON configuration;
Whether terminal judges is made instruction results file normal, and second timer is not overtime, if, data creating success, soft switch generates EPON configuration, completes EPON speech data open-minded in real time, otherwise, return data configuration interface, wherein, makes instruction results file and comprises the content that returns results number and return results.
Further, the following operation of the mutual execution of interface routine and soft switch:
Interface routine calls interface message processor (IMP) in socket (SOCKET) connection of transmission control protocol (TCP), by username and password login interface machine, completes the legitimacy authentication of interface message processor (IMP) docking port program;
The making instruction of interface routine is forwarded to soft switch by interface message processor (IMP), signs in to soft switch, completes the legitimacy authentication of soft switch to data creating user;
Interface routine selects the storage of opening in real time to detect instruction and the file of making instruction, so that file reading;
Interface routine is selected storage to detect instruction results file and is made the file of instruction results file, so that recording instruction execution result.
Further, interface routine, after data creating success, is carried out following operation:
A, startup be monitoring flow process in real time, the generation of monitor and detection command file or making command file;
B, judged whether detect command file or make command file generate, if, according to detecting command file or making rise time of command file and sort, from the queue sequence, take out the detection command file generating the earliest or make command file, according to filename, subsequent detection instruction or making instruction are sent to corresponding soft switch, otherwise, turn back to A;
C, read one detect instruction or make instruction;
Whether D, verification detect instruction or make instruction correct, if correct, send interface message processor (IMP), and processed by soft switch, and result is write to Log Directory, otherwise, report an error, order not in allowed limits, and result is write to Log Directory;
E, judge whether to detect in addition instruction or make instruction, if had, turn back to C, otherwise, carry out F;
F, judge whether to detect in addition command file or make command file, if had, turn back to C, otherwise, turn back to A.
Further, in interface routine implementation, monitoring file is by locked, in monitoring file, comprise monitored directory and Log Directory, in this monitored directory, store and detect command file or make command file, in this Log Directory, store result file, newly-generated detection command file or making command file will not included this execution scope in, after all executing above-mentioned flow process, by remaining detection command file or make command file and newly-generated detection command file or make together with command file and repeat.
Further, terminal verification comprises following content:
IP address is correct, does not comprise any nonnumeric content, and IP address range is within the scope of configuration;
Initial physical number is less than end physical number;
The difference of initial terminal identifier (TID) and end TID is the port number of equipment, should be identical with the value that finishes physical number-initial physical number+1.
Further, detect in instruction results file and return results when number equals to detect instruction strip number and think normal, make in instruction results file and return results when number equals to make instruction strip number and think normal.
The present invention also proposes the system that EPON speech data is opened in real time, comprise terminal, soft switch and be arranged on terminal and soft switch interface message processor (IMP) between interface routine, wherein:
Terminal comprises:
Login unit, is disposed in the time of input Ethernet passive optical network (EPON) data real-time manufacturing website IP, shows the login interface for inputting user name and account password;
Whether legal legitimacy verification unit, be disposed at verified users name and account password;
Terminal verification unit, is disposed to validated user data configuration interface is provided, according to completing terminal verification in the parameter of data configuration interface input;
Data check unit, is disposed at after terminal verification is passed through, and carries out data check, and whether checking IP address is reused;
Detect instruction generation unit, be disposed at after data check passes through, generate and detect instruction, and start first timer, this detection instruction comprise check node number whether can with and check whether IP address repeats;
Detect instruction results judging unit, be disposed at and judge that whether detection instruction results file is normal, and first timer is not overtime, if so, continue to carry out by making instruction generation unit, otherwise, return to client verification unit and continue execution;
Make instruction generation unit, be disposed to generate and make instruction, and start second timer;
Make instruction results judging unit, be disposed at and judge that whether making instruction results file is normal, and second timer is not overtime, if so, data creating success, soft switch generates EPON configuration, complete EPON speech data open-minded in real time, otherwise, terminal verification unit returned to, wherein, make instruction results file and comprise the content that returns results number and return results;
Interface routine, comprising:
Detect instruction process unit, be disposed at and monitor detection instruction, send and detect instruction to soft switch, receive the detection instruction results file that soft switch is returned, and send to the detection instruction results judging unit of terminal, wherein, detect instruction results file and comprise the content that returns results number and return results;
Make instruction process unit, be disposed at and monitor making instruction, send and make instruction to soft switch, receive the making instruction results file that soft switch is returned, and send to the making instruction results judging unit of terminal, wherein, this making instruction is the instruction that soft switch generates EPON configuration.
Further, the following operation of the mutual execution of interface routine and soft switch:
Interface routine calls interface message processor (IMP) in socket (SOCKET) connection of transmission control protocol (TCP), by username and password login interface machine, completes the legitimacy authentication of interface message processor (IMP) docking port program;
The making instruction of interface routine is forwarded to soft switch by interface message processor (IMP), signs in to soft switch, completes the legitimacy authentication of soft switch to data creating user;
Interface routine selects the storage of opening in real time to detect instruction and the file of making instruction, so that file reading;
Interface routine is selected storage to detect instruction results file and is made the file of instruction results file, so that recording instruction execution result.
Further, interface routine, after data creating success, starts monitoring flow process in real time, the generation of monitor and detection command file or making command file;
Judge whether to detect command file or made command file and generated, if, according to detecting command file or making rise time of command file and sort, from the queue sequence, take out the detection command file generating the earliest or make command file, according to filename, subsequent detection instruction or making instruction are sent to corresponding soft switch, otherwise, continue monitoring;
Read one and detect instruction or make instruction, whether verification detects instruction or makes instruction correct, if correct, send interface message processor (IMP), processed by soft switch, and result is write to Log Directory, otherwise, report an error, order not in allowed limits, and result is write to Log Directory;
Judge whether to detect in addition instruction or make instruction, if had, reading and detect instruction or make instruction, otherwise, judge whether to detect in addition command file or make command file, if had, read and detect instruction or make instruction, otherwise, monitoring continued.
Further, in interface routine implementation, monitoring file is by locked, in monitoring file, comprise monitored directory and Log Directory, in this monitored directory, store and detect command file or make command file, in this Log Directory, store result file, newly-generated detection command file or making command file will not included this execution scope in, after all executing above-mentioned flow process, by remaining detection command file or make command file and newly-generated detection command file or make together with command file and repeat.
Further, the following content of terminal verification unit verification:
IP address is correct, does not comprise any nonnumeric content, and IP address range is within the scope of configuration;
Initial physical number is less than end physical number;
The difference of initial TID and end TID is the port number of equipment, should be identical with the value that finishes physical number-initial physical number+1.
Further, detect in instruction results file and return results when number equals to detect instruction strip number and think normal, make in instruction results file and return results when number equals to make instruction strip number and think normal.
The present invention only need input IP address and number segment can complete the open-minded in real time of EPON data by WEB mode, evaded that the efficiency that manual operation causes is low, error rate is high and the problem such as real-time is not strong.
The present invention have advantages of following one of at least:
Guarantee that user cannot normally login non-security IP network section;
By the repeatedly verification of terminal, soft switch, interface routine, guarantee that dependent instruction height is reliable;
By time series, to the concurrent operations processing of ranking, fundamentally avoid the conflict of data creating;
The time of implementation of instruction is increased to timer and monitor, guaranteed the real-time of instruction and the validity of result;
Whether effective back end interface program and interface message processor (IMP), by timed sending heartbeat message, detect interface routine, if heartbeat is lost, interface routine can reconnect interface message processor (IMP) by auto-timeout;
Support different geographical, multi-user online data making simultaneously.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a part of the present invention, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the method flow diagram that EPON speech data of the present invention is opened in real time.
Fig. 2 is interface routine Auto Processing figure in the inventive method flow process.
Fig. 3 is after data creating of the present invention success, continues to process the flow chart of the instruction that user submits to.
Fig. 4 is the system architecture diagram that EPON speech data of the present invention is 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 data of the present invention is opened in real time.
S101, on user terminal, input IP address, EPON data real-time manufacturing website, if this IP address is telecommunications DCN(Data Communication Network, data communication network) network segment, show login interface, continue to carry out S102, otherwise while accessing the non-DCN network segment, webpage cannot be opened.Thereby guarantee that user cannot normally login non-security IP network section.
S102, on login interface, input user name and account password, verified by rear end sql server database, if the verification passes, continue to carry out S103, otherwise prompting mistake, turns back to login interface.
S103, enter the data configuration interface of terminal, to complete terminal verification, mainly comprise the basic validity checking of the relevant parameter that EPON data creating relates at data configuration interface input parameter.
Input parameter comprises IP address, initial physical number, finishes physical number, initial TID(Termination Identity, terminal identifier) and finish TID.By WEB(network) automatic Verification.
Terminal verification can comprise following content:
IP address is correct, does not comprise any nonnumeric content, and IP address range is within the scope of branch company's permission configuration (this scope value is obtained by data base querying user related information), verifies that can the IP address field of branch company use;
Initial physical number is less than end physical number, and in the time specifically arranging, initial physical number can be set and finish physical number must be 6 or 4 beginnings;
The difference of initial TID and end TID is the port number of equipment;
The port number of equipment should be identical with the value of " finishing physical number-initial physical number+1 ";
Can also comprise: the title of EPON can not exceed 35 characters, and not allow for null value.
S104, judge whether terminal verification is passed through, if passed through, carry out S105, otherwise S103.
S105, enter data check, whether checking IP address is reused.
The IP address of verification EPON on database, whether can inquire and the physical number of EPON whether in default EPON physics section.Mainly comprise the data checks of soft switch side core network, as the whether rechecking of No. hundred groups, IP address.No. hundred groups of the prewired all branch companies of database, obtain No. hundred groups (first 6 of number) according to the number of input and compare.Check that No. hundred groups of user's input, whether at predefined interval, judge whether IP address repeats.
S106, judge whether data check passes through, if passed through, carry out S107, otherwise S103.This decision operation can be carried out by WEB.
S107, terminal generate and detect instruction, and start first timer.Wherein, detect instruction comprise check node number whether can with and check whether IP address repeats.
S108, between terminal and soft switch interface message processor (IMP), interface routine is set, this interface routine monitors detection instruction, and send and detect instruction to soft switch, the detection instruction results file that reception soft switch is returned, and send to terminal.Wherein, detect instruction results file and comprise the content that returns results number and return results.
What interface routine was carried out will be elaborated with the mutual operation of soft switch in Fig. 2.The mutual object of interface routine and soft switch is configuration data on switch.
Whether S109, terminal judges detect instruction results file normal, and first timer is not overtime, if so, carry out S111, otherwise, carry out S110.
Wherein, detect in instruction results file and return results when number equals to detect instruction strip number and think normal.For example, whether normally carry out decision instruction destination file according to keyword and keyword occurrence number in detection instruction results file.Keyword can define according to actual conditions, for example, the result that soft switch is returned, current is " ordering countless certificates to be returned ".
S110, prompting mistake, turn back to S103, i.e. return data configuration interface, with again at data configuration interface input parameter.
S111, terminal generate makes instruction, and starts second timer.
S112, interface routine monitor making instruction, send and make instruction to soft switch, receive the making instruction results file that soft switch is returned, and send to terminal.This making instruction is the instruction that soft switch generates EPON configuration.Make instruction and can comprise three instructions, Article 1: create node data, Article 2: create physical number data, Article 3: create TID data.What wherein, interface routine was carried out will be elaborated with the mutual operation of soft switch in Fig. 2.
Whether S113, terminal judges make instruction results file normal, and second timer is not overtime, if so, carry out S114, otherwise prompting mistake, carries out S103.
Wherein, make instruction results file and comprise the content that returns results number and return results.Make in instruction results file and return results when number equals to make instruction strip number and think normal.For example, judge that according to keyword and keyword occurrence number in making instruction results file whether making instruction results file is normal.Here said keyword refers to the result that soft switch is returned, and for example, current is " RETN=0, ID=0, NUM=0, RESULT=".
S114, data creating success, soft switch generates EPON configuration, has completed EPON speech data open-minded in real time.
In this embodiment, by repeatedly verification of terminal, interface routine and soft switch, guaranteed that dependent instruction height is reliable.The time of implementation of instruction is increased to timer and monitor, guaranteed the real-time of instruction and the validity of result.Support different geographical, multi-user online data making simultaneously.
Fig. 2 is interface routine Auto Processing figure in the inventive method flow process.
S201, interface routine call TCP(Transmission Control Protocol, transmission control protocol) SOCKET(socket) interface message processor (IMP) in connection, can realize by VB program code.
S202, interface routine are as the CLIENT(client of interface message processor (IMP)), by username and password login interface machine, complete the legitimacy authentication 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), signs in to soft switch SS, completes the legitimacy authentication of soft switch to data creating user.
The username and password of input and the username and password comparison of soft switch storage, this process is the process that user validation is examined in soft switch.
The storage that S204, selection are opened in real time detects instruction and makes the file of instruction, so that file reading.
S205, the file of selecting to store detection instruction results file and making instruction results file, so that recording instruction execution result.Selection operation in S204 and S205 can be by manually selecting.
In this embodiment, whether effective interface routine and interface message processor (IMP), by timed sending heartbeat message, detect interface routine, if heartbeat is lost, interface routine can reconnect interface message processor (IMP) by auto-timeout.
Fig. 3 is after data creating of the present invention success, continues to process the flow chart of the instruction that user submits to.Comprise other command file of same user, also comprise the command file that other user submits to.After S112, the present invention can also comprise following flow process:
S301, startup be monitoring flow process in real time, the generation of monitor and detection command file or making command file.
In the monitoring file of specifying at interface routine, specify monitored directory and Log Directory, in this monitored directory, store and detect command file or make command file, in this Log Directory, store result file.Start interface process, complete the environmental preparation of automatic processing, comprise in advance login interface machine, complete session service user's name and cipher authentication.The number of files that now interface routine can be in 1 second scanning document folder.
S302, judged whether detect command file or make command file generate, if so, carry out S303, otherwise, carry out S301.
The processing file generating passes to after monitored directory, and interface process can find have file to exist in monitored file.Wherein, detect in command file and comprise at least one detection instruction, make command file and comprise at least one making instruction.
S303, according to detecting command file or making rise time of command file and sort.
S304, the detection command file that takes out generation the earliest from the queue sequence or making command file, judge that according to filename file is the data of being submitted to by which branch company, so that corresponding soft switch is sent in subsequent detection instruction or making instruction.
S305, read one detect instruction or make instruction.
Whether S306, verification detect instruction or make instruction correct, if correct, S307, otherwise, report an error, order not in allowed limits, and result is write to Log Directory.
S307, send interface message processor (IMP), processed by soft switch, and result is write to Log Directory.
S308, judge whether to detect in addition instruction or make instruction, if had, carry out S305, otherwise, carry out S309.
S309, judge whether to detect in addition instruction or make command file, if had, carry out S305, otherwise, carry out S301.
This embodiment is by time series, to the concurrent operations processing of ranking, fundamentally avoided the conflict of data creating.
In interface routine implementation, monitoring file is by locked, and newly-generated file will not included this execution scope in, after all executing above-mentioned flow process, remaining file is repeated with together with newly-generated file.Finally complete the data creating file that all branch companies submit to, open in real time EPON speech data.
Complete after making, monitored file is empty, and interface process continues this file of monitoring.
Fig. 4 is the system architecture diagram that EPON speech data of the present invention is opened in real time.This system comprise terminal, soft switch and be arranged on terminal and soft switch interface message processor (IMP) between interface routine.This system can also comprise database.
Fig. 5 is the structural representation of terminal and interface routine in the present invention.
Terminal comprises: login unit, legitimacy verification unit, terminal verification unit, data check unit, detection instruction generation unit, detection instruction results judging unit, making instruction generation unit and making instruction results judging unit.
Login unit, is disposed in the time of input Ethernet passive optical network (EPON) data real-time manufacturing website IP, shows the login interface for inputting user name and account password.
Whether legal legitimacy verification unit, be disposed at verified users name and account password.
Terminal verification unit, is disposed to validated user data configuration interface is provided, according to completing terminal verification in the parameter of data configuration interface input.
Wherein, the following content of terminal verification unit verification:
IP address is correct, does not comprise any nonnumeric content, and IP address range is within the scope of configuration;
Initial physical number is less than end physical number;
The difference of initial TID and end TID is the port number of equipment, should be identical with the value that finishes physical number-initial physical number+1.
Data check unit, is disposed at after terminal verification is passed through, and carries out data check, and whether checking IP address is reused.
Detect instruction generation unit, be disposed at after data check passes through, generate and detect instruction, and start first timer, this detection instruction comprise check node number whether can with and check whether IP address repeats.
Detect instruction results judging unit, be disposed at and judge that whether detection instruction results file is normal, and first timer is not overtime, if so, continue to carry out by making instruction generation unit, otherwise, return to client verification unit and continue execution.Detect in instruction results file and return results when number equals to detect instruction strip number and think normal.
Make instruction generation unit, be disposed to generate and make instruction, and start second timer.
Make instruction results judging unit, be disposed at and judge that whether making instruction results file is normal, and second timer is not overtime, if so, data creating success, soft switch generates EPON configuration, complete EPON speech data open-minded in real time, otherwise, terminal verification unit returned to, wherein, make instruction results file and comprise the content that returns results number and return results.Make in instruction results file and return results when number equals to make instruction strip number and think normal.
Also as shown in Figure 5.Interface routine comprises: detect instruction process unit and make instruction process unit.
Detect instruction process unit, be disposed at and monitor detection instruction, send and detect instruction to soft switch, receive the detection instruction results file that soft switch is returned, and send to the detection instruction results judging unit of terminal, wherein, detect instruction results file and comprise the content that returns results number and return results.
Make instruction process unit, be disposed at and monitor making instruction, send and make instruction to soft switch, receive the making instruction results file that soft switch is returned, and send to the making instruction results judging unit of terminal, wherein, this making instruction is the instruction that soft switch generates EPON configuration.
In a system embodiment of the present invention, the following operation of the mutual execution of interface routine and soft switch:
Interface routine calls interface message processor (IMP) in socket (SOCKET) connection of transmission control protocol (TCP), by username and password login interface machine, completes the legitimacy authentication of interface message processor (IMP) docking port program;
The making instruction of interface routine is forwarded to soft switch by interface message processor (IMP), signs in to soft switch, completes the legitimacy authentication of soft switch to data creating user;
Interface routine selects the storage of opening in real time to detect instruction and the file of making instruction, so that file reading;
Interface routine is selected storage to detect instruction results file and is made the file of instruction results file, so that recording instruction execution result.
In another system embodiment of the present invention, interface routine, after data creating success, starts monitoring flow process in real time, the generation of monitor and detection command file or making command file;
Judge whether to detect command file or made command file and generated, if, according to detecting command file or making rise time of command file and sort, from the queue sequence, take out the detection command file generating the earliest or make command file, according to filename, subsequent detection instruction or making instruction are sent to corresponding soft switch, otherwise, continue monitoring;
Read one and detect instruction or make instruction, whether verification detects instruction or makes instruction correct, if correct, send interface message processor (IMP), processed by soft switch, and result is write to Log Directory, otherwise, report an error, order not in allowed limits, and result is write to Log Directory;
Judge whether to detect in addition instruction or make instruction, if had, reading and detect instruction or make instruction, otherwise, judge whether to detect in addition command file or make command file, if had, read and detect instruction or make instruction, otherwise, monitoring continued.
In interface routine implementation, monitoring file is by locked, in monitoring file, comprise monitored directory and Log Directory, in this monitored directory, store and detect command file or make command file, in this Log Directory, store result file, newly-generated detection command file or making command file will not included this execution scope in, after all executing above-mentioned flow process, by remaining detection command file or make command file and newly-generated detection command file or make together with command file and repeat.
The present invention completes comparison, the verification that EPON opens data automatically, evaded that the efficiency that manual operation causes is low, error rate is high and the problem such as real-time is not strong.
Below by specific embodiment, the present invention is described in further detail.
Ba Nan branch company is used account: bndingli, password: * * * * * * behind login EPON data real-time manufacturing website, submits data on WEB.
The IP address of EPON is: 10.59.233.118, the initial physical number of configuration: 62749614, finish physical number: 62749637, initial TID:AG5800, finish TID:AG5823, EPON title: 11 unit 17F_HW_6101903_213 of Ba Nan face Longshan waterside town.
Terminal verification comprises following content:
IP address is correct, does not comprise any nonnumeric content, and IP address range is within the scope of branch company's permission configuration (this scope value is obtained by data base querying user related information);
Initial physical number is less than end physical number, and must be 6 beginnings;
The difference of initial TID and end TID is the port number of equipment;
The port number of equipment should with " finish physical number-initial physical number+1 " value identical;
The title of EPON can not exceed 35 characters, and does not allow for null value.
Data check comprises following content:
The IP address of EPON on database, inquire about less than;
The EPON physics section of the physical number Shi Gai branch company of EPON.
Subsequent treatment situation is described as follows:
By generation script being beaten to the mode of timestamp, formation time sequence, completes automatic processing one by one by time series, and the result of generation and generation script are distinguished by the suffix that increases res on filename.In this way, the speed and the quantity that send instruction to soft switch by interface message processor (IMP) are well controlled, and have also guaranteed multi-user concurrent operation.
The first step: obtain after user's input, generate and detect instruction " Ba Nan 20110322145415_pre.txt ", for example 4456:6=of Ba Nan 20110322145415_pre.txt " 10.59.233.118 ", 1=1,2=2147483647 at assigned catalogue; 4456:1=6101903,2=6101903; .Command content is: check whether IP address exists, check that whether magnanimity node number (soft switch switch parameter) is taken by other nodes, starts timer T1.
Second step: deliver to soft switch interface message processor (IMP) program by toBoss program and carry out afterwards and generate destination file " Ba Nan 20110322145415_pre_res.txt ", for example, ACK:2011-03-2214:54:13:4456:RETN=6671, DESC=" orders countless certificates to be returned "; ACK:2011-03-2214:54:13:4456:RETN=6671, DESC=" orders countless certificates to be returned ".If this file does not generate within the scope of the timer T1 specifying, system will be pointed out " toBoss is wrong without response ", and return data configuration interface part, and subsequent step is no longer carried out.
The 3rd step: judge whether normally according to " Ba Nan 20110322145415_pre_res.txt " result, basis for estimation is whether result that soft switch the is returned character string of " ordering countless certificates to be returned " occurs twice (and instruction number is relevant, there are several instructions just should return to how many times), if occur twice, generate real EPON data creating instruction " Ba Nan 20110322145415.txt ", for example, 7467:7=0, 5=" 11 unit 17F_HW_6101903_213 of Ba Nan face Longshan waterside town ", 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.Deliver to soft switch interface message processor (IMP) program by toBoss program and carry out afterwards and generate destination file " Ba Nan 20110322145415_res.txt "; If judgement " Ba Nan 20110322145415_pre_res.txt " file content " orders countless certificates to be returned ", character string occurrence number is less than 2, report an error to client, subsequent step is no longer carried out, and " Ba Nan 20110322145415.txt " file also can not generate.
The 4th step: judge that according to " Ba Nan 20110322145415_res.txt " whether soft switch data finally successfully generate, Ba Nan 20110322145415_res.txt 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 is whether result " RETN=0, ID=0, NUM=0, the RESULT=" character string that soft switch is returned occurs three times; If occur three times, data creating success; If " RETN=0, ID=0, NUM=0, RESULT=" character string occurrence number is less than 3 in judgement " Ba Nan 20110322145415_res.txt " file, reports an error to client, and present the final result that reports an error.If this file does not generate within the scope of the timer T2 specifying, system will be pointed out " toBoss is wrong without response ", and return data configuration interface part, and subsequent step is no longer carried out.
So far, described the present invention in detail.For fear of covering design of the present invention, details more known in the field are not described.Those skilled in the art, according to description above, can understand how to implement technical scheme disclosed herein completely.
May realize in many ways method of the present invention and device.For example, can realize method of the present invention and device by any combination of software, hardware, firmware or software, hardware, firmware.The said sequence that is used for the step of described method is only in order to describe, and the step of method of the present invention is not limited to above specifically described order, unless otherwise specified.In addition, in certain embodiments, can be also the program being recorded in recording medium by the invention process, these programs comprise the machine readable instructions for realizing the method according to this invention.Thereby the present invention also covers the recording medium of storing the program for carrying out the method according to this invention.
Although specific embodiments more of the present invention are had been described in detail by example, it should be appreciated by those skilled in the art, above example is only in order to describe, rather than in order to limit the scope of the invention.It should be appreciated by those skilled in the art, can without departing from the scope and spirit of the present invention, above embodiment be modified.Scope of the present invention is limited by claims.

Claims (12)

  1. The method that 1.EPON speech data is opened in real time, is characterized in that:
    Input Ethernet passive optical network (EPON) data real-time manufacturing website Internet protocol (IP) address, shows login interface;
    On login interface, input user name and account password is verified;
    After being verified, enter data configuration interface, at data configuration interface input parameter to complete terminal verification;
    Judge whether terminal verification is passed through, if passed through, enters data check, whether checking IP address is reused;
    Judge whether data check passes through, if passed through, terminal generates and detects instruction, and starts first timer, this detection instruction comprise check node number whether can with and check whether IP address repeats;
    Between terminal and soft switch interface message processor (IMP), interface routine is set, this interface routine monitors detection instruction, send and detect instruction to soft switch, receive the detection instruction results file that soft switch is returned, and send to terminal, wherein, detect instruction results file and comprise the content that returns results number and return results;
    Whether terminal judges detects instruction results file normal, and first timer is not overtime, and if so, terminal generates makes instruction, and starts second timer;
    Interface routine monitors making instruction, sends and makes instruction to soft switch, receives the making instruction results file that soft switch is returned, and sends to terminal, and wherein, this making instruction is the instruction that soft switch generates EPON configuration;
    Whether terminal judges is made instruction results file normal, and second timer is not overtime, if, data creating success, soft switch generates EPON configuration, completes EPON speech data open-minded in real time, otherwise, return data configuration interface, wherein, makes instruction results file and comprises the content that returns results number and return results.
  2. 2. the method that EPON speech data is opened in real time according to claim 1, is characterized in that:
    The following operation of the mutual execution of interface routine and soft switch:
    Interface routine calls interface message processor (IMP) in socket (SOCKET) connection of transmission control protocol (TCP), by username and password login interface machine, completes the legitimacy authentication of interface message processor (IMP) docking port program;
    The making instruction of interface routine is forwarded to soft switch by interface message processor (IMP), signs in to soft switch, completes the legitimacy authentication of soft switch to data creating user;
    Interface routine selects the storage of opening in real time to detect instruction and the file of making instruction, so that file reading;
    Interface routine is selected storage to detect instruction results file and is made the file of instruction results file, so that recording instruction execution result.
  3. 3. according to the method that described in claim 1 or 2, EPON speech data is opened in real time, it is characterized in that:
    Interface routine, after data creating success, is carried out following operation:
    A, startup be monitoring flow process in real time, the generation of monitor and detection command file or making command file;
    B, judged whether detect command file or make command file generate, if, according to detecting command file or making rise time of command file and sort, from the queue sequence, take out the detection command file generating the earliest or make command file, according to filename, subsequent detection instruction or making instruction are sent to corresponding soft switch, otherwise, turn back to A;
    C, read one detect instruction or make instruction;
    Whether D, verification detect instruction or make instruction correct, if correct, send interface message processor (IMP), and processed by soft switch, and result is write to Log Directory, otherwise, report an error, order not in allowed limits, and result is write to Log Directory;
    E, judge whether to detect in addition instruction or make instruction, if had, turn back to C, otherwise, carry out F;
    F, judge whether to detect in addition command file or make command file, if had, turn back to C, otherwise, turn back to A.
  4. 4. the method that EPON speech data is opened in real time according to claim 3, is characterized in that:
    In interface routine implementation, monitoring file is by locked, in monitoring file, comprise monitored directory and Log Directory, in this monitored directory, store and detect command file or make command file, in this Log Directory, store result file, newly-generated detection command file or making command file will not included this execution scope in, after all executing above-mentioned flow process, by remaining detection command file or make command file and newly-generated detection command file or make together with command file and repeat.
  5. 5. according to the method that described in claim 1 or 2, EPON speech data is opened in real time, it is characterized in that:
    Terminal verification comprises following content:
    IP address is correct, does not comprise any nonnumeric content, and IP address range is within the scope of configuration;
    Initial physical number is less than end physical number;
    The difference of initial terminal identifier (TID) and end TID is the port number of equipment, should be identical with the value that finishes physical number-initial physical number+1.
  6. 6. according to the method that described in claim 1 or 2, EPON speech data is opened in real time, it is characterized in that:
    Detect in instruction results file and return results when number equals to detect instruction strip number and think normal, make in instruction results file and return results when number equals to make instruction strip number and think normal.
  7. 7.EPON the system that speech data is opened in real time, is characterized in that, comprise terminal, soft switch and be arranged on terminal and soft switch interface message processor (IMP) between interface routine, wherein:
    Terminal comprises:
    Login unit, is disposed in the time of input Ethernet passive optical network (EPON) data real-time manufacturing website IP, shows the login interface for inputting user name and account password;
    Whether legal legitimacy verification unit, be disposed at verified users name and account password;
    Terminal verification unit, is disposed to validated user data configuration interface is provided, according to completing terminal verification in the parameter of data configuration interface input;
    Data check unit, is disposed at after terminal verification is passed through, and carries out data check, and whether checking IP address is reused;
    Detect instruction generation unit, be disposed at after data check passes through, generate and detect instruction, and start first timer, this detection instruction comprise check node number whether can with and check whether IP address repeats;
    Detect instruction results judging unit, be disposed at and judge that whether detection instruction results file is normal, and first timer is not overtime, if so, continue to carry out by making instruction generation unit, otherwise, return to client verification unit and continue execution;
    Make instruction generation unit, be disposed to generate and make instruction, and start second timer;
    Make instruction results judging unit, be disposed at and judge that whether making instruction results file is normal, and second timer is not overtime, if so, data creating success, soft switch generates EPON configuration, complete EPON speech data open-minded in real time, otherwise, terminal verification unit returned to, wherein, make instruction results file and comprise the content that returns results number and return results;
    Interface routine, comprising:
    Detect instruction process unit, be disposed at and monitor detection instruction, send and detect instruction to soft switch, receive the detection instruction results file that soft switch is returned, and send to the detection instruction results judging unit of terminal, wherein, detect instruction results file and comprise the content that returns results number and return results;
    Make instruction process unit, be disposed at and monitor making instruction, send and make instruction to soft switch, receive the making instruction results file that soft switch is returned, and send to the making instruction results judging unit of terminal, wherein, this making instruction is the instruction that soft switch generates EPON configuration.
  8. 8. the system that EPON speech data is opened in real time according to claim 7, is characterized in that:
    The following operation of the mutual execution of interface routine and soft switch:
    Interface routine calls interface message processor (IMP) in socket (SOCKET) connection of transmission control protocol (TCP), by username and password login interface machine, completes the legitimacy authentication of interface message processor (IMP) docking port program;
    The making instruction of interface routine is forwarded to soft switch by interface message processor (IMP), signs in to soft switch, completes the legitimacy authentication of soft switch to data creating user;
    Interface routine selects the storage of opening in real time to detect instruction and the file of making instruction, so that file reading;
    Interface routine is selected storage to detect instruction results file and is made the file of instruction results file, so that recording instruction execution result.
  9. 9. according to the system that described in claim 7 or 8, EPON speech data is opened in real time, it is characterized in that:
    Interface routine, after data creating success, starts monitoring flow process in real time, the generation of monitor and detection command file or making command file;
    Judge whether to detect command file or made command file and generated, if, according to detecting command file or making rise time of command file and sort, from the queue sequence, take out the detection command file generating the earliest or make command file, according to filename, subsequent detection instruction or making instruction are sent to corresponding soft switch, otherwise, continue monitoring;
    Read one and detect instruction or make instruction, whether verification detects instruction or makes instruction correct, if correct, send interface message processor (IMP), processed by soft switch, and result is write to Log Directory, otherwise, report an error, order not in allowed limits, and result is write to Log Directory;
    Judge whether to detect in addition instruction or make instruction, if had, reading and detect instruction or make instruction, otherwise, judge whether to detect in addition command file or make command file, if had, read and detect instruction or make instruction, otherwise, monitoring continued.
  10. 10. the system that EPON speech data is opened in real time according to claim 9, is characterized in that:
    In interface routine implementation, monitoring file is by locked, in monitoring file, comprise monitored directory and Log Directory, in this monitored directory, store and detect command file or make command file, in this Log Directory, store result file, newly-generated detection command file or making command file will not included this execution scope in, after all executing above-mentioned flow process, by remaining detection command file or make command file and newly-generated detection command file or make together with command file and repeat.
  11. 11. according to the system that described in claim 7 or 8, EPON speech data is opened in real time, it is characterized in that:
    The following content of terminal verification unit verification:
    IP address is correct, does not comprise any nonnumeric content, and IP address range is within the scope of configuration;
    Initial physical number is less than end physical number;
    The difference of initial TID and end TID is the port number of equipment, should be identical with the value that finishes physical number-initial physical number+1.
  12. 12. according to the system that described in claim 7 or 8, EPON speech data is opened in real time, it is characterized in that:
    Detect in instruction results file and return results when number equals to detect instruction strip number and think normal, make in instruction results file and return results when number equals to make instruction strip number and think normal.
CN201210394322.XA 2012-10-17 2012-10-17 The method and system that EPON speech datas are opened in real time Active CN103780573B (en)

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 true CN103780573A (en) 2014-05-07
CN103780573B 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 (4)

* Cited by examiner, † Cited by third party
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
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
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
CN103780573B (en) 2017-07-14

Similar Documents

Publication Publication Date Title
CN101605108B (en) Method, system and apparatus for instant communication
CN105450582B (en) Method for processing business, terminal, server and system
CN112235265B (en) System and method for external network to access project progress
US20130055384A1 (en) Dealing with web attacks using cryptographically signed http cookies
CN105187372A (en) Method for data processing based on mobile application entrance, device and system
CN109660330B (en) Method and system for identity authentication on block chain
CN112800411A (en) Multi-protocol and multi-mode supporting safe and reliable identity authentication method and device
CN110365483A (en) Cloud platform authentication method, client, middleware and system
CN101420416A (en) Identity management platform, service server, login system and federation method
CN104821940A (en) Method and equipment for sending portal redirected address
CN102143131B (en) User logout method and authentication server
CN102970308B (en) A kind of user authen method and server
EP2592796A1 (en) System and method for multiple accounts to access internet message access protocol server
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
CN111404918A (en) Cloud mobile phone distributed service emergency authentication method, device and system
CN104796408A (en) Single-point live login method and single-point live login device
CN109726545B (en) Information display method, equipment, computer readable storage medium and device
CN109714363B (en) Method and system for modifying switch password
CN104348613A (en) User verification method, apparatus and system
CN106331074B (en) A kind of certification switching method
CN105681291A (en) Method and system for realizing unified authentication of multiple clients
JP5645891B2 (en) Software providing system, portal server, providing server, authentication method, providing method, and program
CN103780573A (en) Method and system for real-time opening of EPON speech data
CN115529154A (en) Login management method, login management device, electronic device and readable storage medium

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