CN108390904A - A kind of Dialing Method of active termination residual session - Google Patents
A kind of Dialing Method of active termination residual session Download PDFInfo
- Publication number
- CN108390904A CN108390904A CN201810007909.8A CN201810007909A CN108390904A CN 108390904 A CN108390904 A CN 108390904A CN 201810007909 A CN201810007909 A CN 201810007909A CN 108390904 A CN108390904 A CN 108390904A
- Authority
- CN
- China
- Prior art keywords
- dialing
- session
- active termination
- success
- session information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/143—Termination or inactivation of sessions, e.g. event-controlled end of session
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2854—Wide area networks, e.g. public data networks
- H04L12/2856—Access arrangements, e.g. Internet access
- H04L12/2858—Access network architectures
- H04L12/2859—Point-to-point connection between the data network and the subscribers
Abstract
It terminates the invention discloses a kind of active and remains the Dialing Method of session.The present invention is based on the PPP(Point to Point Protocol)s of LAN, this session information is recorded after dial-up success, second of preceding session information for reading last dial-up success that dials, the actively termination residual session of PADT messages is sent to server according to the session information of last time dial-up success, is then dialled again.By first sending the actively termination residual session of PADT messages before equipment restarts dialing, to avoid the problem that because unit exception power-off user restarts dialing and needs to wait for session timeout.
Description
Technical field
The present invention relates to data switching networks fields, more particularly to the dialing of the PPP(Point to Point Protocol) based on LAN connects
Enter to interconnect network method.
Background technology
PPPOE:Point-to- point communication associations of the Point to Point Protocol over Ethernet based on LAN
View.
PPP(Point to Point Protocol) dial-up access internet based on LAN is that many telecom operators set to domestic consumer
A kind of network access set, but the PPPoE servers of telecom operators are often arranged to individual session pattern, that is to say, that
One MAC Address simultaneously can only dial-up success it is primary.When carrying out again when the session of first time dial-up success is unclosed
When two-stage dialing, PPPoE servers will be refused, until the conversation end of front.And the PPPoE of telecom operators' setting
Server session time-out time was generally differed at 5~10 minutes, that is to say, that once device looses power is restarted, user will be 5~10
It can not dial up on the telephone in minute.Such case frequently occurs in after device powers down restarts, and equipment has little time to establish before interrupting
Session, cause to dial after restarting unsuccessful, could dial-up success after the session timeout of front can only be waited for discharge.
Invention content
In order to solve the above-mentioned technical problem, it terminates the object of the present invention is to provide a kind of active and remains the dialing party of session
Method solves because unit exception powers off, and user restarts the problem of dialing needs to wait for overtime session.
The technical solution adopted in the present invention is:
A kind of Dialing Method of active termination residual session, this approach includes the following steps:
Step 1:When equipment dial-up success, the session information of dial-up success is recorded;
Step 2:When device powers down is restarted, the session information of last dialing is read;
Step 3:PADT messages are sent according to session information;
The PADT messages are for the residual session that actively terminates.
Further, the Dialing Method further includes judging whether the session information of last dialing preserves success.Into one
Step ground, the Dialing Method further include parsing session information.
Further, the Dialing Method further include judge session information whether successfully resolved.
Further, the session information includes session id, MAC address of server and client mac address.
Further, the dialing equipment can be home gateway and/or router.
Further, PPP(Point to Point Protocol) of the Dialing Method based on LAN, that is, PPPOE agreements, can pass through pppd
Source code is realized.
Further, the dialing equipment is based on PPPOE agreements and carrier server interactive communication.
Further, the step 3 pppd increase income flow the discovery stages carry out.
Further, the method is run under OpenWRT systems, and session information is stored in writeable file system.
The beneficial effects of the invention are as follows:
It terminates the present invention provides a kind of active and remains the Dialing Method of session, by first being sent before equipment restarts dialing
The actively termination residual session of PADT messages solves because unit exception power-off user restarts dialing and needs to wait for asking for overtime session
Topic, convenient for quickly accessing internet when user of redialing.
Description of the drawings
Fig. 1 is savePPPoESession function interface flow charts
Fig. 2 is terminateLastSession function interface flow charts
Fig. 3 is a specific embodiment schematic flow diagram of the actively Dialing Method of termination residual session
Specific implementation mode
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.
It terminates the present invention provides a kind of active and remains the Dialing Method of session, the present invention is based on the point-to-point logical of LAN
Agreement is interrogated, this session information is recorded after dial-up success, second of preceding session information for reading last dial-up success that dials,
The actively termination residual session of PADT messages is sent to server according to the session information of last time dial-up success, is then dialled again
Number.
In the present embodiment, router and/or home gateway enter Agent Status, router after being communicated with carrier server
And/or home gateway communicated with user after enter in advance dial state.
It is the step of Dialing Method in the present embodiment:Equipment dial-up success;Record the session information of dial-up success;Equipment is disconnected
Electricity is restarted;Read the session information of last dialing;The last session of PADT messages termination is sent according to session information;Again it dials
Number;Again dial-up success.
SavePPPoESession functions defined in the present embodiment, session information for preserving dial-up success,
SavePPPoESession functions can be by waitForPADS function calls.The present embodiment also defines simultaneously
TerminateLastSession functions, for sending PADT messages, terminate last session.
The specific implementation mode of the present invention is described further below in conjunction with the accompanying drawings:
With reference to figure 1, Fig. 1 is savePPPoESession function interface flow charts.In fact, this flow is for defining
SavePPPoESession function interfaces, the function is by the session information of PPPoE dial-up success according to [session id]:[PPPoE takes
Business device MAC Address] format of [pppoe client MAC Address] is saved in file/etc/ppp/lastsession.
This function flow includes the following steps:
Step A1:Function starts;
Step A2:By PPPoE dialing informations according to [session id]:[PPPoE MAC address of server] [pppoe client
MAC Address] format be spliced into pppoe session information;
Step A3:Opening/etc/ppp/lastsession files;
Step A4:Judge whether opening/etc/ppp/lastsession files succeed, A5 is entered step if success
Processing;Otherwise enter A7 processing;
Step A5:Pppoe session information is written to/etc/ppp/lastsession files;Step A6:This step is
Closing/etc/ppp/lastsession files;
Step A7:Function terminates.
With reference to figure 2, Fig. 2 is terminateLastSession function interface flow charts.In fact, this flow is for defining
TerminateLastSession function interfaces, which is first turned on/etc/ppp/lastsession files, if this document
It is not present or content is sky, then it represents that before without dial-up success, at this moment function return;If file exists and is not sky,
According to [session id]:The format resolution file content of [PPPoE MAC address of server] [pppoe client MAC Address] obtains
To session id, PPPoE MAC address of server and pppoe client MAC Address;Then by PPPoE MAC address of server and
In the update to conn connections of pppoe client MAC Address;Then PADT messages termination upper one is sent with updated conn connections
Secondary residual session
This function flow includes the following steps:
Step B1:This step starts for function;
Step B2:This step is opening/etc/ppp/lastsession files;
Step B3:This step be judge whether opening/etc/ppp/lastsession files succeed, if successfully if into
Enter step B4 processing;Otherwise enter A8 processing;
Step B4:This step is to judge whether reading/etc/ppp/lastsession files succeed and file is not for sky,
B5 processing is entered step if success;Otherwise enter B7 processing;
Step B5:This step is according to [session id]:[PPPoE MAC address of server] [pppoe client MAC Address]
Whether format parsing session information succeeds, and B6 processing is entered step if success;Otherwise enter B7 processing;
Step B6:This step is to send the actively termination residual session of PADT messages using the session information of successfully resolved;
Step B7:This step terminates for function.
The specific implementation mode of the present invention is described further with reference to a specific embodiment:
With reference to figure 3, Fig. 3 is a specific embodiment schematic flow diagram of the actively Dialing Method of termination residual session.
Dialing Method includes the following steps:
Step S1:This step is equipment first time dial-up success;
Step S2:This step enters session stage for pppd processes of increasing income;
Step S3:This step is pppd processes calling savePPPoESession function interfaces preservation dialer session letter of increasing income
Breath;
Step S4:This step is restarted for device looses power;
Step S5:This step is pppd processes calling terminateLastSession function interfaces of increasing income after equipment is restarted
Actively terminate the last remaining pppoe session that dials;
Step S6:This step dials again for pppd processes of increasing income;
Step S7:This step is equipment dial-up success again.
In fact, this method is in the waitForPADS functions during pppd increases income flow, dial-up success enters PPPoE meetings
SavePPPoESession function interfaces are called to preserve PPPoE dialing informations after the words stage.Finally in pppd increases income flow
The discovery stages call terminateLastSession function interfaces termination last residual before sending the dialing of PADI messages
The pppoe session stayed also can actively terminate last pppoe session and can dial at once accordingly even when device looses power is restarted
Work(withouts waiting for session timeout.
As being further improved for scheme, send PADT messages step pppd increase income flow the discovery stages into
Row.
As being further improved for scheme, this method is run under OpenWRT systems, and session information is stored in can written document
In system.
It is to be illustrated to the preferable implementation of the present invention, but the invention is not limited to the implementation above
Example, those skilled in the art can also make various equivalent variations or be replaced under the premise of without prejudice to spirit of that invention
It changes, these equivalent deformations or replacement are all contained in the application claim limited range.
Claims (10)
1. a kind of Dialing Method of active termination residual session, this approach includes the following steps:
Step 1:When equipment dial-up success, the session information of dial-up success is recorded;
Step 2:When device powers down is restarted, the session information of last dialing is read;
Step 3:PADT messages are sent according to session information;
The PADT messages are for the residual session that actively terminates.
2. a kind of Dialing Method of active termination residual session according to claim 1, which is characterized in that the dialing party
Method further includes judging whether the session information of last dialing preserves success.
3. a kind of Dialing Method of active termination residual session according to claim 1, which is characterized in that the dialing party
Method further includes parsing session information.
4. a kind of Dialing Method of active termination residual session according to claim 1, which is characterized in that the dialing party
Method further include judge session information whether successfully resolved.
5. a kind of Dialing Method of active termination residual session according to claim 1, which is characterized in that the session letter
Breath includes session id, MAC address of server and client mac address.
6. a kind of Dialing Method of active termination residual session according to claim 1, which is characterized in that the dialing is set
Standby can be home gateway and/or router.
7. a kind of Dialing Method of active termination residual session according to claim 1, which is characterized in that the dialing party
PPP(Point to Point Protocol) of the method based on LAN, that is, PPPOE agreements, can be realized by pppd source codes.
8. a kind of Dialing Method of active termination residual session according to claim 1, which is characterized in that the dialing is set
It is standby to be based on PPPOE agreements and carrier server interactive communication.
9. a kind of Dialing Method of active termination residual session according to claim 1, which is characterized in that the step 3
The discovery stages progress for flow of increasing income in pppd.
10. a kind of Dialing Method of active termination residual session according to claim 1, which is characterized in that the method
It is run under OpenWRT systems, session information is stored in writeable file system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810007909.8A CN108390904A (en) | 2018-01-04 | 2018-01-04 | A kind of Dialing Method of active termination residual session |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810007909.8A CN108390904A (en) | 2018-01-04 | 2018-01-04 | A kind of Dialing Method of active termination residual session |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108390904A true CN108390904A (en) | 2018-08-10 |
Family
ID=63076888
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810007909.8A Pending CN108390904A (en) | 2018-01-04 | 2018-01-04 | A kind of Dialing Method of active termination residual session |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108390904A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112492089A (en) * | 2020-11-09 | 2021-03-12 | 普联技术有限公司 | Dialing method and system of communication equipment and communication equipment |
CN115242858A (en) * | 2022-07-21 | 2022-10-25 | 山石网科通信技术股份有限公司 | Message processing method and device, electronic equipment and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050195799A1 (en) * | 2004-03-04 | 2005-09-08 | Wiline Networks, Inc. | Method and device for coupling a POTS terminal to a non-PSTN communications network |
CN1852394A (en) * | 2005-10-26 | 2006-10-25 | 华为技术有限公司 | IP top-set redialing method |
CN103209359A (en) * | 2012-01-16 | 2013-07-17 | 深圳长城开发科技股份有限公司 | Handling method for PPPOE (point-to-point protocol over Ethernet) access network anomaly of IP (Internet protocol) set top box |
CN104053251A (en) * | 2013-03-14 | 2014-09-17 | 中兴通讯股份有限公司 | Session end method and device thereof |
CN105429832A (en) * | 2015-11-09 | 2016-03-23 | 上海斐讯数据通信技术有限公司 | Dialing method and system based on PPPOE network, and router |
-
2018
- 2018-01-04 CN CN201810007909.8A patent/CN108390904A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050195799A1 (en) * | 2004-03-04 | 2005-09-08 | Wiline Networks, Inc. | Method and device for coupling a POTS terminal to a non-PSTN communications network |
CN1852394A (en) * | 2005-10-26 | 2006-10-25 | 华为技术有限公司 | IP top-set redialing method |
CN103209359A (en) * | 2012-01-16 | 2013-07-17 | 深圳长城开发科技股份有限公司 | Handling method for PPPOE (point-to-point protocol over Ethernet) access network anomaly of IP (Internet protocol) set top box |
CN104053251A (en) * | 2013-03-14 | 2014-09-17 | 中兴通讯股份有限公司 | Session end method and device thereof |
CN105429832A (en) * | 2015-11-09 | 2016-03-23 | 上海斐讯数据通信技术有限公司 | Dialing method and system based on PPPOE network, and router |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112492089A (en) * | 2020-11-09 | 2021-03-12 | 普联技术有限公司 | Dialing method and system of communication equipment and communication equipment |
CN112492089B (en) * | 2020-11-09 | 2022-05-24 | 普联技术有限公司 | Dialing method and system of communication equipment and communication equipment |
CN115242858A (en) * | 2022-07-21 | 2022-10-25 | 山石网科通信技术股份有限公司 | Message processing method and device, electronic equipment and computer readable storage medium |
CN115242858B (en) * | 2022-07-21 | 2024-02-09 | 山石网科通信技术股份有限公司 | Message processing method, device, electronic equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6883023B1 (en) | Method apparatus and communications system for companion information and network appliances | |
US7099288B1 (en) | Telephonic addressing for establishing simultaneous voice and computer network connections | |
US9048926B2 (en) | Multi-card mobile terminal and SIM card data dumping method thereof | |
EP1816840A1 (en) | Device supporting multiple pathway telephony bridging | |
CN106559591B (en) | Mobile phone terminal conversation method and device based on call forwarding | |
US7643470B2 (en) | Method and an associated device for setting up a transfer of data between two communications devices | |
ZA200204152B (en) | A method of supplying information to a user of a mobile station. | |
WO2012050547A1 (en) | System and method for providing automatic determination of a call type in telephony services over a data network | |
CN109005107B (en) | Communication method, intelligent terminal and device with storage function | |
EP2175606A1 (en) | A method, an exchange and a device for conversation handover between the terminals | |
EP3157221B1 (en) | Communication service processing method and device in circuit switch domain, and storage medium | |
CN108390904A (en) | A kind of Dialing Method of active termination residual session | |
CN101170829B (en) | A soft switching system and method for call limit based on black and white list | |
WO2009006904A1 (en) | A sim card, a system, and a method for a mobile communication device for establishing and/or maintaining access to internet communication services and a method for manufacturing such a sim card | |
JP5518099B2 (en) | Communication path establishment method using identification information of gateway server and mobile communication terminal | |
EP1428375B1 (en) | Telephone call dialling | |
CN101299764A (en) | Method for backupping broadband access server for PPPOE access service | |
JP3930215B2 (en) | Information communication system and switching connection method of information communication system | |
CN101867904A (en) | Smart dialing telephone terminal, system and method | |
CN107018351A (en) | The method and apparatus of voice call backup | |
CN111130862A (en) | Main/standby system switching method and device based on IPPBX | |
JP4697594B2 (en) | PDP context control system, method, program, and portable terminal | |
CN110505356A (en) | System is established in call method for building up and call | |
CN110620767B (en) | Office software speed dialing method and system based on IMS core network | |
CN108924374B (en) | Soft switch calling method, soft switch equipment and called end ONU |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180810 |
|
RJ01 | Rejection of invention patent application after publication |