CN105208435B - Data processing method and network element equipment in IPTV system - Google Patents

Data processing method and network element equipment in IPTV system Download PDF

Info

Publication number
CN105208435B
CN105208435B CN201410302142.3A CN201410302142A CN105208435B CN 105208435 B CN105208435 B CN 105208435B CN 201410302142 A CN201410302142 A CN 201410302142A CN 105208435 B CN105208435 B CN 105208435B
Authority
CN
China
Prior art keywords
network element
identification information
information
registered network
equipment
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
CN201410302142.3A
Other languages
Chinese (zh)
Other versions
CN105208435A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201410302142.3A priority Critical patent/CN105208435B/en
Priority to PCT/CN2014/094938 priority patent/WO2015196769A1/en
Publication of CN105208435A publication Critical patent/CN105208435A/en
Application granted granted Critical
Publication of CN105208435B publication Critical patent/CN105208435B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a data processing method and network element equipment in an IPTV system, wherein the method comprises the following steps: acquiring equipment information reported by all accessed registered network element equipment; uniformly maintaining the reported equipment information, and informing all accessed registered network element equipment of the maintained information; when detecting that the accessed registered network element equipment changes, updating the maintained information, and notifying all the accessed registered network element equipment of the updated information, so that the registered network element equipment can determine whether the terminal needs to be notified to perform data migration according to the updated information.

Description

Data processing method and network element equipment in IPTV system
Technical Field
The present invention relates to data processing technologies, and in particular, to a data processing method, an access network element device, and a registration network element device in an IPTV system.
Background
In the process of implementing the technical solution of the embodiment of the present application, the inventor of the present application finds at least the following technical problems in the related art:
with the application of various multi-screen terminals in the IPTV system, the multi-screen interactive service gradually becomes a new service popular with home users, this requires that the IPTV system can provide the user with a service seamlessly switched over the network Set Top Box (STB), PC, mobile phone, PAD, etc., however, when different terminals belong to different network platforms (such as a broadband network and a mobile network), message communication between the terminals needs to be forwarded through the multi-screen gateway, so as to realize multi-screen interactive service, and enable users to smoothly and flexibly switch and share service through mobile phones, PCs and TVs at any time and any place, the multi-screen gateway can not simply forward the message when realizing the multi-screen service, and also needs to manage the terminal data of the IPTV for other terminals to inquire and maintain the online state information of the terminal, therefore, how to process the terminal data in the IPTV system becomes a problem to be solved.
Fig. 1 is a general architecture diagram of a distributed multi-screen gateway of an IPTV system, which includes a plurality of registration servers, a plurality of terminals, and an access server, where the access server is configured to assign IDs to the registration servers, and control the terminals to register with the registration servers, and the processing of the terminal data in the IPTV system is performed by using the access server to perform centralized processing on the terminal data in the IPTV system.
The problems that exist at present are: since the access server is used for performing centralized processing on the terminal data in the IPTV system, when the number of the registration servers increases or decreases, excessive manual intervention is required, migration of the terminal data cannot be automatically and smoothly transitioned, and thus the stability of the entire IPTV system is affected. However, no effective solution exists for this problem.
Disclosure of Invention
In view of this, embodiments of the present invention are intended to provide a data processing method, an access network element device, and a registration network element device in an IPTV system, which can avoid the problem that when a registration server is increased or decreased, excessive manual intervention is required, and migration of terminal data cannot be automatically and smoothly transitioned.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a data processing method in an IPTV system, which comprises the following steps:
acquiring equipment information reported by all accessed registered network element equipment;
uniformly maintaining the reported equipment information, and informing all accessed registered network element equipment of the maintained information;
when detecting that the accessed registered network element equipment changes, updating the maintained information, and notifying all the accessed registered network element equipment of the updated information, so that the registered network element equipment can determine whether the terminal needs to be notified to perform data migration according to the updated information.
Preferably, after the uniform maintenance of the reported device information, the method further includes:
distributing an identification information to all accessed registered network element equipment respectively according to the reported equipment information to obtain an identification information set X1To Xj(ii) a J is a natural number greater than 1;
the maintained information comprises at least the set of identification information X1To Xj
Preferably, the method further comprises:
after a terminal initiates an access request, acquiring equipment identification information Y of the terminal carried in the access request;
obtaining a detection value Z according to the equipment identification information Y and a preset operation strategy;
selecting a first registered network element device from all accessed registered network element devices according to the detection value Z, wherein the first registered network element device is used for terminal registration;
and returning the address of the first registered network element equipment and the detection value Z to the terminal.
Preferably, the selecting the first registered network element device from all the accessed registered network element devices according to the detection value Z includes:
combining the detection value Z with the identification information set X1To XjComparing the identification information in the first identification information list, and selecting first identification information of which the comparison result meets a preset condition; the preset condition is used for representing that the first identification information is closest to the detection value Z in value;
and selecting the registered network element equipment corresponding to the first identification information as the first registered network element equipment.
Preferably, when detecting that the accessed registered network element device changes, the updating the maintained information, and notifying all the accessed registered network element devices of the updated information includes:
when detecting that the accessed registered network element equipment changes, reallocating one identification information for all the accessed registered network element equipment to obtain an identification information set X1To Xi(ii) a The i is a natural number greater than or equal to 1, and the i comprises: the i is larger than the j and the i is smaller than the j;
the update information at least comprises the identification information set X1To Xi
An access network element device of an embodiment of the present invention includes:
a first obtaining unit, configured to obtain device information reported by all accessed registered network element devices;
a maintenance and notification unit, configured to uniformly maintain the reported device information, and notify all accessed registered network element devices of the maintained information;
and the updating and informing unit is used for updating the maintained information when detecting that the accessed registered network element equipment changes, and informing all the accessed registered network element equipment of the updated information, so that the registered network element equipment can determine whether the terminal needs to be informed of data migration according to the updated information.
Preferably, the access network element device further includes:
an allocating unit, configured to allocate an identifier information to all accessed registered network element devices according to the reported device information, so as to obtain an identifier information set X1To Xj(ii) a J is a natural number greater than 1;
the maintained information comprises at least the set of identification information X1To Xj
Preferably, the access network element device further includes:
a second obtaining unit, configured to obtain, after a terminal initiates an access request, device identification information Y of the terminal carried in the access request;
the operation unit is used for obtaining a detection value Z according to the equipment identification information Y and a preset operation strategy;
a selecting unit, configured to select a first registered network element device from all accessed registered network element devices according to the detection value Z;
and a returning unit, configured to return the address of the first registered network element device and the detection value Z to the terminal.
Preferably, the selecting unit is further configured to combine the detection value Z with the identification information set X1To XjComparing the identification information in the first identification information list, and selecting first identification information of which the comparison result meets a preset condition; the preset condition is used for representing that the first identification information is closest to the detection value Z in value; selecting the registered network element equipment corresponding to the first identification information as the second identification informationAnd registering the network element equipment.
Preferably, the updating and notifying unit is further configured to, when detecting that the accessed registered network element device changes, reallocate an identification information for all the accessed registered network element devices to obtain an identification information set X1To Xi(ii) a The i is a natural number greater than or equal to 1, and the i comprises: the i is larger than the j and the i is smaller than the j;
the update information at least comprises the identification information set X1To Xi
The embodiment of the invention provides a data processing method in an IPTV system, which comprises the following steps:
all accessed registered network element devices report device information respectively;
acquiring information maintained by access network element equipment;
acquiring updated information obtained after the maintained information is updated by the access network element equipment;
and determining whether the terminal needs to be informed of data migration according to the updating information.
Preferably, the maintained information comprises at least an identification information set X1To Xj
The set of identification information X1To XjThe network element equipment is used for registering the network element equipment which is accessed by the network element equipment; and j is a natural number greater than 1.
Preferably, the update information comprises at least an identification information set X1To Xi
The set of identification information X1To XiWhen the access network element equipment detects that the accessed registered network element equipment changes, the access network element equipment redistributes identification information for all the accessed registered network element equipment; the i is a natural number greater than or equal to 1, and the i comprises: the i is larger than the j and the i is smaller than the j;
correspondingly, after obtaining the updated information obtained by the access network element device after updating the maintained information, the method further includes:
after a terminal initiates a registration request to access a first registration network element device, acquiring a detection value Z carried in the registration request;
and detecting whether the terminal needs to be registered to other registered network element equipment except the first registered network element equipment again according to the detection value Z so as to carry out data migration.
Preferably, the detecting, according to the detection value Z, whether the terminal needs to be re-registered to another registered network element device except the first registered network element device for data migration includes:
combining the detection value Z with the identification information set X1To XiComparing the identification information in the first identification information, and selecting second identification information of which the comparison result meets the preset condition; the preset condition is used for representing that the second identification information is closest to the detection value Z in value;
and when the second identification information is not the identification information corresponding to the first registered network element equipment, returning a re-registration message to the terminal, and informing the terminal to execute the data migration.
A registered network element device in an embodiment of the present invention, the registered network element device includes:
a reporting unit, configured to report device information respectively for all accessed registered network element devices;
a third obtaining unit, configured to obtain information maintained by the access network element device;
a fourth obtaining unit, configured to obtain update information obtained after the maintained information is updated by the access network element device;
and the determining unit is used for determining whether the terminal needs to be informed of data migration according to the updating information.
Preferably, the maintained information comprises at least an identification information set X1To Xj
The set of identification information X1To XjThe network element equipment is used for registering the network element equipment which is accessed by the network element equipment; j is greater than1, a natural number.
Preferably, the update information comprises at least an identification information set X1To Xi
The set of identification information X1To XiWhen the access network element equipment detects that the accessed registered network element equipment changes, the access network element equipment redistributes identification information for all the accessed registered network element equipment; the i is a natural number greater than or equal to 1, and the i comprises: the i is larger than the j and the i is smaller than the j;
correspondingly, the registering network element device further includes:
a fifth obtaining unit, configured to obtain a detection value Z carried in a registration request after a terminal initiates the registration request to access a first registration network element device;
and the detecting unit is used for detecting whether the terminal needs to be registered to other registered network element equipment except the first registered network element equipment again according to the detection value Z so as to carry out data migration.
Preferably, the detection unit is further configured to combine the detection value Z with the identification information set X1To XiComparing the identification information in the first identification information, and selecting second identification information of which the comparison result meets the preset condition; the preset condition is used for representing that the second identification information is closest to the detection value Z in value; and when the second identification information is not the identification information corresponding to the first registered network element equipment, returning a re-registration message to the terminal, and informing the terminal to execute the data migration.
The data processing method in the IPTV system of the embodiment of the invention comprises the following steps: acquiring equipment information reported by all accessed registered network element equipment; uniformly maintaining the reported equipment information, and informing all accessed registered network element equipment of the maintained information; when detecting that the accessed registered network element equipment changes, updating the maintained information, and notifying all the accessed registered network element equipment of the updated information, so that the registered network element equipment can determine whether the terminal needs to be notified to perform data migration according to the updated information.
By adopting the embodiment of the invention, the access network element equipment can uniformly maintain the equipment information reported by all the accessed registered network element equipment, the maintained information is notified to all the accessed registered network element equipment, when the change of the accessed registered network element equipment is detected, the maintained information is updated, and the updated information is also notified to all the accessed registered network element equipment, so that the change condition of any one registered network element equipment in the IPTV system can be timely sensed by other registered network element equipment, and the information of other registered network element equipment of the whole network in the IPTV system can be mastered because the equipment information is known, so that the registered network element equipment can determine whether to notify the terminal to carry out data migration according to the updated information.
Drawings
FIG. 1 is an overall architecture diagram of a distributed multi-screen gateway;
FIG. 2 is a schematic flow chart of an implementation of an embodiment of the method of the present invention;
fig. 3 is a schematic diagram of the structure of the access network element device of the present invention;
FIG. 4 is a schematic flow chart of an implementation of an embodiment of the method of the present invention;
fig. 5 is a schematic diagram of a component structure of a registered network element device according to the present invention;
fig. 6 is a flowchart of automatic terminal data migration in an application scenario according to an embodiment of the present invention.
Detailed Description
The following describes the embodiments in further detail with reference to the accompanying drawings.
The data processing scheme in the IPTV system of the embodiment of the invention is applied to the technical field of IPTV multi-screen interaction services, and relates to how registered network element equipment in a distributed multi-screen system dynamically manages data of an IPTV terminal.
As shown in fig. 2, a data processing method in an IPTV system according to an embodiment of the present invention includes:
step 101, acquiring device information reported by all accessed registered network element devices;
here, the reported device information at least includes: the IP address of the device; in addition, optionally, the reported device information may further include: the memory of the device, the running state of the CPU and other relevant information.
Step 102, uniformly maintaining the reported device information, and notifying the maintained information to all accessed registered network element devices;
and 103, when detecting that the accessed registered network element equipment changes, updating the maintained information, and notifying all the accessed registered network element equipment of the updated information, so that the registered network element equipment can determine whether to notify the terminal of data migration according to the updated information.
In a preferred embodiment of the present invention, after the uniformly maintaining the reported device information, the method further includes:
distributing an identification information to all accessed registered network element equipment respectively according to the reported equipment information to obtain an identification information set X1To Xj(ii) a J is a natural number greater than 1;
the maintained information comprises at least the set of identification information X1To Xj
Here, the identification information is specifically an equipment ID value of the registered network element equipment.
In a preferred implementation manner of the embodiment of the present invention, the method further includes:
after a terminal initiates an access request, acquiring equipment identification information Y of the terminal carried in the access request;
obtaining a detection value Z according to the equipment identification information Y and a preset operation strategy; here, the preset operation strategy is specifically a hash operation, and the detection value Z is a hash value;
selecting a first registered network element device from all accessed registered network element devices according to the detection value Z, wherein the first registered network element device is used for terminal registration;
and returning the address of the first registered network element equipment and the detection value Z to the terminal.
In a preferred implementation manner of the embodiment of the present invention, the selecting, according to the detection value Z, a first registered network element device from all accessed registered network element devices includes:
combining the detection value Z with the identification information set X1To XjComparing the identification information in the first identification information list, and selecting first identification information of which the comparison result meets a preset condition; the preset condition is used for representing that the first identification information is closest to the detection value Z in value;
and selecting the registered network element equipment corresponding to the first identification information as the first registered network element equipment.
In a preferred implementation manner of this embodiment of the present invention, when detecting that an accessed registered network element device changes, the updating the maintained information, and notifying all accessed registered network element devices of the updated information includes:
when detecting that the accessed registered network element equipment changes, reallocating one identification information for all the accessed registered network element equipment to obtain an identification information set X1To Xi(ii) a The i is a natural number greater than or equal to 1, and the i comprises: the i is larger than the j and the i is smaller than the j;
the update information at least comprises the identification information set X1To Xi
As shown in fig. 3, the access network element device of the embodiment of the present invention includes:
a first obtaining unit 11, configured to obtain device information reported by all accessed registered network element devices;
a maintenance and notification unit 12, configured to uniformly maintain the reported device information, and notify all accessed registered network element devices of the maintained information;
an updating and notifying unit 13, configured to update the maintained information when detecting that the accessed registered network element device changes, and notify all the accessed registered network element devices of the updated information, so that the registered network element devices can determine whether to notify the terminal of performing data migration according to the updated information.
In a preferred implementation manner of the embodiment of the present invention, the access network element device further includes:
an allocating unit, configured to allocate an identifier information to all accessed registered network element devices according to the reported device information, so as to obtain an identifier information set X1To Xj(ii) a J is a natural number greater than 1;
the maintained information comprises at least the set of identification information X1To Xj
In a preferred implementation manner of the embodiment of the present invention, the access network element device further includes:
a second obtaining unit, configured to obtain, after a terminal initiates an access request, device identification information Y of the terminal carried in the access request;
the operation unit is used for obtaining a detection value Z according to the equipment identification information Y and a preset operation strategy;
a selecting unit, configured to select a first registered network element device from all accessed registered network element devices according to the detection value Z;
and a returning unit, configured to return the address of the first registered network element device and the detection value Z to the terminal.
In a preferred implementation manner of the embodiment of the present invention, the selecting unit is further configured to combine the detection value Z and the identification information set X1To XjComparing the identification information in the first identification information list, and selecting first identification information of which the comparison result meets a preset condition; the preset condition is used for representing that the first identification information is closest to the detection value Z in value; and selecting the registered network element equipment corresponding to the first identification information as the first registered network element equipment.
In a preferred implementation manner of this embodiment of the present invention, the update and notification unit is further configured to, when detecting that the accessed registered network element device changes, reallocate an identification information for all the accessed registered network element devices to obtain an identification information set X1To Xi(ii) a The i is a natural number greater than or equal to 1, and the i comprises: the i is larger than the j and the i is smaller than the j;
the update information at least comprises the identification information set X1To Xi
As shown in fig. 4, a data processing method in an IPTV system according to an embodiment of the present invention includes:
step 201, all the accessed registered network element devices report device information respectively;
here, the reported device information at least includes: the IP address of the device; in addition, optionally, the reported device information may further include: the memory of the device, the running state of the CPU and other relevant information.
Step 202, obtaining information maintained by access network element equipment;
step 203, obtaining the updated information obtained by the access network element equipment after updating the maintained information;
and step 204, determining whether the terminal needs to be informed of data migration according to the updating information.
In a preferred implementation manner of the embodiment of the present invention, the maintained information at least includes an identification information set X1To Xj
The set of identification information X1To XjThe network element equipment is used for registering the network element equipment which is accessed by the network element equipment; and j is a natural number greater than 1.
In a preferred implementation manner of the embodiment of the present invention, the update information at least includes an identification information set X1To Xi
The set of identification information X1To XiDetection of accessed registration network element by access network element equipmentWhen the equipment changes, the identification information redistributed for all the accessed registered network element equipment is formed; the i is a natural number greater than or equal to 1, and the i comprises: the i is larger than the j and the i is smaller than the j;
correspondingly, after obtaining the updated information obtained by the access network element device after updating the maintained information, the method further includes:
after a terminal initiates a registration request to access a first registration network element device, acquiring a detection value Z carried in the registration request;
and detecting whether the terminal needs to be registered to other registered network element equipment except the first registered network element equipment again according to the detection value Z so as to carry out data migration.
In a preferred implementation manner of this embodiment of the present invention, the detecting, according to the detection value Z, whether the terminal needs to re-register to another registered network element device except the first registered network element device for data migration includes:
combining the detection value Z with the identification information set X1To XiComparing the identification information in the first identification information, and selecting second identification information of which the comparison result meets the preset condition; the preset condition is used for representing that the second identification information is closest to the detection value Z in value;
and when the second identification information is not the identification information corresponding to the first registered network element equipment, returning a re-registration message to the terminal, and informing the terminal to execute the data migration.
As shown in fig. 5, a registered network element device of an embodiment of the present invention includes:
a reporting unit 21, configured to report device information respectively for all accessed registered network element devices;
a third obtaining unit 22, configured to obtain information maintained by the access network element device;
a fourth obtaining unit 23, configured to obtain update information obtained after the access network element device updates the maintained information;
and the determining unit 24 is configured to determine whether the terminal needs to be notified to perform data migration according to the update information.
In a preferred implementation manner of the embodiment of the present invention, the maintained information at least includes an identification information set X1To Xj
The set of identification information X1To XjThe network element equipment is used for registering the network element equipment which is accessed by the network element equipment; and j is a natural number greater than 1.
In a preferred implementation manner of the embodiment of the present invention, the update information at least includes an identification information set X1To Xi
The set of identification information X1To XiWhen the access network element equipment detects that the accessed registered network element equipment changes, the access network element equipment redistributes identification information for all the accessed registered network element equipment; the i is a natural number greater than or equal to 1, and the i comprises: the i is larger than the j and the i is smaller than the j;
correspondingly, the registering network element device further includes:
a fifth obtaining unit, configured to obtain a detection value Z carried in a registration request after a terminal initiates the registration request to access a first registration network element device;
and the detecting unit is used for detecting whether the terminal needs to be registered to other registered network element equipment except the first registered network element equipment again according to the detection value Z so as to carry out data migration.
In a preferred implementation manner of the embodiment of the present invention, the detection unit is further configured to combine the detection value Z and the identification information set X1To XiComparing the identification information in the first identification information, and selecting second identification information of which the comparison result meets the preset condition; the preset condition is used for representing that the second identification information is closest to the detection value Z in value; and when the second identification information is not the identification information corresponding to the first registered network element equipment, returning a re-registration message to the terminal, and informing the terminal to execute the data migration.
The embodiment of the invention is applied to specific IPTV multi-screen services, and mainly comprises the following contents:
two core modules for implementing the above data processing technology: one is an access network element device, specifically an access server; the other is a registered network element device, specifically a registration server, and the functions of the two modules are respectively:
accessing a server: and the system is responsible for balancing the access load of the terminal and the set-top box and distributing the registration server.
The registration server: and the terminal is responsible for acquiring and maintaining the information of the terminal user, including registration and keep-alive.
The access server only has one in the system as a single point, and the reliability of the access server is ensured by adopting a dual-machine mode. The functions of maintaining a registration server and processing access information of a terminal user are mainly carried out.
The registration server bears the management of the terminal data, and the registration servers are distributed to manage the terminal data. Multiple registration servers in the system are managed by the access server and, when the registration servers are started, will register in the access server, report its own information, the access server maintains the relevant information of the registration server in the system, and assigns an ID value to each registration server, the maintained information is then pushed to all registry servers, so that all registry servers in the system know the information of other registry servers, when the registration server is abnormally hung up or a new registration server is added, the access server will re-assign a new ID value to each registration server, then timely informing other registration servers, and through the distributed control mechanism, for the change situation of the registration server in the system, other registration servers can sense the change in time and automatically migrate the terminal data according to the change.
When a terminal such as a set-top box and the terminal is started up, an access message is firstly sent to an access server for access, after the access server receives the access message of the terminal, a hash value is calculated according to a Device ID of the terminal, then a registration server with the ID value closest to the hash value of the terminal is selected and returned to the terminal, and in the return message, the access server returns an IP address and the hash value of the registration server to the terminal. After receiving the return message of the access server, the terminal saves the address and the hash value of the registration server, sends the registration message to the registration server, reports the information of the terminal, and the registration server establishes an index in a memory according to the Device ID of the terminal, saves and maintains the information of the terminal. The subsequent terminal sends heartbeat to the registration server at regular time, and the heartbeat message reports the hash value to the registration server.
The embodiment of the invention mainly realizes the migration of user data among the registration servers when the registration servers are increased or decreased through the matching of the access server, the registration server and the terminal of the multi-screen gateway, and simultaneously realizes the migration of the heartbeat message sending of the terminal. For the registration server, when the terminal maintains the online state information of itself through the heartbeat message, the heartbeat message of the terminal carries the hash value calculated by the access server for the terminal, the registration server analyzes the hash value in the message after receiving the heartbeat message, then checks whether the hash value of the terminal is closest to the ID value of the registration server according to the information of all the registration servers in the system maintained by itself, if the registration server changes during the heartbeat message of the terminal, because the access distributes a new ID value to the registration server again, the hash value of the terminal is probably closest to the ID values of other registration servers, therefore, the terminal needs to migrate under the condition, the registration server returns a new registration server address to the terminal in the return message of the heartbeat message, and deletes the relevant information of the terminal in the memory of itself at the same time, after receiving the message, the terminal will register and keep alive heartbeat with the new register server again, and the information is maintained by the new register server
As shown in fig. 6, a complete process of a specific application scenario to which the embodiment of the present invention is applied is shown, where an access network element device is specifically an access server of a multi-screen gateway, and a registration network element device is specifically a registration server of a multi-screen gateway, in this application scenario, two registration servers are taken as an example, and there are no two registration servers in practical application, and the process includes a preprocessing step of starting the access server and performing monitoring on a specific port, and further includes the following steps:
601, the registration server starts up, establishes connection to a monitoring port of the access server, and reports registration related information of the registration server; and the registration server sends heartbeat messages to the access server at regular time to maintain the online state information of the registration server.
Here, the heartbeat message tells the access server that the registration server is still alive because the message is sent every fixed time like a heartbeat. That is, the heartbeat message is transmitted in order to confirm a fact that both the interconnected parties are on-line without communication for a long time or that a communication link existing between the interconnected parties has been disconnected. Once established, the connection can only be broken abnormally or normally, and not because there is no data transmission.
Step 602, after receiving the registration related information of the plurality of registration servers, the access server stores and maintains the registration related information in the access server, and assigns an ID value to each registration server.
Step 603, the access server pushes the relevant information of the registration server maintained by itself to all the registration servers, so that each registration server knows the relevant information of other registration servers in the system.
Here, the case where the number of registration servers is reduced includes: when the registration server is hung abnormally, the access server can judge whether a certain registration server is abnormal or not through whether a connection (such as a TCP connection) exists or whether heartbeat is overtime or not, and if the connection is abnormal, an ID value is reassigned to each registration server and other surviving registration servers are notified.
Here, the case where the registration server is added includes: when a new registration server is added, the newly added registration server can automatically establish connection with the access server and report the state information of the newly added registration server, after the access server receives the reported information, the information of the newly added registration server is added in a registration server list maintained by the access server, meanwhile, the hash value is recalculated for each registration server, and the related information of all the registration servers is pushed to the registration server.
And step 604, when the IPTV terminal accesses the multi-screen gateway system, applying for access to an access server through the access message.
Step 605, the access server calculates a hash value according to a Device identifier (Device ID) of the terminal, selects a registration server whose ID value is close to the hash value of the terminal, and allocates the registration server whose ID value is closest to the hash value to the terminal.
Step 606, the access server sends a return message to the terminal, where the return message carries the IP address of the registration server whose ID value is closest to the hash and the hash value calculated in step 605.
Here, the terminal subsequently queries the registration server via the IP address to be able to initiate a registration message with the registration server.
Step 607, after receiving the return message, the terminal stores the hash value and registers to the registration server.
And step 608, the terminal sends the heartbeat message to the registration server periodically to keep alive, and the hash value stored in the step 607 is carried in the heartbeat message.
Step 609, the registration server sends the incremental or decremental change and the access server reassigns a new ID value to each registration server.
Step 610, the access server sends a new ID value that is reassigned for each registration server.
Step 611, after receiving the heartbeat message sent by the terminal, the registration server analyzes the hash value in the heartbeat message, and reconfirms whether the hash value is closest to the ID of the registration server; if not, go to step 612; otherwise, the current connection is saved without processing.
Step 612, sending a heartbeat reply message, where the message is used to notify the terminal that the message needs to be re-registered, and the heartbeat reply message returns the new IP address and hash value of the registration server to the terminal, and meanwhile, deletes the relevant information of the terminal in the memory.
Step 613, the terminal judges the hash values obtained before and after the comparison (one hash value calculated by the server obtained in step 606; and one hash value calculated by the registration server obtained in step 612, and the calculation rules of the hash values are the same), if the hash values are the same, the migration is not needed, and if the hash values are not the same, the terminal is required to perform data migration, and the data migration is performed.
Step 614, the terminal receives the heartbeat reply message, and the message is used for notifying the terminal that the terminal needs to register the message again, and then the terminal registers the message with a new registration server.
And step 615, sending heartbeat messages to keep alive.
Here, step 613 may or may not be present; step 614 and step 615 may occur simultaneously or in a sequential order as shown in the present flow.
In the application scenario, the embodiment of the invention is adopted, and for the problem that more and more users use multi-screen services at present, how to perform distributed effective management on the data of the users in a multi-screen gateway system instead of adopting a centralized data management mode is solved.
The integrated module according to the embodiment of the present invention may also be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as an independent product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which 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) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
Accordingly, an embodiment of the present invention further provides a computer storage medium, in which a computer program is stored, where the computer program is used to execute the data processing method in the IPTV system according to the embodiment of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (16)

1. A method for processing data in an IPTV system, the method comprising:
acquiring equipment information reported by all accessed registered network element equipment;
uniformly maintaining the reported equipment information, and informing all accessed registered network element equipment of the maintained information;
when detecting that the accessed registered network element equipment changes, updating the maintained information, and informing all the accessed registered network element equipment of the updated information, so that the registered network element equipment can determine whether to inform the terminal of data migration according to the updated information;
after a terminal initiates an access request, acquiring equipment identification information Y of the terminal carried in the access request;
obtaining a detection value Z according to the equipment identification information Y and a preset operation strategy;
selecting a first registered network element device from all accessed registered network element devices according to the detection value Z, wherein the first registered network element device is used for terminal registration;
and returning the address of the first registered network element equipment and the detection value Z to the terminal.
2. The method according to claim 1, wherein after the uniformly maintaining the reported device information, the method further comprises:
distributing an identification information to all accessed registered network element equipment respectively according to the reported equipment information to obtain an identification information set X1To Xj(ii) a J is a natural number greater than 1;
the maintained information comprises at least the set of identification information X1To Xj
3. The method of claim 2, wherein the selecting the first registered network element device from all the accessed registered network element devices according to the detection value Z comprises:
combining the detection value Z with the identification information set X1To XjComparing the identification information in the first identification information list, and selecting first identification information of which the comparison result meets a preset condition; the preset condition is used for representing that the first identification information is closest to the detection value Z in value;
and selecting the registered network element equipment corresponding to the first identification information as the first registered network element equipment.
4. The method according to any one of claims 2 to 3, wherein the updating the maintained information when detecting that the accessed registered network element device changes, and notifying all the accessed registered network element devices of the updated information comprises:
when detecting that the accessed registered network element equipment changes, reallocating one identification information for all the accessed registered network element equipment to obtain an identification information set X1To Xi(ii) a The i is a natural number greater than or equal to 1, and the i comprises: the i is larger than the j and the i is smaller than the j;
the update information at least comprises the identification information set X1To Xi
5. An access network element device, characterized in that the access network element device comprises:
a first obtaining unit, configured to obtain device information reported by all accessed registered network element devices;
a maintenance and notification unit, configured to uniformly maintain the reported device information, and notify all accessed registered network element devices of the maintained information;
an updating and notifying unit, configured to update the maintained information when detecting that the accessed registered network element device changes, and notify all the accessed registered network element devices of the updated information, so that the registered network element devices can determine whether to notify the terminal of performing data migration according to the updated information;
a second obtaining unit, configured to obtain, after a terminal initiates an access request, device identification information Y of the terminal carried in the access request;
the operation unit is used for obtaining a detection value Z according to the equipment identification information Y and a preset operation strategy;
a selecting unit, configured to select a first registered network element device from all accessed registered network element devices according to the detection value Z;
and a returning unit, configured to return the address of the first registered network element device and the detection value Z to the terminal.
6. The access network element device of claim 5, wherein the access network element device further comprises:
an allocating unit, configured to allocate an identifier information to all accessed registered network element devices according to the reported device information, so as to obtain an identifier information set X1To Xj(ii) a J is a natural number greater than 1;
the maintained information comprises at least the set of identification information X1To Xj
7. The access network element device of claim 6, wherein the selecting unit is further configured to combine the detection value Z with the identification information set X1To XjThe identification information in the step (2) is compared, and the first target with the comparison result meeting the preset condition is selectedIdentifying information; the preset condition is used for representing that the first identification information is closest to the detection value Z in value; and selecting the registered network element equipment corresponding to the first identification information as the first registered network element equipment.
8. The access NE of any one of claims 6 to 7, wherein the update and notification unit is further configured to, when detecting that the accessed registered NE device changes, reallocate an identifier for all the accessed registered NE devices to obtain an identifier set X1To Xi(ii) a The i is a natural number greater than or equal to 1, and the i comprises: the i is larger than the j and the i is smaller than the j;
the update information at least comprises the identification information set X1To Xi
9. A method for processing data in an IPTV system, the method comprising:
all accessed registered network element devices report device information respectively;
acquiring information maintained by access network element equipment;
acquiring updated information obtained after the maintained information is updated by the access network element equipment;
determining whether the terminal needs to be informed of data migration according to the updating information;
after a terminal initiates a registration request to access a first registration network element device, acquiring a detection value Z carried in the registration request;
and detecting whether the terminal needs to be registered to other registered network element equipment except the first registered network element equipment again according to the detection value Z so as to carry out data migration.
10. The method of claim 9, wherein the maintained information comprises at least a set of identification information X1To Xj
The set of identification information X1To XjThe network element equipment is used for registering the network element equipment which is accessed by the network element equipment; and j is a natural number greater than 1.
11. Method according to claim 9 or 10, characterized in that said update information comprises at least an identification information set X1To Xi
The set of identification information X1To XiWhen the access network element equipment detects that the accessed registered network element equipment changes, the access network element equipment redistributes identification information for all the accessed registered network element equipment; the i is a natural number greater than or equal to 1, and the i comprises: i is greater than j and i is less than j.
12. The method of claim 11, wherein the detecting, according to the detected value Z, whether the terminal needs to re-register to another registered network element device other than the first registered network element device for data migration comprises:
combining the detection value Z with the identification information set X1To XiComparing the identification information in the first identification information, and selecting second identification information of which the comparison result meets the preset condition; the preset condition is used for representing that the second identification information is closest to the detection value Z in value;
and when the second identification information is not the identification information corresponding to the first registered network element equipment, returning a re-registration message to the terminal, and informing the terminal to execute the data migration.
13. A registered network element device, wherein the registered network element device comprises:
a reporting unit, configured to report device information respectively for all accessed registered network element devices;
a third obtaining unit, configured to obtain information maintained by the access network element device;
a fourth obtaining unit, configured to obtain update information obtained after the maintained information is updated by the access network element device;
a determining unit, configured to determine whether to notify the terminal of data migration according to the update information;
a fifth obtaining unit, configured to obtain a detection value Z carried in a registration request after a terminal initiates the registration request to access a first registration network element device;
and the detecting unit is used for detecting whether the terminal needs to be registered to other registered network element equipment except the first registered network element equipment again according to the detection value Z so as to carry out data migration.
14. The registered network element device of claim 13, wherein the maintained information comprises at least an identification information set X1To Xj
The set of identification information X1To XjThe network element equipment is used for registering the network element equipment which is accessed by the network element equipment; and j is a natural number greater than 1.
15. A registered network element device according to claim 13 or 14, characterized in that said update information comprises at least an identification information set X1To Xi
The set of identification information X1To XiWhen the access network element equipment detects that the accessed registered network element equipment changes, the access network element equipment redistributes identification information for all the accessed registered network element equipment; the i is a natural number greater than or equal to 1, and the i comprises: i is greater than j and i is less than j.
16. The registered network element device of claim 15, wherein the detecting unit is further configured to combine the detection value Z with the identification information set X1To XiComparing the identification information in the first identification information, and selecting second identification information of which the comparison result meets the preset condition; the preset condition is used for representing that the second identification information and the detection value Z are numerically connected mostApproaching; and when the second identification information is not the identification information corresponding to the first registered network element equipment, returning a re-registration message to the terminal, and informing the terminal to execute the data migration.
CN201410302142.3A 2014-06-27 2014-06-27 Data processing method and network element equipment in IPTV system Active CN105208435B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410302142.3A CN105208435B (en) 2014-06-27 2014-06-27 Data processing method and network element equipment in IPTV system
PCT/CN2014/094938 WO2015196769A1 (en) 2014-06-27 2014-12-25 Method for processing data in iptv system, and network element device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410302142.3A CN105208435B (en) 2014-06-27 2014-06-27 Data processing method and network element equipment in IPTV system

Publications (2)

Publication Number Publication Date
CN105208435A CN105208435A (en) 2015-12-30
CN105208435B true CN105208435B (en) 2020-09-18

Family

ID=54936670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410302142.3A Active CN105208435B (en) 2014-06-27 2014-06-27 Data processing method and network element equipment in IPTV system

Country Status (2)

Country Link
CN (1) CN105208435B (en)
WO (1) WO2015196769A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559228A (en) * 2015-09-25 2017-04-05 中兴通讯股份有限公司 A kind of terminal use's puts dress method and device
CN107105049B (en) * 2017-05-10 2018-10-02 腾讯科技(深圳)有限公司 Data migration method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070206741A1 (en) * 2006-03-01 2007-09-06 Sbc Knowledge Ventures Lp Method and apparatus for monitoring network activity
US20110191813A1 (en) * 2010-02-04 2011-08-04 Mike Rozhavsky Use of picture-in-picture stream for internet protocol television fast channel change
CN102710985B (en) * 2012-01-17 2016-03-30 晨星软件研发(深圳)有限公司 Realize TV in family lan and move the method for screen, system and television equipment
CN103581704B (en) * 2012-07-31 2017-07-07 华为技术有限公司 The method and apparatus for realizing multi-screen interactive
CN103581740B (en) * 2013-10-25 2018-09-25 南京中兴软件有限责任公司 A kind of distributed IPTV multi-screens gateway and IPTV multi-screen interaction methods

Also Published As

Publication number Publication date
CN105208435A (en) 2015-12-30
WO2015196769A1 (en) 2015-12-30

Similar Documents

Publication Publication Date Title
US9374419B2 (en) Controlling registration floods in VoIP networks via DNS
US9596134B2 (en) Synchronization of configuration file of virtual application distribution chassis
US7225356B2 (en) System for managing operational failure occurrences in processing devices
US8631270B2 (en) Method, device for running internet protocol television service system, and internet protocol television service system
US11822453B2 (en) Methods and systems for status determination
KR20110074096A (en) Method, device and system for monitoring trouble of distributed home-network
US20130346513A1 (en) Migrating a chat message service provided by a chat server to a new chat server
US9900385B2 (en) Connection management device, communication system, connection management method, and computer program product
EP3331247A1 (en) Multi-screen control method and device
CN111367662A (en) Load balancing method, device and system
US11617063B2 (en) Method, apparatus, and system for changing association relationship between MCPTT user and MCPTT group
US11025490B2 (en) Method for dynamically managing a network service in a communication network
US10802896B2 (en) Rest gateway for messaging
CN105208435B (en) Data processing method and network element equipment in IPTV system
KR101883671B1 (en) Method and management server for dtitributing node
CN106792843B (en) Equipment management method and device
US9019964B2 (en) Methods and systems for routing application traffic
EP2800336B1 (en) Processing data
CN113472662B (en) Path redistribution method and network service system
KR101076762B1 (en) Apparatus for assigning process and method for operating the same
CN111696657A (en) Intermediate server, medical monitoring apparatus, connection method thereof, and storage medium
US10225135B2 (en) Provision of management information and requests among management servers within a computing network
KR20240074579A (en) Gateway device and method for routing management based on response information
CN111083213A (en) Communication method and system
JP2009230388A (en) Name service system of distributed object communication and name service program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
GR01 Patent grant
GR01 Patent grant