CN113163029B - Network session account deployment method, device, terminal, server and storage medium - Google Patents

Network session account deployment method, device, terminal, server and storage medium Download PDF

Info

Publication number
CN113163029B
CN113163029B CN202110554511.8A CN202110554511A CN113163029B CN 113163029 B CN113163029 B CN 113163029B CN 202110554511 A CN202110554511 A CN 202110554511A CN 113163029 B CN113163029 B CN 113163029B
Authority
CN
China
Prior art keywords
session
account
registration
domain name
session server
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
CN202110554511.8A
Other languages
Chinese (zh)
Other versions
CN113163029A (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.)
Xiamen Yealink Network Technology Co Ltd
Original Assignee
Xiamen Yealink Network Technology 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 Xiamen Yealink Network Technology Co Ltd filed Critical Xiamen Yealink Network Technology Co Ltd
Priority to CN202110554511.8A priority Critical patent/CN113163029B/en
Publication of CN113163029A publication Critical patent/CN113163029A/en
Application granted granted Critical
Publication of CN113163029B publication Critical patent/CN113163029B/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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/3015Name registration, generation or assignment
    • H04L61/302Administrative registration, e.g. for domain names at internet corporation for assigned names and numbers [ICANN]

Landscapes

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

Abstract

The application provides a network session account deployment method, a device, a terminal, a server and a storage medium, and relates to the technical field of network communication. The method comprises the following steps: and initiating a domain name query request to a domain name server by adopting at least two accounts, receiving a domain name query result returned by the domain name server, and sending a first registration subscription request to a first session server of one target internet protocol address in at least one internet protocol address by adopting at least two accounts so that the first session server registers the two accounts and subscribes session resources and receives a first registration subscription response sent by the first session server. The method and the device can facilitate the domain name server to uniformly deploy and manage the network session terminal.

Description

Network session account deployment method, device, terminal, server and storage medium
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a network session account deployment method, device, terminal, server, and storage medium.
Background
With the rapid development of internet technology, the market demand for network session terminals based on voice digital protocol (Voice over Internet Protocol, voIP) is increasing.
When the account numbers in the existing network session terminal initiate registration to the session server, if the network session terminal comprises a plurality of account numbers, the domain name server returns protocol addresses of the session servers with different priorities based on the query request initiated by each account number, so that different account numbers in the same network session terminal are registered to different session servers based on the balance strategy of the domain name server.
Different accounts in the same network session terminal are registered to different session servers, so that the domain name server needs to operate a plurality of session servers to manage the network session terminal, and management of the network session terminal by the domain name server is not facilitated.
Disclosure of Invention
The invention aims to provide a network session account deployment method, a device, a terminal, a server and a storage medium, aiming at the defects in the prior art, so that the server can uniformly manage the terminal.
In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
in a first aspect, an embodiment of the present application provides a network session account deployment method, where the method includes:
initiating a domain name query request to a domain name server by adopting at least two accounts, wherein the domain name query request comprises: a target domain name; the domain name query request is used for enabling the domain name server to analyze the target domain name to obtain at least one internet protocol address;
Receiving a domain name query result returned by the domain name server, wherein the domain name query result comprises: said at least one internet protocol address;
transmitting a first registration subscription request to a first session server of one target internet protocol address in the at least one internet protocol address by adopting the at least two accounts, so that the first session server registers the two accounts and subscribes session resources;
receiving a first registration subscription response sent by the first session server, wherein the first registration subscription response comprises: and the indication information is used for indicating whether the subscription of the at least two accounts is successfully registered in the first session server.
Optionally, the domain name query result further includes: a priority of the at least one internet protocol address;
before the sending, by the two accounts, the first registration subscription request to the first session server of one target internet protocol address of the at least one internet protocol address, the method further includes:
and selecting a session server corresponding to one internet protocol address with the highest priority as the first session server according to the priority of the at least one internet protocol address.
Optionally, the sending, by using the two accounts, a first registration subscription request to a first session server of a target internet protocol address of the at least one internet protocol address includes:
transmitting a registration subscription request of one account to the first session server by adopting the account;
receiving a registration subscription response of the account sent by the first session server;
and if the registration subscription response of the account indicates successful registration subscription of the account, sending registration subscription requests of other accounts to the first session server by adopting the other accounts.
Optionally, if the indication information indicates that the registration and subscription of the at least two accounts are successful, the registration and subscription response includes: the registration duration of the at least two accounts; the method further comprises the steps of:
if the registration duration of a first account in the at least two accounts expires, a first registration request is sent to the first session server again by adopting the first account;
receiving a first registration response sent by the first session server;
if the first registration response indicates that the first session server is in a downtime state, the first account is adopted to send a second registration subscription request to a second session server of another target internet protocol address in the at least one internet protocol address, so that the second session server registers the first account and subscribes session resources;
And receiving a second registration subscription response sent by the second session server.
Optionally, the method further comprises:
if the first account number is detected to finish registration and subscription of session resources in the second session server, sending a third registration subscription request to the second session server by adopting the other account numbers so that the second session server registers the other account numbers and subscribes to the session resources;
and receiving a third registration subscription response sent by the second session server.
Optionally, the first registration response includes: the rollback time of the first account; the method further comprises the steps of:
if the rollback time of the first account arrives, the first account is adopted to send a second registration request to the first session server again;
receiving a second registration response sent by the first session server;
if the second registration response indicates that the state of the first session server is restored and the first account is successfully registered, sequentially sending a unsubscribe request and a deregistration request to the second session server by adopting the first account, so that the second session server sequentially performs unsubscribe and account deregistration of session resources on the first account;
Re-sending a subscription request to the first session server by adopting the first account;
and receiving a subscription response sent by the first session server.
Optionally, the method further comprises:
if the first subscription response indicates that the first account is subscribed successfully, sequentially adopting the other accounts to sequentially send a unsubscribe request and a deregistration request to the second session server, so that the second session server sequentially performs unsubscribe and account deregistration of session resources on the other accounts;
re-sending a fourth registration subscription request to the first session server by adopting the other account numbers;
and receiving a fourth registration subscription response sent by the first session server.
In a second aspect, an embodiment of the present application further provides a network session account deployment method, where the method includes:
receiving a domain name query request of at least two accounts sent by a network session terminal, wherein the domain name query request comprises: a target domain name;
resolving the target domain name to obtain at least one internet protocol address;
returning a domain name query result to the network session terminal, wherein the domain name query result comprises: the domain name query result is used for enabling the network session terminal to send a first registration subscription request to a first target session server of one target internet protocol address in the at least one internet protocol address by adopting the at least two accounts, so that the first target session server registers the two accounts and subscribes session resources.
Optionally, the receiving a domain name query request of at least two accounts sent by the network session terminal includes:
sequentially receiving the domain name query requests of the at least two accounts sent by the network session terminal;
the analyzing the target domain name to obtain at least one internet protocol address includes:
under the domain name query flow of the account corresponding to the received first domain name query request, analyzing the target domain name to obtain at least one internet protocol address;
and suspending the domain name query flow of other accounts.
Optionally, before the returning the domain name query result to the network session terminal, the method further includes:
calculating the priority of at least one internet protocol address according to the session resource occupancy of at least one session server; the domain name query result further comprises: the priority of the at least one internet protocol address.
In a third aspect, an embodiment of the present application further provides a network session account deployment device, where the device includes:
the request initiating module is used for initiating a domain name query request to the domain name server by adopting at least two accounts, wherein the domain name query request comprises: a target domain name; the domain name query request is used for enabling the domain name server to analyze the target domain name to obtain at least one internet protocol address;
The result receiving module is used for receiving a domain name query result returned by the domain name server, and the domain name query result comprises: said at least one internet protocol address;
a first registration subscription request module, configured to send a first registration subscription request to a first session server of a target internet protocol address in the at least one internet protocol address by using the at least two accounts, so that the first session server registers the two accounts and subscribes to session resources;
a first registration-subscription response module, configured to receive a first registration-subscription response sent by the first session server, where the first registration-subscription response includes: and the indication information is used for indicating whether the subscription of the at least two accounts is successfully registered in the first session server.
Optionally, the domain name query result further includes: a priority of the at least one internet protocol address; before the first registration subscription request module, the apparatus further comprises:
and the session server selection module is used for selecting a session server corresponding to one internet protocol address with the highest priority as the first session server according to the priority of the at least one internet protocol address.
Optionally, the first subscription registration request module includes:
a first registration subscription request unit, configured to send a registration subscription request of an account to the first session server by using the account;
a first subscription registration response unit, configured to receive a subscription registration response of the account sent by the first session server;
and the second registration subscription request unit is used for sending registration subscription requests of the other accounts to the first session server by adopting the other accounts if the registration subscription response of the one account indicates successful registration subscription of the one account.
Optionally, if the indication information indicates that the registration subscription of the at least two accounts is successful, the first registration subscription response further includes: the registration duration of the at least two accounts; the apparatus further comprises:
the first registration request module is used for sending a first registration request to the first session server again by adopting the first account if the registration duration of the first account in the at least two accounts expires;
the first registration response module is used for receiving a first registration response sent by the first session server;
A second registration subscription request module, configured to send a second registration subscription request to a second session server of another target internet protocol address in the at least one internet protocol address by using the first account if the first registration response indicates that the first session server is in a down state, so that the second session server registers the first account and subscribes session resources;
and the second registration subscription response module is used for receiving a second registration subscription response sent by the second session server.
Optionally, the apparatus further includes:
a third registration subscription request module, configured to send a third registration subscription request to the second session server by using the other account if it is detected that the first account has completed registration and subscription of session resources in the second session server, so that the second session server registers the other account and subscribes to session resources;
and the third registration subscription response module is used for receiving a third registration subscription response sent by the second session server.
Optionally, the first registration response includes: the rollback time of the first account; the apparatus further comprises:
The second registration request module is used for sending a second registration request to the first session server again by adopting the first account if the back-off time of the first account arrives;
a second registration response module, configured to receive a second registration response sent by the first session server;
the first unsubscribing and subscribing module is used for sequentially sending an unsubscribing and registering request to the second session server by adopting the first account if the second registration response indicates that the state of the first session server is restored and the first account is successfully registered, so that the second session server sequentially performs unsubscribing and account number deregistering of session resources on the first account;
a subscription request module, configured to re-send a subscription request to the first session server using the first account;
and the subscription response module is used for receiving the subscription response sent by the first session server.
Optionally, the apparatus further includes:
the second subscription module is used for sequentially adopting the other accounts to sequentially send a subscription-releasing request and a registration-releasing request to the second session server if the first subscription response indicates that the first account is subscribed successfully, so that the second session server sequentially performs subscription-releasing and account-unregistering of session resources on the other accounts;
A fourth registration subscription module, configured to re-send a fourth registration subscription request to the first session server using the other account number;
and the fourth registration subscription response module is used for receiving a fourth registration subscription response sent by the first session server.
In a fourth aspect, an embodiment of the present application further provides a network session account deployment device, where the device includes:
the request receiving module is used for receiving domain name inquiry requests of at least two accounts sent by the network session terminal, wherein the domain name inquiry requests comprise: a target domain name;
the analysis module is used for analyzing the target domain name to obtain at least one Internet protocol address;
the result returning module is configured to return a domain name query result to the network session terminal, where the domain name query result includes: the domain name query result is used for enabling the network session terminal to send a first registration subscription request to a first target session server of one target internet protocol address in the at least one internet protocol address by adopting the at least two accounts, so that the first target session server registers the two accounts and subscribes session resources.
Optionally, the request receiving module is configured to sequentially receive the domain name query requests of the at least two accounts sent by the network session terminal;
the parsing module includes:
the analyzing unit is used for analyzing the target domain name to obtain at least one internet protocol address under the domain name query flow of the account corresponding to the received first domain name query request;
and the suspension unit is used for suspending the domain name query flow of other accounts.
Optionally, before the result returning module, the apparatus further includes:
a priority calculating module, configured to calculate a priority of at least one internet protocol address according to a session resource occupancy rate of at least one session server; the domain name query result further comprises: the priority of the at least one internet protocol address.
In a fifth aspect, embodiments of the present application further provide a network session terminal, including: the network session account deployment method comprises a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, when the network session terminal is running, the processor and the storage medium are communicated through the bus, and the processor executes the program instructions to execute the steps of the network session account deployment method according to any one of the first aspect.
In a sixth aspect, embodiments of the present application further provide a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor performs the steps of the network session account deployment method according to any of the first aspects.
In a seventh aspect, embodiments of the present application further provide a domain name server, including: the system comprises a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, when the domain name server runs, the processor and the storage medium are communicated through the bus, and the processor executes the program instructions to execute the steps of the network session account deployment method according to any one of the second aspect.
In an eighth aspect, embodiments of the present application further provide a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor performs the steps of the network session account deployment method according to any of the second aspects.
The beneficial effects of this application are:
the application provides a network session account deployment method, a device, a terminal, a server and a storage medium, wherein at least two accounts are adopted to initiate a domain name query request to a domain name server, a domain name query result returned by the domain name server is received, at least two accounts are adopted to send a first registration subscription request to a first session server of a target internet protocol address in at least one internet protocol address, so that the first session server registers the two accounts and subscribes session resources, and a first registration subscription response sent by the first session server is received. By the scheme provided by the application, different accounts of the same network session terminal are registered in the same session server, so that the domain name server can uniformly deploy and manage the network session terminal.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a network session account deployment system provided in an embodiment of the present application;
fig. 2 is a flowchart of a first network session account deployment method provided in an embodiment of the present application;
fig. 3 is a flowchart of a second network session account deployment method provided in an embodiment of the present application;
fig. 4 is a flowchart of a third network session account deployment method provided in an embodiment of the present application;
fig. 5 is a flowchart of a fourth network session account deployment method provided in an embodiment of the present application;
fig. 6 is a flowchart of a fifth network session account deployment method provided in an embodiment of the present application;
fig. 7 is a flowchart of a sixth network session account deployment method provided in an embodiment of the present application;
Fig. 8 is a flowchart of a seventh network session account deployment method provided in an embodiment of the present application;
fig. 9 is an interaction schematic diagram of a network session account deployment method provided in an embodiment of the present application;
fig. 10 is a schematic structural diagram of a first network session account deployment device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a second network session account deployment device according to an embodiment of the present application;
fig. 12 is a schematic diagram of a network session terminal provided in an embodiment of the present application;
fig. 13 is a schematic diagram of a domain name server according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention.
Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
In the description of the present application, it should be noted that, if the terms "upper", "lower", and the like indicate an azimuth or a positional relationship based on the azimuth or the positional relationship shown in the drawings, or an azimuth or the positional relationship that is commonly put when the product of the application is used, it is merely for convenience of description and simplification of the description, and does not indicate or imply that the apparatus or element to be referred to must have a specific azimuth, be configured and operated in a specific azimuth, and therefore should not be construed as limiting the present application.
Furthermore, the terms first, second and the like in the description and in the claims and in the above-described figures, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, without conflict, features in embodiments of the present application may be combined with each other.
The network session account deployment method provided by the embodiment of the present application is applied to a network session account deployment system having a network session account deployment function, and fig. 1 is a schematic structural diagram of the network session account deployment system provided by the embodiment of the present application, as shown in fig. 1, where the network session account deployment system includes: a network session terminal 10 configured with at least two accounts, a domain name server 20 (Domain Name System, DNS), and two session servers 30. Fig. 1 shows only two session servers 30, but there may be a plurality of session servers 30 in practical applications.
The network session terminal 10 is respectively in communication connection with the domain name server 20 and the session server 30, and is configured to initiate a domain name query request to the domain name server, and initiate a registration subscription request to one session server by using at least two accounts based on the domain name query result.
The domain name server 20 is configured to parse the domain name query request of the network session terminal 10 to obtain the internet protocol address of the session server 30, and return a domain name query result to the network session terminal 10, where the domain name query result includes: at least one internet protocol address.
The session server 30 is configured to receive a registration subscription request of at least two accounts in the network session terminal 10, accept or reject the registration subscription request, and return a registration subscription response to the network session terminal 10.
On the basis of the network session account deployment system, the embodiment of the present application further provides a network session account deployment method, and fig. 2 is a schematic flow diagram of a first network session account deployment method provided in the embodiment of the present application, as shown in fig. 2, by applying the network session terminal 10 in the network session account deployment system, where the method may include:
s11: and initiating a domain name query request to a domain name server by adopting at least two accounts.
Specifically, at least two accounts are preconfigured in the network session terminal 10, and when the accounts in the network session terminal 10 and the accounts in other network session terminals 10 perform a session, session connection needs to be established through the session server 30, so in order to enable the accounts to perform a session with other accounts, the accounts need to be registered to the session server first.
The network session terminal 10 initiates a domain name Query request DNS Query to the domain name server using at least two accounts, where the domain name Query request includes: the domain name query request is used for enabling the domain name server to analyze the target domain name to obtain at least one internet protocol address. After receiving the domain name query request including the target domain name, the domain name server 20 invokes a domain name resolution function to resolve the target domain name, obtains at least one internet protocol Address (Internet Protocol Address, IP Address), and returns the at least one internet protocol Address to the network session terminal 10. By way of example, the target domain name may be a pre-configured uniform resource locator (Uniform Resoure Locator, URL) address of the session server.
S12: and receiving a domain name query result returned by the domain name server.
Specifically, the network session terminal 10 receives a domain name query result returned by the domain name server 20, where the domain name query result includes: at least one internet protocol address.
S13: and transmitting a first registration subscription request to a first session server of one target internet protocol address in the at least one internet protocol address by adopting at least two accounts, so that the first session server registers the two accounts and subscribes session resources.
Specifically, the network session terminal 10 selects a target internet protocol address from at least one internet protocol address, so that at least two accounts first send registration signaling registers to a first session server corresponding to the target internet protocol address, so that at least two accounts Register on the first session server, and if the registration is successful, the first session server sends registration response success signaling 200OK to the successfully registered account.
After receiving a response instruction of successful registration, at least two accounts send subscription signaling Subscibe to a first session server, so that the at least two accounts subscribe session resources on the first session server, and if the subscription is successful, the first session server sends subscription response success signaling 200OK to the successfully subscribed accounts. For example, the protocol value of Register is a number not equal to 0, and the protocol value of subscription signaling subsce is also a number not equal to 0.
It should be noted that, each account only after receiving a response instruction of successful registration, can send subscription signaling subscribe to the first session server.
S14: a first registration subscription response sent by the first session server is received.
Specifically, the first registration subscription response includes: and the indication information is used for indicating whether the subscription of at least two accounts is successfully registered in the first session server.
If at least two accounts are successfully registered on the first session server, each account receives a registration response success signaling 200OK sent by the first session server, and if at least two accounts are failed to be registered on the first session server, each account receives a registration failure response instruction sent by the first session server; if the subscription of at least two accounts on the first session server is successful, each account receives a subscription response success signaling 200OK sent by the first session server, and if the subscription of at least two accounts on the first session server is failed, each account receives a subscription failure response instruction sent by the first session server.
According to the network session account deployment method, at least two accounts are adopted to initiate a domain name query request to a domain name server, a domain name query result returned by the domain name server is received, and at least two accounts are adopted to send a first registration subscription request to a first session server of one target internet protocol address in at least one internet protocol address, so that the first session server registers the two accounts and subscribes session resources, and a first registration subscription response sent by the first session server is received. By the method provided by the embodiment of the invention, different accounts of the same network session terminal are registered in the same session server, so that the domain name server is convenient for uniformly deploying and managing the network session terminal.
On the basis of the above embodiment, the embodiment of the present application further provides a network session account deployment method, where the domain name query result further includes: a priority of at least one internet protocol address; prior to S13 above, the method may further include:
according to the priority of at least one internet protocol address, selecting a session server corresponding to one internet protocol address with the highest priority as a first session server.
Specifically, to ensure session resource balancing of the session servers 30, the domain name server 20 also needs to determine the registration priority of each session server 30 according to the session resource occupation situation of the session server 30, thereby determining the priority of the internet protocol address of each session server 30.
The network session terminal 10 selects a session server corresponding to one internet protocol address with the highest priority as a first session server according to the priority of at least one internet protocol address in the domain name query result returned by the domain name server 20, so that at least two accounts initiate a first registration subscription request to the first session server.
According to the network session account deployment method, according to the priority of at least one internet protocol address, a session server corresponding to one internet protocol address with the highest priority is selected as a first session server. According to the method provided by the embodiment of the application, the session server is selected to register and subscribe the accounts according to the priority, and on the premise that all the accounts of one network session terminal are registered in the same session server, balance of session resources of the session server is ensured.
On the basis of the foregoing embodiments, the embodiment of the present application further provides a network session account deployment method, and fig. 3 is a schematic flow chart of a second network session account deployment method provided in the embodiment of the present application, as shown in fig. 3, where S13 includes:
s131: and sending a registration subscription request of one account to the first session server by adopting the one account.
Specifically, the network session terminal 10 selects an account from at least two accounts and sends a registration signaling Register to the first session server, so that the account is registered on the first session server, and if the registration is successful, the first session server sends a registration response success signaling 200OK to the account.
After receiving a response instruction of successful registration, the account sends subscription signaling Subscibe to the first session server, so that the account subscribes session resources on the first session server, and if the subscription is successful, the first session server sends subscription response success signaling 200OK to the account.
S132: and receiving a registration subscription response of one account sent by the first session server.
Specifically, if an account is successfully registered on the first session server, the account receives a registration response success signaling 200OK sent by the first session server, and if the account is failed to register on the first session server, the account receives a registration failure response instruction sent by the first session server.
If the account number is subscribed successfully on the first session server, the account number receives a subscription response success signaling 200OK sent by the first session server, and if the account number is unsuccessfully subscribed on the first session server, the account number receives a subscription failure response instruction sent by the first session server.
S133: if the registration subscription response of one account indicates successful registration subscription of one account, other accounts are adopted to send registration subscription requests of other accounts to the first session server.
Specifically, if one account is successfully registered on the first session server and the subscription of the session resource is completed, other accounts on the network session terminal 10 also send registration subscription requests of other accounts to the first session server. The registration and subscription flow of other accounts is the same as the registration and subscription flow of one account in S131-S132, and will not be described here.
On the basis of any one of the foregoing embodiments, the embodiment of the present application further provides a network session account deployment method, where if the indication information indicates that at least two accounts are successfully registered and subscribed, the first registration and subscription response further includes: the registration duration of at least two accounts. Fig. 4 is a flowchart of a third network session account deployment method according to an embodiment of the present application, where, as shown in fig. 4, the method may further include:
S21: and if the registration duration of the first account in the at least two accounts expires, re-sending a first registration request to the first session server by adopting the first account.
Specifically, in order to avoid that the account number does not establish session links with the accounts on other session servers for a long time after being registered to the first session server, the first account number occupies session resources of the first session server, so that a registration duration is configured for the first account number to indicate a duration that the first account number can be registered on the first session server, and after the registration duration expires, the first account number needs to initiate registration to the first session server again.
The registration duration of each account may be set when the account is configured on the network session terminal 10, or the registration duration of the account registered to the session server 30 may be set on the session server 30. If the registration renewal time period is set on the session server 30, the first registration subscription response returned by the session server 30 to the network session terminal 10 further includes: the registration duration of at least two accounts.
S22: a first registration response sent by the first session server is received.
Specifically, the first registration response includes: and the first account number is used for indicating whether the first session server is successfully registered. If the first account is successfully registered on the first session server, the indication information is a registration response success signaling 200OK sent by the first session server, and if the first account is failed to be registered on the first session server, the indication information is a registration failure response instruction sent by the first session server.
S23: if the first registration response indicates that the first session server is in the downtime state, a first account is adopted to send a second registration subscription request to a second session server of another target internet protocol address in the at least one internet protocol address, so that the second session server registers the first account and subscribes session resources.
Specifically, if the first account fails to register on the first session server, the registration response of the first account indicates that the first session server is in a down state, where the down state indicates that the accounts registered in the first session server have reached the threshold number of accounts, and at this time, the network session terminal 10 selects another target internet protocol address from at least one internet protocol address, so that the first account sends a registration subscription request to a second session server of the other target internet protocol address, so that the second session server registers the first account and subscribes to session resources. The priority of the second session server is lower than that of the first session server, the first session server is used as a main session server, the second session server is used as a standby session server, and the process of switching from the session server with high priority to the session server with low priority is called as failover.
At this time, since the first session server is in the down state, the first account does not need to initiate a de-registration request and a de-subscription request to the first session server, and may directly send a registration subscription request to the second session server, and the flow of sending the registration subscription request to the second session server by the first account is the same as the flow of sending the registration subscription request to the first session server by the first account in S13-S14, which is not described herein.
In an alternative embodiment, if the first account fails to register on the first session server, the first account is adopted to send multiple first registration requests to the first session server again, and if the multiple registration requests fail, the first session server is determined to be in a downtime state.
S24: and receiving a second registration subscription response sent by the second session server.
Specifically, the second registration subscription response includes: and the indication information is used for indicating whether the first account is successfully registered and subscribed in the second session server. The specific indication information is the same as the content of S14, and will not be described here again.
In an alternative embodiment, the method may further comprise:
if the first account number is detected to finish registration and subscription of session resources in the second session server, sending a third registration subscription request to the second session server by adopting other account numbers, so that the second session server registers other account numbers and subscribes to the session resources, and receiving a third registration subscription response sent by the second session server.
Specifically, the registration duration of the first account and the registration duration of the other accounts may be different, if the registration duration of the first account is shorter than the registration duration of the other accounts, the first session server is detected to be in a downtime state when the first account registers for the first session server, and because the other accounts are also registered on the first session server, in order to ensure effective use of the other accounts, the other accounts need to be registered to the second session server.
The network session terminal 10 has an account management module, and the first account reports account status information to the account management module, where the account status information includes: account number encoding and an internet protocol address of a session server for account registration.
When the first account number is registered in the second session server and the subscription of the session resource is completed, the internet protocol address of the session server registered by the account number in the account number state information is changed, if the account number management module detects that the internet protocol address of the session server registered by the account number is changed, other account numbers registered in the same session server with the first account number are triggered to send a third registration subscription request to the second session server, so that the second session server registers other account numbers and subscribes to the session resource. The flow of sending the registration subscription request from the other account to the second session server is the same as the flow of sending the registration subscription request from the first account to the first session server in S13-S14, which is not described herein.
According to the network session account deployment method, if the registration duration of a first account in at least two accounts expires, a first account is adopted to send a registration request of the first account to a first session server again, a registration response of the first account sent by the first session server is received, and if the registration response of the first account indicates that the first session server is in a downtime state, the first account is adopted to send a second registration subscription request to a second session server of another target internet protocol address in at least one internet protocol address, so that the second session server registers the first account and subscribes session resources; if the first account number is detected to finish registration and subscription of session resources in the second session server, sending a third registration subscription request to the second session server by adopting other account numbers, so that the second session server registers other account numbers and subscribes to the session resources. By the method provided by the embodiment of the invention, the first account can be registered again, but when the first session server is in the downtime state, the first account is switched to the second session server, and other accounts are triggered to be synchronously switched to the second session server, so that the problem that the first account and other accounts cannot be used due to the downtime of the session server is avoided, and the effective utilization rate of the accounts is improved.
On the basis of the foregoing embodiment, an embodiment of the present application further provides a network session account deployment method, where the first registration response includes: the back-off time of the first account. Fig. 5 is a flowchart of a fourth network session account deployment method provided in an embodiment of the present application, where, as shown in fig. 5, the method may further include:
s31: and if the back-off time of the first account is reached, the first account is adopted to send a second registration request to the first session server again.
Specifically, the backoff time is used to indicate the time for switching back to the first session server after the first account is switched from the first session server to the second session server, and the backoff time of the account may be set when the account is configured in the network session terminal 10, or may be set in the second session server.
After the first account is registered to the second session server, the network session terminal 10 starts timing, and after the back-off time of the first account is reached, the network session terminal 10 uses the first account to send a second registration request to the first session server again. The process of switching from a low priority session server to a high priority session server is called failback.
It should be noted that, if the rollback time is 0, the first account switches to the other session server only when the second session server is in the down state, otherwise, does not switch.
S32: a second registration response sent by the first session server is received.
Specifically, the second registration response includes: and the first account number is information indicating whether the first session server is successfully re-registered. If the first account is successfully re-registered on the first session server, the indication information is a registration response success signaling 200OK sent by the first session server, and if the first account is failed to be re-registered on the first session server, the indication information is a registration response failure instruction sent by the first session server.
S33: if the second registration response indicates that the state of the first session server is restored and the first account is successfully registered, the first account is adopted to sequentially send a unsubscribe request and a deregistration request to the second session server, so that the second session server sequentially performs unsubscribe and account deregistration of session resources on the first account.
Specifically, if the indication information is 200OK of successful signaling of the registration response sent by the first session server, which indicates that the state of the first session server is recovered, and the first account is successfully re-registered on the first session server, at this time, the network session terminal 10 needs to send an unsubscribe signaling unRegister to the second session server by using the first account, so that the second session server performs unsubscribing of the session resource on the first account.
After the unsubscribing is successful, the second session server returns an unsubscribing response success signaling 200OK to the network session terminal 10, and then the network session terminal 10 sends an unsubscribing signaling un-subscribe to the second session server by adopting the first account number, so that the second session server performs account number deregistration on the first account number.
S34: and re-sending a subscription request to the first session server by adopting the first account number.
Specifically, after the de-registration is successful, the second session server returns a de-registration response successful signaling 200OK to the network session terminal 10, and then the network session terminal 10 uses the first account to send a subscription request to the first session server again, so that the first session server re-subscribes to the session resources for the first account.
S35: a subscription response sent by the first session server is received.
Specifically, the subscription response includes: and the indication information is used for indicating whether the first account is subscribed successfully at the first session server. If the first account re-subscribes successfully on the first session server, the indication information is a registration response success signaling 200OK sent by the first session server, and if the first account re-subscribes unsuccessfully on the first session server, the indication information is a registration response failure instruction sent by the first session server.
According to the network session account deployment method, if the rollback time of the first account arrives, the first account is adopted to send a second registration request to the first session server again, a second registration response sent by the first session server is received, if the second registration response indicates that the state of the first session server is restored and the first account is successfully registered, the first account is adopted to send a unsubscribe request and a unsubscribe request to the second session server in sequence, so that the second session server can sequentially perform unsubscribe and account deregistration of session resources to the first account, the first account is adopted to send a subscription request to the first session server again, and the subscription response sent by the first session server is received. According to the method provided by the embodiment of the application, when the rollback time arrives and the state of the first session server is recovered, the first account is re-registered to the first session server.
On the basis of the foregoing embodiments, the embodiments of the present application further provide a network session account deployment method, and fig. 6 is a schematic flow chart of a fifth network session account deployment method provided by the embodiments of the present application, as shown in fig. 6, where the method may further include:
S41: if the first subscription response indicates that the first account is subscribed successfully, sequentially adopting other accounts to sequentially send a unsubscribe request and a deregistration request to the second session server, so that the second session server sequentially performs unsubscribe of session resources and account deregistration on the other accounts.
Specifically, after the first account is successfully re-registered by the first session server, the account state information of the first account in the account management module in the network session terminal 10 is changed, so that other accounts are triggered to re-initiate a registration subscription request to the first session server.
Because the second session server is still in a normal working state at this time, other accounts need to send a unsubscribe request and an unregister request to the second session server, so that the second session server sequentially performs unsubscribe of session resources and account unregister on other accounts. The flow of sending the unsubscribe request and the deregistration request from the other account to the second session server is the same as the flow of sending the unsubscribe request and the deregistration request from the first account to the second session server in the above step S33, and will not be described herein.
S42: and re-sending a fourth registration subscription request to the first session server by adopting the other account numbers.
Specifically, after the other account numbers unsubscribe from the second session server and the deregistration is successful, the network session terminal 10 uses the other account numbers to send the fourth registration subscription request to the first session server again. The flow of retransmitting the registration subscription request from the other account to the first session server is the same as the flow of retransmitting the registration subscription request from the first account to the first session server in S13-S14, which is not described herein.
S43: a fourth registration subscription response sent by the first session server is received.
Specifically, the fourth registration subscription response sent by the first session server and received by the network session terminal 10 is the same as the first registration subscription response sent by the first session server and received in S14, which is not described herein.
According to the network session account deployment method, if the first subscription response indicates that the first account is subscribed successfully, other accounts are sequentially adopted to sequentially send the unsubscribe request and the deregistration request to the second session server, so that the second session server sequentially performs unsubscribe and account deregistration of session resources on other accounts, the other accounts are adopted to re-send a fourth registration subscription request to the first session server, and the fourth registration subscription response sent by the first session server is received. By the method provided by the embodiment of the invention, when the first account is retracted to the first session server, other accounts are triggered to be synchronously switched to the first session server, so that different accounts of the same network session terminal are always registered in the same session server, and unified deployment and management of the network session terminal by the domain name server are facilitated.
On the basis of the network session account deployment system, the embodiment of the present application further provides a network session account deployment method, and fig. 7 is a flowchart of a sixth network session account deployment method provided in the embodiment of the present application, where the method may include:
s51: and receiving domain name inquiry requests of at least two accounts sent by the network session terminal.
Specifically, the domain name server 20 is communicatively connected to the network session terminal 10, so as to receive domain name query requests of at least two accounts sent by the network session terminal 10. The domain name query request includes: a target domain name.
S52: and resolving the target domain name to obtain at least one internet protocol address.
Specifically, after receiving the domain name query request including the target domain name, the domain name server 20 invokes a domain name resolution function to resolve the target domain name to obtain at least one internet protocol address.
S53: and returning a domain name query result to the network session terminal.
Specifically, the domain name query result obtained by the parsing is returned to the network session terminal 10, where the domain name query result includes: the network session terminal uses at least two accounts to send a first registration subscription request to a first target session server of one target internet protocol address in the at least one internet protocol address, so that the first target session server registers the two accounts and subscribes session resources.
According to the network session account deployment method, domain name query requests of at least two accounts sent by a network session terminal are received, a target domain name is resolved to obtain at least one Internet protocol address, and a domain name query result is returned to the network session terminal. By the method provided by the embodiment of the application, the domain name inquiry is carried out for a plurality of accounts in the same network session terminal, the domain name inquiry results are returned uniformly, the workload of a domain name server is reduced, and the working efficiency is improved.
In an alternative implementation manner, fig. 8 is a flowchart of a seventh network session account deployment method provided in the embodiment of the present application, as shown in fig. 8, where S51 includes:
s511: and sequentially receiving domain name query requests of at least two accounts sent by the network session terminal.
The step S52 includes:
s521: and under the domain name query flow of the account corresponding to the received first domain name query request, analyzing the target domain name to obtain at least one Internet protocol address.
S522: and suspending the domain name query flow of other accounts.
Specifically, because the network session terminal 10 sends the domain name query requests sequentially when adopting at least two accounts, the domain name server starts to query the domain name after receiving the domain name query request sent by the first account, and if the domain name query request sent by the other accounts is a new query process for the same target domain name, the domain name query process of the other accounts is suspended PENDDING DNS, so that the domain name server only performs the sequential domain name query for the same target domain name.
After the domain name query flow of other accounts is suspended, the domain name server carries out domain name query on the account corresponding to the first domain name query request, returns a domain name query result to the account corresponding to the first domain name query request, and the account corresponding to the first domain name query request informs the other accounts of the domain name query result.
According to the network session account deployment method, domain name query requests of at least two accounts sent by a network session terminal are sequentially received, a target domain name is resolved to obtain at least one Internet protocol address under the domain name query flow of the account corresponding to the received first domain name query request, and the domain name query flow of other accounts is suspended. According to the method provided by the embodiment of the application, when a plurality of accounts initiate query requests for the same target domain name, only the first domain name query request is subjected to domain name resolution, and the domain name query flows of other accounts are suspended, so that only sequential domain name resolution actions are performed for the same target domain name, the workload of a domain name server is reduced, and the working efficiency is improved.
In an alternative embodiment, prior to S53, the method may further include:
The priority of the at least one internet protocol address is calculated based on the session resource occupancy of the at least one session server.
Specifically, in order to ensure session resource balance of the session server 30, to avoid the situation that account numbers of multiple network session terminals are registered to the same session server, the domain name server 20 may sort the registration priority of each session server 30 according to the session resource occupation situation of the session server, so as to determine the priority of the internet protocol address of each session server 30. The domain name query result further includes: priority of at least one internet protocol address.
According to the network session account deployment method provided by the embodiment of the application, the priority of at least one Internet protocol address is calculated according to the session resource occupancy rate of at least one session server. By the method provided by the embodiment of the application, the account numbers of the plurality of network session terminals can be prevented from registering to the same session server, and session resource balance of the session server is ensured.
Fig. 9 is an interaction schematic diagram of a network session account deployment method provided in the embodiment of the present application, where an interaction process of network session account deployment between a first account, a second account, a domain name server, a first session server and a second session server in a network session terminal is shown, and a specific deployment method flow is referred to fig. 2-8 and is not described herein.
On the basis of the foregoing embodiments, the embodiments of the present application further provide a network session account deployment device, and fig. 10 is a schematic structural diagram of a first network session account deployment device provided in the embodiments of the present application, where the network session terminal 10 in the network session account deployment system is applied, and as shown in fig. 10, the device may include:
the request initiating module 101 is configured to initiate a domain name query request to a domain name server using at least two accounts, where the domain name query request includes: a target domain name; the domain name query request is used for enabling the domain name server to analyze the target domain name to obtain at least one internet protocol address;
the result receiving module 102 is configured to receive a domain name query result returned by the domain name server, where the domain name query result includes: at least one internet protocol address;
a first registration subscription request module 103, configured to send a first registration subscription request to a first session server of a target internet protocol address in the at least one internet protocol address by using at least two accounts, so that the first session server registers the two accounts and subscribes to session resources;
the first registration subscription response module 104 is configured to receive a first registration subscription response sent by the first session server, where the first registration subscription response includes: and the indication information is used for indicating whether the subscription of at least two accounts is successfully registered in the first session server.
Optionally, the domain name query result further includes: a priority of at least one internet protocol address; prior to the first registration subscription request module 103, the apparatus further comprises:
and the session server selection module is used for selecting a session server corresponding to one internet protocol address with the highest priority as a first session server according to the priority of at least one internet protocol address.
Optionally, the first registration subscription request module 103 includes:
the first registration subscription request unit is used for sending a registration subscription request of an account to the first session server by adopting the account;
the first registration subscription response unit is used for receiving a registration subscription response of an account sent by the first session server;
and the second registration subscription request unit is used for sending registration subscription requests of other accounts to the first session server by adopting the other accounts if the registration subscription response of one account indicates successful registration subscription of the one account.
Optionally, if the indication information indicates that the registration and subscription of at least two accounts are successful, the first registration and subscription response further includes: registration duration of at least two accounts; the apparatus further comprises:
The first registration request module is used for sending a first registration request to the first session server again by adopting the first account if the registration duration of the first account in the at least two accounts expires;
the first registration response module is used for receiving a first registration response sent by the first session server;
the second registration subscription request module is used for sending a second registration subscription request to a second session server of another target internet protocol address in at least one internet protocol address by adopting the first account if the first registration response indicates that the first session server is in a downtime state, so that the second session server registers the first account and subscribes session resources;
and the second registration subscription response module is used for receiving a second registration subscription response sent by the second session server.
Optionally, the apparatus further comprises:
the third registration subscription request module is used for sending a third registration subscription request to the second session server by adopting other accounts if the first account is detected to finish registration and subscription of session resources in the second session server, so that the second session server registers the other accounts and subscribes the session resources;
And the third registration subscription response module is used for receiving a third registration subscription response sent by the second session server.
Optionally, the first registration response includes: the rollback time of the first account; the apparatus further comprises:
the second registration request module is used for sending a second registration request to the first session server again by adopting the first account if the back-off time of the first account is reached;
the second registration response module is used for receiving a second registration response sent by the first session server;
the first unsubscribing and subscribing module is used for sequentially sending an unsubscribing and registering request to the second session server by adopting the first account if the second registration response indicates that the state of the first session server is restored and the first account is successfully registered, so that the second session server sequentially performs unsubscribing and account number deregistering of session resources on the first account;
the subscription request module is used for adopting the first account number to send a subscription request to the first session server again;
and the subscription response module is used for receiving the subscription response sent by the first session server.
Optionally, the apparatus further comprises:
the second subscription module is used for sequentially adopting other accounts to sequentially send a subscription and registration release request to the second session server if the first subscription response indicates that the first account is subscribed successfully, so that the second session server sequentially performs subscription and account registration release of session resources on the other accounts;
The fourth registration subscription module is used for adopting other accounts to send a fourth registration subscription request to the first session server again;
and the fourth registration subscription response module is used for receiving a fourth registration subscription response sent by the first session server.
On the basis of the foregoing embodiments, the embodiments of the present application further provide a network session account deployment device, and fig. 11 is a schematic structural diagram of a second network session account deployment device provided in the embodiments of the present application, where the application uses the domain name server 20 in the network session account deployment system, and as shown in fig. 11, the device may include:
the request receiving module 201 is configured to receive a domain name query request of at least two accounts sent by a network session terminal, where the domain name query request includes: a target domain name;
the resolution module 202 is configured to resolve the target domain name to obtain at least one internet protocol address;
the result returning module 203 is configured to return a domain name query result to the network session terminal, where the domain name query result includes: the network session terminal uses at least two accounts to send a first registration subscription request to a first target session server of one target internet protocol address in the at least one internet protocol address, so that the first target session server registers the two accounts and subscribes session resources.
Optionally, the request receiving module 201 is configured to sequentially receive domain name query requests of at least two accounts sent by the network session terminal;
the parsing module 202 includes:
the analyzing unit is used for analyzing the target domain name to obtain at least one internet protocol address under the domain name query flow of the account corresponding to the received first domain name query request;
and the suspension unit is used for suspending the domain name query flow of other accounts.
Optionally, before the result returns to the module 203, the apparatus further includes:
a priority calculating module, configured to calculate a priority of at least one internet protocol address according to a session resource occupancy rate of at least one session server; the domain name query result further includes: priority of at least one internet protocol address.
The foregoing apparatus is used for executing the method provided in the foregoing embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
The above modules may be one or more integrated circuits configured to implement the above methods, for example: one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASIC), or one or more microprocessors (digital singnal processor, abbreviated as DSP), or one or more field programmable gate arrays (Field Programmable Gate Array, abbreviated as FPGA), or the like. For another example, when a module above is implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processor that may invoke the program code. For another example, the modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 12 is a schematic diagram of a network session terminal provided in an embodiment of the present application, where the network session terminal 10 includes: processor 11, storage medium 12, and bus, storage medium 12 stores program instructions executable by processor 11, and when network session terminal 10 is running, processor 11 communicates with storage medium 12 via the bus, and processor 11 executes the program instructions to perform the method embodiments described above as being applied to network session terminal 10. The specific implementation manner and the technical effect are similar, and are not repeated here.
Optionally, the present invention also provides a program product, such as a computer readable storage medium, comprising a program for performing the above-described method embodiments applied to the network session terminal 10 when being executed by a processor.
Fig. 13 is a schematic diagram of a domain name server provided in an embodiment of the present application, where the domain name server 20 includes: processor 21, storage medium 22, and bus, storage medium 22 storing program instructions executable by processor 21, processor 21 and storage medium 22 communicating over the bus when domain name server 20 is running, processor 21 executing program instructions to perform the method embodiments described above as being applied to domain name server 20. The specific implementation manner and the technical effect are similar, and are not repeated here.
Optionally, the present invention also provides a program product, such as a computer readable storage medium, comprising a program for performing the above-described method embodiments applied to the domain name server 20 when being executed by a processor.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (english: processor) to perform some of the steps of the methods according to the embodiments of the invention. And the aforementioned storage medium includes: u disk, mobile hard disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
The foregoing is merely illustrative of embodiments of the present invention, and the present invention is not limited thereto, and any changes or substitutions can be easily made by those skilled in the art within the technical scope of the present invention, and the present invention is intended to be covered by the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (14)

1. A network session account deployment method, the method comprising:
initiating a domain name query request to a domain name server by adopting at least two accounts, wherein the domain name query request comprises: a target domain name; the domain name query request is used for enabling the domain name server to analyze the target domain name to obtain at least one internet protocol address;
receiving a domain name query result returned by the domain name server, wherein the domain name query result comprises: said at least one internet protocol address;
transmitting a first registration subscription request to a first session server of one target internet protocol address in the at least one internet protocol address by adopting the at least two accounts, so that the first session server registers the two accounts and subscribes session resources;
receiving a first registration subscription response sent by the first session server, wherein the first registration subscription response comprises: the indication information is used for indicating whether the subscription of the at least two accounts is successfully registered in the first session server;
if the indication information indicates that the registration and subscription of the at least two accounts are successful, the first registration and subscription response further includes: the registration duration of the at least two accounts; the method further comprises the steps of:
If the registration duration of a first account in the at least two accounts expires, a first registration request is sent to the first session server again by adopting the first account;
receiving a first registration response sent by the first session server;
if the first registration response indicates that the first session server is in a downtime state, the first account is adopted to send a second registration subscription request to a second session server of another target internet protocol address in the at least one internet protocol address, so that the second session server registers the first account and subscribes session resources;
receiving a second registration subscription response sent by the second session server;
the method further comprises the steps of:
if the first account number is detected to finish registration and subscription of session resources in the second session server, sending a third registration subscription request to the second session server by adopting other account numbers so that the second session server registers the other account numbers and subscribes to the session resources;
and receiving a third registration subscription response sent by the second session server.
2. The method of claim 1, wherein the domain name query result further comprises: a priority of the at least one internet protocol address;
Before the sending, by the two accounts, the first registration subscription request to the first session server of one target internet protocol address of the at least one internet protocol address, the method further includes:
and selecting a session server corresponding to one internet protocol address with the highest priority as the first session server according to the priority of the at least one internet protocol address.
3. The method of claim 1, wherein the employing the two account numbers to send a first registration subscription request to a first session server of a target one of the at least one internet protocol address comprises:
transmitting a registration subscription request of one account to the first session server by adopting the account;
receiving a registration subscription response of the account sent by the first session server;
and if the registration subscription response of the account indicates successful registration subscription of the account, sending registration subscription requests of other accounts to the first session server by adopting the other accounts.
4. The method of claim 1, wherein the first registration response comprises: the rollback time of the first account; the method further comprises the steps of:
If the rollback time of the first account arrives, the first account is adopted to send a second registration request to the first session server again;
receiving a second registration response sent by the first session server;
if the second registration response indicates that the state of the first session server is restored and the first account is successfully registered, sequentially sending a unsubscribe request and a deregistration request to the second session server by adopting the first account, so that the second session server sequentially performs unsubscribe and account deregistration of session resources on the first account;
re-sending a subscription request to the first session server by adopting the first account;
and receiving a subscription response sent by the first session server.
5. The method of claim 4, wherein the method further comprises:
if the first subscription response indicates that the first account is subscribed successfully, sequentially adopting the other accounts to sequentially send a unsubscribe request and a deregistration request to the second session server, so that the second session server sequentially performs unsubscribe and account deregistration of session resources on the other accounts;
Re-sending a fourth registration subscription request to the first session server by adopting the other account numbers;
and receiving a fourth registration subscription response sent by the first session server.
6. A network session account deployment method, the method comprising:
receiving a domain name query request of at least two accounts sent by a network session terminal, wherein the domain name query request comprises: a target domain name;
resolving the target domain name to obtain at least one internet protocol address;
returning a domain name query result to the network session terminal, wherein the domain name query result comprises: the at least one internet protocol address, the domain name query result is used for enabling the network session terminal to send a first registration subscription request to a first target session server of one target internet protocol address in the at least one internet protocol address by adopting the at least two accounts, so that the first session server registers the two accounts and subscribes session resources;
the domain name query result is further used for enabling the registration duration of a first account in the at least two accounts to expire, adopting the first account to send a first registration request to the first session server again, and if the first registration response of the first session server indicates that the first session server is in a downtime state, adopting the first account to send a second registration subscription request to a second session server of another target internet protocol address in the at least one internet protocol address, so that the second session server registers the first account and subscribes session resources; if it is detected that the first account number has completed registration and subscription of session resources in the second session server, sending a third registration subscription request to the second session server by using other account numbers, so that the second session server registers the other account numbers and subscribes to the session resources, where the first registration subscription response sent by the first session server includes: and registering duration of the at least two accounts.
7. The method of claim 6, wherein receiving the domain name query request of at least two accounts sent by the network session terminal comprises:
sequentially receiving the domain name query requests of the at least two accounts sent by the network session terminal;
the analyzing the target domain name to obtain at least one internet protocol address includes:
under the domain name query flow of the account corresponding to the received first domain name query request, analyzing the target domain name to obtain at least one internet protocol address;
and suspending the domain name query flow of other accounts.
8. The method of claim 6, wherein before the returning the domain name query result to the network session terminal, the method further comprises:
calculating the priority of at least one internet protocol address according to the session resource occupancy of at least one session server; the domain name query result further comprises: the priority of the at least one internet protocol address.
9. A network session account deployment apparatus, the apparatus comprising:
the request initiating module is used for initiating a domain name query request to the domain name server by adopting at least two accounts, wherein the domain name query request comprises: a target domain name; the domain name query request is used for enabling the domain name server to analyze the target domain name to obtain at least one internet protocol address;
The result receiving module is used for receiving a domain name query result returned by the domain name server, and the domain name query result comprises: said at least one internet protocol address;
a registration subscription module, configured to send a first registration subscription request to a first session server of a target internet protocol address in the at least one internet protocol address by using the at least two accounts, so that the first session server registers the two accounts and subscribes to session resources;
the response receiving module is configured to receive a first registration subscription response sent by the first session server, where the first registration subscription response includes: the indication information is used for indicating whether the subscription of the at least two accounts is successfully registered in the first session server;
if the indication information indicates that the registration and subscription of the at least two accounts are successful, the first registration and subscription response further includes: the registration duration of the at least two accounts; the apparatus further comprises:
the first registration request module is used for sending a first registration request to the first session server again by adopting the first account if the registration duration of the first account in the at least two accounts expires;
The first registration response module is used for receiving a first registration response sent by the first session server;
a second registration subscription request module, configured to send a second registration subscription request to a second session server of another target internet protocol address in the at least one internet protocol address by using the first account if the first registration response indicates that the first session server is in a down state, so that the second session server registers the first account and subscribes session resources;
the second registration subscription response module is used for receiving a second registration subscription response sent by the second session server;
the apparatus further comprises:
a third registration subscription request module, configured to send a third registration subscription request to the second session server by using the other account if it is detected that the first account has completed registration and subscription of session resources in the second session server, so that the second session server registers the other account and subscribes to session resources;
and the third registration subscription response module is used for receiving a third registration subscription response sent by the second session server.
10. A network session account deployment apparatus, the apparatus comprising:
the request receiving module is used for receiving domain name inquiry requests of at least two accounts sent by the network session terminal, wherein the domain name inquiry requests comprise: a target domain name;
the analysis module is used for analyzing the target domain name to obtain at least one Internet protocol address;
the result returning module is configured to return a domain name query result to the network session terminal, where the domain name query result includes: the at least one internet protocol address, the domain name query result is used for enabling the network session terminal to send a first registration subscription request to a first target session server of one target internet protocol address in the at least one internet protocol address by adopting the at least two accounts, so that the first target session server registers the two accounts and subscribes session resources;
the domain name query result is further used for enabling the registration duration of a first account in the at least two accounts to expire, adopting the first account to send a first registration request to the first session server again, and if the first registration response of the first session server indicates that the first session server is in a downtime state, adopting the first account to send a second registration subscription request to a second session server of another target internet protocol address in the at least one internet protocol address, so that the second session server registers the first account and subscribes session resources; if it is detected that the first account number has completed registration and subscription of session resources in the second session server, sending a third registration subscription request to the second session server by using other account numbers, so that the second session server registers the other account numbers and subscribes to the session resources, where the first registration subscription response sent by the first session server includes: and registering duration of the at least two accounts.
11. A network session terminal, comprising: the network session account deployment method according to any one of claims 1 to 5, wherein the program instructions executable by the processor are stored in the storage medium, and when the network session terminal is operated, the processor communicates with the storage medium through the bus, and the processor executes the program instructions to perform the steps of the network session account deployment method according to any one of claims 1 to 5.
12. A computer readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the network session account deployment method according to any of claims 1 to 5.
13. A domain name server, comprising: a processor, a storage medium, and a bus, the storage medium storing program instructions executable by the processor, the processor and the storage medium communicating over the bus when the domain name server is running, the processor executing the program instructions to perform the steps of the network session account deployment method according to any one of claims 6 to 8.
14. A computer readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the network session account deployment method according to any of claims 6 to 8.
CN202110554511.8A 2021-05-20 2021-05-20 Network session account deployment method, device, terminal, server and storage medium Active CN113163029B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110554511.8A CN113163029B (en) 2021-05-20 2021-05-20 Network session account deployment method, device, terminal, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110554511.8A CN113163029B (en) 2021-05-20 2021-05-20 Network session account deployment method, device, terminal, server and storage medium

Publications (2)

Publication Number Publication Date
CN113163029A CN113163029A (en) 2021-07-23
CN113163029B true CN113163029B (en) 2023-06-30

Family

ID=76876900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110554511.8A Active CN113163029B (en) 2021-05-20 2021-05-20 Network session account deployment method, device, terminal, server and storage medium

Country Status (1)

Country Link
CN (1) CN113163029B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115604234B (en) * 2022-11-15 2023-03-10 深圳市华曦达科技股份有限公司 VoIP server self-adaptive switching method, system and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469167A (en) * 2010-11-01 2012-05-23 中国移动通信集团北京有限公司 Domain name query implementing method and system
CN103051717A (en) * 2012-12-25 2013-04-17 北京小米科技有限责任公司 Method, device and equipment for processing http request
CN105207998A (en) * 2011-03-11 2015-12-30 北京奇虎科技有限公司 Multi-account registration method and device
CN106230649A (en) * 2016-09-20 2016-12-14 杭州迪普科技有限公司 session resource management method and device
CN106534054A (en) * 2015-09-15 2017-03-22 中兴通讯股份有限公司 Multiparty session processing method and device
CN107026802A (en) * 2016-01-30 2017-08-08 华为技术有限公司 A kind of method for managing resource and equipment
CN108712485A (en) * 2018-05-10 2018-10-26 海信集团有限公司 A kind of resource subscription method and apparatus of internet of things equipment
CN110740121A (en) * 2019-09-09 2020-01-31 西安万像电子科技有限公司 Resource subscription system and method
CN111404922A (en) * 2020-03-12 2020-07-10 厦门亿联网络技术股份有限公司 Communication terminal and VOIP multi-account dynamic adjustment registration system and method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008074365A1 (en) * 2006-12-18 2008-06-26 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for establishing a session

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469167A (en) * 2010-11-01 2012-05-23 中国移动通信集团北京有限公司 Domain name query implementing method and system
CN105207998A (en) * 2011-03-11 2015-12-30 北京奇虎科技有限公司 Multi-account registration method and device
CN103051717A (en) * 2012-12-25 2013-04-17 北京小米科技有限责任公司 Method, device and equipment for processing http request
CN106534054A (en) * 2015-09-15 2017-03-22 中兴通讯股份有限公司 Multiparty session processing method and device
CN107026802A (en) * 2016-01-30 2017-08-08 华为技术有限公司 A kind of method for managing resource and equipment
CN106230649A (en) * 2016-09-20 2016-12-14 杭州迪普科技有限公司 session resource management method and device
CN108712485A (en) * 2018-05-10 2018-10-26 海信集团有限公司 A kind of resource subscription method and apparatus of internet of things equipment
CN110740121A (en) * 2019-09-09 2020-01-31 西安万像电子科技有限公司 Resource subscription system and method
CN111404922A (en) * 2020-03-12 2020-07-10 厦门亿联网络技术股份有限公司 Communication terminal and VOIP multi-account dynamic adjustment registration system and method thereof

Also Published As

Publication number Publication date
CN113163029A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN108712485B (en) Resource subscription method and device for Internet of things equipment
EP3060018B1 (en) Registration method and system for common service entity
US9130967B2 (en) Method and system for network element service recovery
US11563649B2 (en) NF service consumer restart detection using direct signaling between NFs
US9075660B2 (en) Apparatus and method for providing service availability to a user via selection of data centers for the user
CN101730984A (en) Methods, systems, and computer program products for providing fault-tolerant service interaction and mediation function in a communications network
WO2014166265A1 (en) Method, terminal, cache server and system for updating webpage data
CN111913818A (en) Method for determining dependency relationship between services and related device
CN106101171B (en) Server connection method and device
CN112039710B (en) Service fault processing method, terminal equipment and readable storage medium
US20230199534A1 (en) Service producer health-check
CN112218342A (en) Method, device and system for realizing core network sub-slice disaster tolerance
CN113163029B (en) Network session account deployment method, device, terminal, server and storage medium
CN112787918B (en) Data center addressing and master-slave switching method based on service routing tree
CN113810474A (en) Request distribution method and terminal
CN112492011A (en) Distributed storage system fault switching method, system, terminal and storage medium
US20180124576A1 (en) Method and apparatus for implementing member resource processing
CN104639379A (en) Proxy testing method and device
CN104734886A (en) Business server management method, device and system
CN112702441B (en) Container-based access data processing method, device, system and storage medium
CN114422335A (en) Communication method, communication device, server and storage medium
CN113032188A (en) Method, device, server and storage medium for determining main server
CN106992890B (en) Multi-server switching method and system
CN101494659B (en) Method and relevant equipment for selecting session control device
CN111200512A (en) Network connection disaster tolerance method, terminal device, storage medium and electronic device

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