CN107835257B - Session management method and device - Google Patents

Session management method and device Download PDF

Info

Publication number
CN107835257B
CN107835257B CN201711316822.0A CN201711316822A CN107835257B CN 107835257 B CN107835257 B CN 107835257B CN 201711316822 A CN201711316822 A CN 201711316822A CN 107835257 B CN107835257 B CN 107835257B
Authority
CN
China
Prior art keywords
cpe
acs
session
request
sent
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
Application number
CN201711316822.0A
Other languages
Chinese (zh)
Other versions
CN107835257A (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.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks Co 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 Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN201711316822.0A priority Critical patent/CN107835257B/en
Publication of CN107835257A publication Critical patent/CN107835257A/en
Application granted granted Critical
Publication of CN107835257B publication Critical patent/CN107835257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention provides a session management method and device, relates to the field of communication, and can solve the problem of low timeliness of user services. The scheme comprises the following steps: the ACS receives a first session establishment request sent by the CPE so as to establish a current session; the ACS sends a plan notification request to the CPE; the plan notification request comprises a preset time interval and is used for indicating that the CPE at least passes the preset time interval and requesting to establish the next session of the current session after the current session is ended; the ACS receives a plan notification response sent by the CPE; if the ACS receives the first task request after the first duration, the ACS forwards the first task request to the CPE; wherein the first time length is less than or equal to a preset time interval; the ACS receives a first task response sent by the CPE; if the ACS determines that the preset time interval passes after the first task response is received, the ACS does not receive the second task request, and the ACS sends a current session ending instruction to the CPE to end the current session. The method and the device can be applied to firewall or NAT scenes.

Description

Session management method and device
Technical Field
The present invention relates to the field of communications, and in particular, to a session management method and apparatus.
Background
TR069(Technical Reports 069) is one of Technical specifications developed by Digital Subscriber Line (DSL) forum, and provides a way to perform remote centralized management on devices such as gateways, routers, set-top boxes and the like in a home network from a network side. TR069 defines a user terminal wide area network Management Protocol (CWMP, CPE WAN Management Protocol). In the framework of CWMP, two types of logical devices are mainly included: a managed Customer Premise Equipment (CPE) and an Automatic Configuration Server (ACS) responsible for management. The ACS and CPE interact by establishing a session. For example, when the user needs to set the notification (info) message period of the CPE to 300s, the ACS may initiate the request actively, and the processing flow is as shown in fig. 1:
1. and the CPE monitors the TCP port and sends the HTTP URL address of the CPE to the ACS through the info message. Wherein HTTP is an abbreviation of hypertext Transfer Protocol (hypertext Transfer Protocol), and URL is an abbreviation of Uniform Resource Locator (URL).
2. The user sends a request to the ACS through the user terminal, wherein the request is used for indicating the ACS to set the notification message period of the CPE to be 300 s.
3. And the ACS sends an HTTP GET request to the CPE according to the HTTP URL address of the CPE.
4. The CPE authenticates to the ACS.
5. After the CPE successfully authenticates the ACS, a connection request response is sent to the ACS, wherein the connection request response comprises: the HTTP status code "200 (OK)" or "204 (Not Content)".
6. The CPE determines whether to establish a session. Specifically, when the connection request response is the HTTP status code "200 (OK)" and the CPE itself is not in a session (for example, a session with another ACS), the CPE establishes a session with the ACS according to the ACS address within 30 seconds after sending the connection request response.
7. The CPE establishes a TCP connection with the ACS.
In the above scenario, the ACS may perform information interaction with the CPE through a session actively established by the CPE, but when the CPE is under an Address Translation (NAT) gateway, because the CPE does not have a public Network Address, the ACS cannot actively establish a session with the CPE, and thus cannot actively send an HTTP GET request to the CPE, and also cannot send a corresponding task request (i.e., an instruction) of a user to the CPE. In addition, when the CPE is in a firewall scenario, the ACS cannot actively establish a connection with the CPE. The service of the user has timeliness requirements, and if the user cannot surf the internet within a preset time (for example, within 5 seconds), the user experience is affected, and the user satisfaction is reduced.
Disclosure of Invention
Embodiments of the present invention provide a session management method and apparatus, which can solve the problem that timeliness of a user service is reduced when an ACS cannot actively send an HTTP GET request to a CPE.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, an embodiment of the present application provides a session management method, including:
the ACS receives a first session establishment request sent by the CPE, wherein the first session establishment request is used for requesting to establish a current session;
the ACS sends a plan notification request to the CPE; the plan notification request comprises a preset time interval and is used for indicating that the CPE at least passes the preset time interval and requesting to establish the next session of the current session after the current session is ended;
the ACS receives a plan notification response sent by the CPE;
after receiving the plan notification response, if the ACS receives a first task request sent by the user terminal after a first time length, the ACS forwards the first task request to the CPE; wherein the first time length is less than or equal to a preset time interval;
the ACS receives a first task response sent by the CPE;
if the ACS determines that a preset time interval passes after the first task response is received, the ACS does not receive a second task request sent by the user terminal, and the ACS sends a current session ending instruction to the CPE; and the current session ending instruction is used for indicating ending of the current session.
In a second aspect, an embodiment of the present application provides a session management method, including:
the CPE sends a first session establishment request to the ACS, wherein the first session establishment request is used for requesting to establish the current session;
the method comprises the steps that a CPE receives a plan notification request sent by an ACS, wherein the plan notification request comprises a preset time interval and is used for indicating that the CPE at least passes the preset time interval and requesting to establish the next session of the current session after the current session is finished;
the CPE sends a plan notification response to the ACS;
at least after a preset time interval and after receiving a current session ending instruction sent by the ACS, the CPE sends a second session establishment request to the ACS, the second session establishment request is used for requesting to establish the next session of the current session, and the current session ending instruction is used for indicating to end the current session. In a third aspect, an embodiment of the present application provides an ACS, including:
a receiving unit, configured to receive a first session establishment request sent by a CPE, where the first session establishment request is used to request establishment of a current session;
a transmitting unit for transmitting a plan notification request to the CPE; the plan notification request comprises a preset time interval and is used for indicating that the CPE at least passes the preset time interval and requesting to establish the next session of the current session after the current session is ended;
a receiving unit, further configured to receive a schedule notification response sent by the CPE;
the sending unit is further used for forwarding the first task request to the CPE after the receiving unit receives the plan notification response and the first task request sent by the user terminal is received through the receiving unit after the first time length; wherein the first time length is less than or equal to a preset time interval;
a receiving unit configured to receive a first task response sent by the CPE;
the sending unit is further used for sending a current session ending instruction to the CPE if the determining unit determines that a preset time interval passes after the first task response is received and a second task request sent by the user terminal is not received; and the current session ending instruction is used for indicating ending of the current session.
In a fourth aspect, an embodiment of the present application provides a CPE, including:
a sending unit, configured to send a first session establishment request to an ACS, where the first session establishment request is used to request establishment of a current session;
a receiving unit, configured to receive a plan notification request sent by an ACS, where the plan notification request includes a preset time interval, and is used to indicate that at least the preset time interval elapses by a CPE, and after a current session ends, request to establish a next session of the current session;
a sending unit, further configured to send a plan notification response to the ACS;
and the sending unit is further configured to send a second session establishment request to the ACS after at least a preset time interval elapses and a current session end instruction sent by the ACS is received, where the second session establishment request is used to request establishment of a next session of the current session, and the current session end instruction is used to instruct end of the current session.
And compared with the CPE, the Inform message is sent according to a preset period, and in-form conversation is established. If the user terminal sends the task request within the preset period, it still needs to wait for the CPE to establish an info session, which results in a reduction in timeliness of the user service. In this embodiment of the present application, after receiving a first session establishment request sent by a CPE, an ACS may send a plan notification request to the CPE, indicate that a preset time interval has elapsed at least by the CPE, and request to establish a next session of a current session after the current session is ended. The method and the device can ensure that the next session is established between the CPE and the ACS quickly, so that the task request sent by the user at any time can be responded by the ACS and the CPE quickly, and the timeliness of user services is improved. In addition, in the embodiment of the application, a large number of messages cannot be sent when the ACS and the CPE keep conversation, and the problem of paralysis of an ACS system cannot be caused.
Drawings
FIG. 1 is a schematic diagram illustrating an interaction between an ACS and a CPE to establish a session according to the prior art;
FIG. 2 is a system architecture diagram according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating an interaction between an ACS and a CPE to establish a session according to the prior art;
fig. 4 is a schematic signal interaction diagram of a session management method according to an embodiment of the present application;
fig. 5 is a schematic diagram of a protocol layer of an info message according to an embodiment of the present application;
fig. 6 is a schematic diagram of time nodes after an ACS receives a schedule notification response and before a current session end instruction is sent according to an embodiment of the present application;
fig. 7 is a schematic signal interaction diagram of a session management method according to an embodiment of the present application;
fig. 8 is a schematic diagram of time nodes after an ACS receives a schedule notification response and before a current session end instruction is sent according to an embodiment of the present application;
fig. 9 is a schematic diagram of time nodes after an ACS receives a schedule notification response and before a current session end instruction is sent according to an embodiment of the present application;
fig. 10 is a schematic signal interaction diagram of a session management method according to an embodiment of the present application;
FIG. 11 is a schematic diagram of an ACS according to an embodiment of the present application;
FIG. 12 is a schematic diagram of an ACS according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a CPE according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of a CPE according to an embodiment of the present application.
Detailed Description
The following describes a session management method and apparatus provided in an embodiment of the present invention in detail with reference to the accompanying drawings. The terms "first" and "second," and the like in the description and claims of the present application and the above-described drawings are used for distinguishing between different objects and not for limiting a particular order. For example, the first task request and the second task request are only for distinguishing different task requests, and the sequence order thereof is not limited.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship; in the formula, the character "/" indicates that the preceding and following related objects are in a relationship of "division".
It should be noted that in the embodiments of the present invention, "of", "corresponding", and "corresponding" may be sometimes used in combination, and it should be noted that the intended meaning is consistent when the difference is not emphasized.
As shown in fig. 2, a system architecture diagram provided by the present application includes network devices such as an ACS, a CPE, a NAT gateway, and a server. The ACS may perform configuration, diagnostics, upgrades, etc. related to the CPE. When the CPE is under the NAT gateway, the CPE does not have a public network address, and the private network address needs to be converted into the public network address through the NAT gateway to access the external network, so that the ACS cannot actively establish connection with the CPE. The ACS, the CPE, the NAT gateway and the server can communicate with each other through the Internet. The Interface between the ACS and the server is a Northbound Interface (Northbound Interface), which is an Interface provided upward, that is, an Interface provided for other manufacturers or operators to access and manage. The server includes, but is not limited to, a Portal server, a service configuration server, or a third party server. The Interface between ACS and CPE or NAT gateway is Southbound Interface. The southbound interface is an interface provided downwards, namely an interface for managing network management or equipment of other manufacturers.
For example, in the architecture diagram shown in fig. 2, the steps for performing user web authentication are as follows:
1. the user A associates wifi through a user terminal (such as a mobile phone).
2. The user A opens the browser, initiates an HTTP request, and the CPE intercepts the HTTP request and redirects the HTTP request to the portal server in response to the HTTP 302.
Wherein, the interception is that the HTTP request message can not be sent to the destination address. The redirection means that after receiving the HTTP request, the redirection server sends an HTTP 302 redirection packet to the user terminal of the user and carries a portal server address. After receiving the redirection message, the device terminal retransmits the HTTP request message to the portal server, and the content of the portal server is accessed by the final user.
3. The user A inputs a user name and a password and submits the user name and the password to a portal server.
And 4, after the Portal server verifies the user name and the password successfully, requesting the ACS through a northbound interface of the ACS to enable the CPE to release the user A.
And 5, after receiving the release request, the ACS sends a release instruction to the CPE through the CWMP.
And 6, the CPE releases the user A according to the release instruction so that the user A passes the web authentication and can normally surf the internet.
In the above scenario, since the CPE is located below the NAT gateway, the ACS can only perform information interaction with the CPE through the session actively established by the CPE, but the ACS cannot actively establish a session with the CPE, and thus the ACS cannot actively send the HTTP GET request to the CPE, and the release instruction cannot be actively sent to the CPE. The user internet service has timeliness requirement, and if the user can not access the internet within corresponding time (for example, within 5 seconds), the user satisfaction is reduced, and the like.
In a possible design, when the CPE is located below the NAT gateway, in order to solve the problem that the ACS cannot actively establish a connection with the CPE and increase the delay of the user internet service, the CPE may send an Inform message according to a preset period and establish an info session. The event name carried by the Inform message may be set to 2 period. The ACS may issue the task request to the CPE through the session after the session is established. Generally, the preset period is short, for example, the preset period may be 5 s.
For example, as shown in fig. 3, suppose that the CPE sends an info message every 5 seconds, after the ACS finishes the session for 1s, the user a triggers a task request of passing the user a through the user terminal. Thus, after 4 seconds, that is, when the ACS receives the info message sent by the CPE again, the ACS may send the task request of the user a to the CPE, so that the CPE can release the user a. Therefore, if the user sends the task request after the ACS finishes the session, it may need to wait for the CPE to establish the info session, which results in a reduction in timeliness of the user service. Moreover, when the CPE reaches orders of magnitude of tens of thousands, the ACS is too stressful to manage the in-form session, which may cause the ACS system to crash.
In another possible design, in order to solve the problem that the ACS cannot actively send the HTTP GET request to the CPE and thus the delay of the user internet service is increased, the CPE and the ACS may respectively establish a TCP long connection with an Extensible Messaging and Presence Protocol (XMPP) Server (Server). The CPE may trigger an info session through the middleman model. Where XMPP is an extensible markup language (XML) based protocol that allows internet users to send instant messages to other users on the internet, which may differ from other internet users in their operating systems and browsers. However, in the above possible design, both the CPE and the ACS need to additionally establish a long TCP connection, and when the number of CPEs increases, the ACS is too stressed to manage the long TCP connection, which may lead to a system crash of the ACS. Furthermore, the CPE needs to be upgraded or developed to support the establishment of long TCP connections with XMPP servers.
Based on the foregoing reasons, an embodiment of the present application provides a session management method, taking a CPE as an HTTP client and an ACS as an HTTP server, as shown in fig. 4, including:
401. the CPE sends a first session setup request to the ACS requesting establishment of the current session.
Illustratively, the CPE may send a first session establishment request to the ACS via a first in-form message, where the first in-form message includes the first session establishment request.
Optionally, the info message may include device information of the CPE and an info event name. The CPE device information includes, but is not limited to, information such as software version, serial number, hardware version, product model number, etc.
Specifically, as shown in fig. 5, the CPE may encapsulate the info message by using an RPC method Protocol, SOAP, HTTP, Secure Sockets Layer (SSL) Protocol/Secure Transport Layer Protocol (TLS), Transmission Control Protocol (TCP)/Internet Protocol (IP), and the like. The RPC method may be an existing RPC method or a newly added RPC method, and the application is not limited.
402. The ACS receives a first session establishment request sent by the CPE.
The ACS receives a first in-form message sent by the CPE, wherein the first in-form message comprises a first session establishment request. The ACS may decapsulate the packet of the info packet by using protocols such as TCP/IP, SSL/TLS, HTTP, SOAP, RPC methods, and the like, and authenticate the CPE, for example, the authentication may be performed by using the digest. If the authentication is passed, the ACS replies an info response message to the CPE, so that a session is established with the CPE.
Optionally, after the connection between the CPE and the ACS is established, if the CPE has no other request, an empty message may be sent to the ACS, so as to satisfy the HTTP message request/response message interaction rule. Wherein, the null message is a null (empty) method.
403. The ACS sends a plan notification request to the CPE, wherein the plan notification request comprises a preset time interval and is used for indicating that the CPE at least passes the preset time interval and requesting to establish the next session of the current session after the current session is ended.
The ACS may determine a preset time interval according to the timeout time of the CPE, where the preset time interval is smaller than the timeout time of the CPE, and the timeout time of the CPE may be determined according to factory settings.
Illustratively, the predetermined time interval may be 30s-120s, although the application is not limited thereto.
The preset time interval is set to 60s as an example.
404. The CPE receives a schedule notification request sent by the ACS.
405. The CPE sends a plan notify response to the ACS.
406. The ACS receives the schedule notification response sent by the CPE.
In a possible implementation manner, as shown in fig. 6, after receiving the plan notification response, if the ACS receives a first task request sent by the user terminal after a first duration elapses, where the first duration is less than or equal to 60S, after step 406, steps 407 and 408 may be included:
407. the ACS forwards the first task request to the CPE.
The ACS may send a first task request to the CPE via a SetParameterValues request method, the SetParameterValues request method including the first task request.
408. The CPE sends a first task response to the ACS.
After receiving the SetParameterValues request method, the CPE parses out the first task request and may send a first task response to the ACS via the SetParameterValuesResponse.
If the ACS determines that the second task request sent by the user terminal is not received after 60S after receiving the first task response, and the first task request and the second task request are used for distinguishing different task requests, step 408 is followed by further steps 409 to 413:
409. the ACS sends a current session ending instruction to the CPE, and the current session ending instruction is used for indicating ending of the current session.
That is, the current session end instruction is transmitted by the time node of 60S after the ACS receives the first task response.
The ACS can send a current session ending instruction through the http204 session ending message, and the http204 session ending message comprises the current session ending instruction.
410. The CPE receives the current session end instruction sent by the ACS.
411. The CPE, after sending the schedule notification response indication, creates an event that triggers the next session of the current session, via 60S.
Steps 409-411 are performed after the ACS receives the schedule notification response sent by the CPE, at least after a preset time interval, and only an exemplary execution sequence is given in this application.
412. The CPE sends a second session establishment request to the ACS, the second session establishment request requesting establishment of a next session of the current session.
The CPE determines that an event has been created that triggers a next session for the current session and sends a second session setup request to the ACS after having received a current session end instruction sent by the ACS.
The CPE may send a second session establishment request to the ACS through the in-form message, where the second in-form message includes the second session establishment request.
413. The ACS receives a second session establishment request sent by the CPE.
And the ACS receives a second in-form message sent by the CPE, wherein the second in-form message comprises a second session establishment request.
In another possible implementation manner, as shown in fig. 7, if the ACS determines that 60S passes after receiving the plan notification response, and if the ACS does not receive the first task request sent by the user terminal, the ACS sends the current session end instruction to the CPE, then after step 406, steps 414 to 418 may be included, as shown in fig. 8:
414. the CPE, after sending the schedule notification response indication, creates an event that triggers the next session of the current session, via 60S.
415. The ACS sends a current session end instruction to the CPE.
That is, the current session end instruction is transmitted by the time node of 60S after the ACS receives the schedule notification response transmitted by the CPE.
416. The CPE receives the current session end instruction sent by the ACS.
417. The CPE sends a second session establishment request to the ACS, the second session establishment request requesting establishment of a next session of the current session.
The CPE determines that an event has been created that triggers a next session for the current session and sends a second session setup request to the ACS after having received a current session end instruction sent by the ACS.
The CPE may send a second session establishment request to the ACS through a second in-form message, where the second in-form message includes the second session establishment request.
418. The ACS receives a second session establishment request sent by the CPE.
And the ACS receives a second in-form message sent by the CPE, wherein the second in-form message comprises a second session establishment request.
In another possible implementation manner, as shown in fig. 9, after receiving the first task request, if the ACS receives a second task request sent by the user terminal after a second duration, where the second duration is less than or equal to 60S, after step 406, steps 419 to 421 may be included, as shown in fig. 10:
419. the ACS forwards the second task request to the CPE.
420. The CPE sends a second task response to the ACS.
421. The ACS receives the second task response sent by the CPE.
If the ACS determines that 60S has passed after receiving the second task response, if the third task request sent by the user terminal is not received, the ACS may include steps 422 to 426:
422. the CPE, after sending the schedule notification response indication, creates an event that triggers the next session of the current session, via 60S.
423. The ACS sends a current session end instruction to the CPE.
I.e. the current session end instruction is sent by the time node 60S after the ACS receives the second task response.
424. The CPE receives the current session end instruction sent by the ACS.
425. The CPE sends a second session establishment request to the ACS, the second session establishment request requesting establishment of a next session of the current session.
The CPE determines that an event has been created that triggers a next session for the current session and sends a second session setup request to the ACS after having received a current session end instruction sent by the ACS.
The CPE may send a second session establishment request to the ACS through a second in-form message, where the second in-form message includes the second session establishment request.
426. The ACS receives a second session establishment request sent by the CPE.
And the ACS receives a second in-form message sent by the CPE, wherein the second in-form message comprises a second session establishment request.
Compared with the prior art, when the CPE is under the NAT gateway or under the firewall, the ACS cannot actively send the HTTP GET request to the CPE, so that the task request of the user terminal cannot be sent to the CPE. In this embodiment of the application, the ACS may send a plan notification request to the CPE after receiving a first session establishment request sent by the CPE, to indicate that the CPE has at least passed a preset time interval, and after a current session ends, request to establish a next session of the current session, so that when the CPE has access to the ACS, the ACS can request to establish the next session of the current session when the CPE has at least passed the preset time interval and after the current session ends. The method and the device can ensure that the CPE and the ACS can quickly establish the next session, so that the ACS can timely send the task request sent by the user terminal to the CPE through the session between the ACS and the CPE in the NAT gateway or firewall scene, and the timeliness of user services is improved.
And compared with the CPE, the Inform message is sent according to a preset period, and in-form conversation is established. If the user terminal sends the task request within the preset period, it still needs to wait for the CPE to establish an info session, which results in a reduction in timeliness of the user service. In this embodiment of the present application, after receiving a first session establishment request sent by a CPE, an ACS may send a plan notification request to the CPE, indicate that a preset time interval has elapsed at least by the CPE, and request to establish a next session of a current session after the current session is ended. The method and the device can ensure that the next session is established between the CPE and the ACS quickly, so that the task request sent by the user at any time can be responded by the ACS and the CPE quickly, and the timeliness of user services is improved. In addition, in the embodiment of the application, a large number of messages cannot be sent when the ACS and the CPE keep conversation, and the problem of paralysis of an ACS system cannot be caused.
Compared with the method that the CPE and the ACS respectively establish long TCP connection with the XMPP server, the intermediate model enables the CPE to trigger the in-form session. In the embodiment of the application, the ACS may send a plan notification request to the CPE after receiving a first session establishment request sent by the CPE, indicate that the CPE has at least passed a preset time interval, and request establishment of a next session of a current session after the current session is ended, so that the existing functional requirements can be met without additionally maintaining a TCP connection, and performance consumption of the ACS and the CPE is reduced. Moreover, the CPE does not need to additionally develop or upgrade the version.
The above description mainly describes the scheme provided by the embodiment of the present invention from the perspective of ACS and CPE. It will be appreciated that the ACS and CPE contain corresponding hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those skilled in the art will readily appreciate that the present invention can be implemented in hardware or a combination of hardware and computer software using the algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiment of the present invention, the ACS and the CPE may be divided into functional modules according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, the division of the modules in the embodiment of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In the case of the respective functional modules divided with corresponding respective functions, fig. 11 shows a possible structural schematic diagram of the ACS 11 involved in the above embodiment, which includes: a receiving unit 1101, a sending unit 1102 and a determining unit 1103. In the method embodiments shown in fig. 4, 7 and 10, the receiving unit 1101 may be configured to perform the processes 402, 406 and 413 in fig. 4; process 418 in fig. 7; processes 421, 426 in fig. 10. The sending unit 1102 is configured to support the ACS to perform the processes 403, 407, and 409 in fig. 4; process 415 in fig. 7; processes 419 and 423 in fig. 10. Determination unit 1103 is configured to support ACS performing process 409 in fig. 4; process 415 in fig. 7; process 423 in fig. 10. All relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
In case of integrated units, fig. 12 shows a possible structural schematic of the ACS involved in the above embodiment. In the present invention, the ACS may include a processing module 1201, a communication module 1202, and a storage module 1203. The processing module 1201 is configured to control hardware devices and application software of each part of the ACS; the communication module 1202 is configured to receive an instruction sent by another device using a communication manner such as Wireless Fidelity (WiFi), and may also send data of the ACS to the other device; the storage module 1203 is used for storing software programs for performing ACS, storing data, running software, and the like. The Processing module 1201 may be a Processor or a controller, such as a Central Processing Unit (CPU), a general-purpose Processor, a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. A processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, a DSP and a microprocessor, or the like. The communication module 1202 may be a transceiver, a transceiver circuit or a communication interface, etc. The storage module 1203 may be a memory.
In the case of dividing the functional modules by corresponding functions, fig. 13 shows a schematic diagram of a possible structure of the CPE 13 involved in the foregoing embodiment, where the CPE includes: a transmitting unit 1301, a receiving unit 1302, and a processing unit 1303. In the method embodiments shown in fig. 4, fig. 7 and fig. 10, the sending unit 1301 is configured to support the CPE to perform the processes 405, 408 and 412 in fig. 4; process 417 in fig. 7; processes 420 and 425 in fig. 10. The receiving unit 1302 is configured to support the CPE to perform the processes 404 and 410 in fig. 4; process 416 in FIG. 7; process 424 in fig. 10. Processing unit 1303 is configured to support the CPE to perform process 411 in fig. 4; process 414 in FIG. 7; process 422 in fig. 10. All relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
In case of integrated units, fig. 14 shows a possible schematic structure of the CPE involved in the above embodiments. In the present invention, the CPE may include a processing module 1401, a communication module 1402, and a storage module 1403. The processing module 1401 is configured to control hardware devices and application software of each part of the CPE; the communication module 1402 is configured to receive an instruction sent by another device using a communication method such as WiFi, and may also send data of the CPE to the other device; the storage module 1403 is used for storing software programs of the CPE, storing data, running software, and the like. The processing module 1401 may be a processor or controller, and may be, for example, a CPU, general processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. A processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, a DSP and a microprocessor, or the like. The communication module 1402 may be a transceiver, a transceiving circuit, a communication interface, or the like. The storage module 1403 may be a memory.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied in hardware or in software instructions executed by a processor. The software instructions may consist of corresponding software modules that may be stored in RAM, flash memory, ROM, EPROM, EEPROM, registers, hard disk, a removable hard disk, a compact disk, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC. Additionally, the ASIC may reside in a core network interface device. Of course, the processor and the storage medium may reside as discrete components in a core network interface device.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in this invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the embodiments of the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (9)

1. A session management method, comprising:
an automatic configuration server ACS receives a first session establishment request sent by user side equipment CPE, wherein the first session establishment request is used for requesting to establish a current session;
the ACS sends a plan notification request to the CPE; the plan notification request comprises a preset time interval and is used for indicating that the CPE at least passes the preset time interval and requesting to establish the next session of the current session after the current session is finished;
the ACS receives a plan notification response sent by the CPE;
after receiving the plan notification response, if a first task request sent by a user terminal is received after a first time length, the ACS forwards the first task request to the CPE; wherein the first time length is less than or equal to the preset time interval;
the ACS receiving a first task response sent by the CPE;
if the ACS determines that a preset time interval passes after the first task response is received, a second task request sent by a user terminal is not received, and the ACS sends a current session ending instruction to the CPE; wherein the current session ending instruction is used for indicating ending of the current session; if the ACS determines that a preset time interval passes after receiving the plan notification response, the ACS sends the current session ending instruction to the CPE if the first task request sent by the user terminal is not received.
2. The method of claim 1, further comprising:
after receiving the first task request, if a second task request sent by a user terminal is received after a second time length, the ACS forwards the second task request to the CPE; the second duration is less than or equal to the preset time interval;
if the ACS determines that the preset time interval passes after receiving the second task response, if a third task request sent by the user terminal is not received, the ACS sends a current session ending instruction to the CPE; wherein the second task response is sent by the CPE to the ACS after receiving the second task request.
3. The method according to any of claims 1-2, wherein after the ACS sends a current session end instruction to the CPE, the method further comprises:
the ACS receives a second session establishment request sent by the CPE, wherein the second session establishment request is used for requesting to establish the next session of the current session; and the second session establishment request is sent by the CPE after receiving a current session ending instruction sent by the ACS.
4. The method according to any of claims 1-2, wherein the preset time interval is less than a timeout time of the CPE.
5. An auto-configuration server, ACS, comprising:
a receiving unit, configured to receive a first session establishment request sent by a user side device CPE, where the first session establishment request is used to request establishment of a current session;
a sending unit, configured to send a plan notification request to the CPE; the plan notification request comprises a preset time interval and is used for indicating that the CPE at least passes the preset time interval and requesting to establish the next session of the current session after the current session is finished;
the receiving unit is further configured to receive a schedule notification response sent by the CPE;
the sending unit is further configured to, after the receiving unit receives the plan notification response, forward a first task request to the CPE if the first task request sent by the user terminal is received by the receiving unit after a first duration elapses; wherein the first time length is less than or equal to the preset time interval;
the receiving unit is further configured to receive a first task response sent by the CPE;
the sending unit is further configured to send a current session end instruction to the CPE if the determining unit determines that a preset time interval elapses after the first task response is received and a second task request sent by the user terminal is not received; wherein the current session ending instruction is used for indicating ending of the current session; the sending unit is further configured to:
if the determining unit determines that a preset time interval passes after the plan notification response is received, the current session ending instruction is sent to the CPE if the first task request sent by the user terminal is not received.
6. The ACS according to claim 5, wherein the sending unit is further configured to:
after receiving the first task request through the receiving unit, if a second task request sent by a user terminal is received through the receiving unit after a second time period, forwarding the second task request to the CPE; the second duration is less than or equal to the preset time interval;
if the determining unit determines that the preset time interval passes after the second task response is received, if a third task request sent by the user terminal is not received, sending a current session ending instruction to the CPE; wherein the second task response is sent by the CPE to the ACS after receiving the second task request.
7. An ACS according to any of claims 5-6, wherein the receiving unit is further adapted to:
receiving a second session establishment request sent by the CPE, wherein the second session establishment request is used for requesting to establish a next session of the current session; and the second session establishment request is sent by the CPE after receiving a current session ending instruction sent by the ACS.
8. An ACS according to any of the claims 5-6, wherein the preset time interval is smaller than the timeout of the CPE.
9. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the session management method of any one of claims 1 to 4.
CN201711316822.0A 2017-12-11 2017-12-11 Session management method and device Active CN107835257B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711316822.0A CN107835257B (en) 2017-12-11 2017-12-11 Session management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711316822.0A CN107835257B (en) 2017-12-11 2017-12-11 Session management method and device

Publications (2)

Publication Number Publication Date
CN107835257A CN107835257A (en) 2018-03-23
CN107835257B true CN107835257B (en) 2021-01-15

Family

ID=61643008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711316822.0A Active CN107835257B (en) 2017-12-11 2017-12-11 Session management method and device

Country Status (1)

Country Link
CN (1) CN107835257B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881210A (en) * 2018-06-11 2018-11-23 京信通信系统(中国)有限公司 TR069 protocol remote processing method, apparatus and system
CN110784432B (en) * 2018-07-31 2021-11-19 华为技术有限公司 Session creation method and device
CN110572817B (en) * 2019-07-30 2021-01-12 华为技术有限公司 Communication method and electronic equipment
JP7234978B2 (en) * 2020-02-28 2023-03-08 カシオ計算機株式会社 Communication device, communication system, communication method and program
CN113992732B (en) * 2021-10-26 2024-04-12 迈普通信技术股份有限公司 Terminal management control method, device, server and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571704A (en) * 2010-12-24 2012-07-11 华为终端有限公司 Management conversation initiating and notifying method, managed terminal and management server
CN106330513A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Processing method and apparatus for tr069 protocol information
CN107148793A (en) * 2014-09-30 2017-09-08 康维达无线有限责任公司 Dynamic strategy is controlled
CN107360020A (en) * 2017-06-07 2017-11-17 上海斐讯数据通信技术有限公司 A kind of Large Volume Data business unit keep-alive system and its application method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130268578A1 (en) * 2012-04-10 2013-10-10 Arabinda Bose Method And Apparatus For Facilitating Communications With A Managed Client Device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571704A (en) * 2010-12-24 2012-07-11 华为终端有限公司 Management conversation initiating and notifying method, managed terminal and management server
CN107148793A (en) * 2014-09-30 2017-09-08 康维达无线有限责任公司 Dynamic strategy is controlled
CN106330513A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Processing method and apparatus for tr069 protocol information
CN107360020A (en) * 2017-06-07 2017-11-17 上海斐讯数据通信技术有限公司 A kind of Large Volume Data business unit keep-alive system and its application method

Also Published As

Publication number Publication date
CN107835257A (en) 2018-03-23

Similar Documents

Publication Publication Date Title
CN107835257B (en) Session management method and device
EP2096793B1 (en) Systems and methods for automatic configuration of customer premises equipment
AU2012338881B2 (en) System comprising a publish/subscribe broker for a remote management of end-user devices, and respective end-user device
KR102148046B1 (en) Calling an unready terminal
JP5574544B2 (en) Unified device management method and system
WO2011137809A1 (en) Method, apparatus and system for realizing hypertext transfer protocol redirection in content delivery network
EP3142306B1 (en) Openflow communication method, system, controller, and service gateway
US20190104033A1 (en) Methods, apparatuses and computer-readable storage mediums for automated onboarding of services in the user services platform
CN114189557A (en) Management of access tokens in a communication network
KR102005059B1 (en) Apparatus for providing home network service and method thereof
CN112565439B (en) Internet of things communication method and system
KR20100029106A (en) Web-based over-the-air provisioning and activation of mobile terminals
JP2016511451A (en) System and method for opening network functions and associated network elements
Hou et al. Design and implementation of application programming interface for Internet of things cloud
JP6548445B2 (en) Communication device, communication method and program
US10158587B2 (en) Communication between a web application instance connected to a connection server and a calling entity other than said connection server
CN114268938A (en) Method, device, equipment and storage medium for managing user front equipment
CN110995829A (en) Instance calling method and device and computer storage medium
JP2012085299A (en) Remote downloading method, system, and persistent computer readable storage medium
KR101349201B1 (en) Apparatus for interoperability between Web-browser and Local-resources in the Mobile Device and method thereof
JP6393475B2 (en) Communication adapter device, communication system, tunnel communication method, and program
CN109100944B (en) IMS-based data acquisition and processing system
CN111781848A (en) Server connection method, device and system based on intelligent household equipment
US10581979B2 (en) Information transmission method and apparatus
US20150229513A1 (en) Systems and methods for efficient remote security panel configuration and management

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
GR01 Patent grant
GR01 Patent grant