WO2015196769A1 - Iptv系统中的数据处理方法及网元设备 - Google Patents

Iptv系统中的数据处理方法及网元设备 Download PDF

Info

Publication number
WO2015196769A1
WO2015196769A1 PCT/CN2014/094938 CN2014094938W WO2015196769A1 WO 2015196769 A1 WO2015196769 A1 WO 2015196769A1 CN 2014094938 W CN2014094938 W CN 2014094938W WO 2015196769 A1 WO2015196769 A1 WO 2015196769A1
Authority
WO
WIPO (PCT)
Prior art keywords
network element
identification information
information
registered network
element device
Prior art date
Application number
PCT/CN2014/094938
Other languages
English (en)
French (fr)
Inventor
季健
潘道华
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015196769A1 publication Critical patent/WO2015196769A1/zh

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

Definitions

  • the present invention relates to data processing technology, in particular to a data processing method, access network element equipment and registered network element equipment in an IPTV system.
  • the multi-screen interactive service has gradually become a new type of service popular with home users.
  • STB network set-top boxes
  • PAD and other terminals seamlessly switch business services, but when different terminals belong to different network platforms (such as broadband networks and mobile networks), the message communication between the terminals needs to be forwarded through a multi-screen gateway to realize multi-screen interactive services. Allows users to smoothly and flexibly switch and share services through mobile phones, PCs, and TVs anytime and anywhere.
  • multi-screen gateways need to implement multi-screen services and cannot simply forward messages. It also needs to manage IPTV terminal data for others The terminal performs inquiries and maintains the online status information of the terminal. Therefore, how to process the terminal data in the IPTV system becomes a problem to be solved.
  • FIG 1 shows the overall architecture diagram of the distributed multi-screen gateway of the IPTV system, including multiple registration servers, multiple terminals and an access server.
  • the access server is used to assign IDs to the registration server and control the terminal to the registration server.
  • To register and process terminal data in the IPTV system is to use an access server to centrally process terminal data in the IPTV system.
  • the current problem is that because the access server is used for centralized processing of terminal data in the IPTV system, when the registration server increases or decreases, too much manual intervention is required, and the migration of terminal data cannot be automatically and smoothly transitioned. This will affect the stability of the entire IPTV system To Sex. However, there is no effective solution to this problem.
  • the embodiments of the present invention hope to provide a data processing method, access network element equipment, and registered network element equipment in an IPTV system, which can avoid the need for excessive manual intervention when the registration server increases or decreases, and terminal data The problem that the migration cannot automatically and smoothly transition.
  • the maintained information is updated, and the updated information is notified to all registered network element devices that have been connected, so that the registered network element device can determine whether or not according to the update information.
  • the terminal needs to be notified to perform data migration.
  • the method further includes:
  • the reported device information assign identification information to all the registered network element devices that have been connected to each to obtain an identification information set X 1 to X j ; where j is a natural number greater than 1;
  • the maintained information includes at least the identification information set X 1 to X j .
  • the method further includes:
  • the said detection value Z is selected from all the registered network element devices that have been accessed To
  • the first registered network element equipment includes:
  • the detection value Z is compared with the identification information in the identification information set X 1 to X j , and the first identification information whose comparison result meets a preset condition is selected; the preset condition is used to characterize the The first identification information is closest in value to the detection value Z;
  • the maintained information is updated, and the updated information is notified to all registered network element devices that have been accessed, including:
  • a piece of identification information is reassigned to all the registered network element devices that have been connected to obtain a set of identification information X 1 to X i ;
  • the i is a natural number greater than or equal to 1,
  • the i includes: the i is greater than the j and the i is less than the j;
  • the update information comprises at least identification information of said set of X 1 to X i.
  • the access network element device includes:
  • the first acquiring unit is configured to acquire device information reported by all registered network element devices that have been connected;
  • the maintenance and notification unit is configured to uniformly maintain the reported device information, and notify all the registered network element devices that have been connected to the maintained information;
  • the update and notification unit is configured to update the maintained information when it detects that the registered network element device that has been connected has changed, and notify all the connected registered network element devices of the update information, so that the registered network element device can According to the update information, it is determined whether the terminal needs to be notified to perform data migration.
  • the access network element device further includes:
  • the allocation unit is configured to allocate identification information to all the registered network element devices that have been accessed according to the reported device information to obtain identification information sets X 1 to X j ; where j is a natural number greater than 1;
  • the maintained information includes at least the identification information set X 1 to X j .
  • the access network element device further includes:
  • the second acquiring unit is configured to acquire the device identification information Y of the terminal carried in the access request after the terminal initiates an access request;
  • An operation unit configured to obtain a detection value Z according to the device identification information Y and a preset operation strategy
  • the selecting unit is configured to select the first registered network element device from all connected registered network element devices according to the detection value Z;
  • the returning unit is configured to return the address of the first registered network element device and the detection value Z to the terminal.
  • the selection unit is further configured to compare the detection value Z with the identification information in the identification information set X 1 to X j , and select the first identification information whose comparison result meets a preset condition
  • the preset condition is used to characterize that the first identification information and the detection value Z are closest in value; the registered network element device corresponding to the first identification information is selected as the first registered network element device.
  • the update and notification unit is further configured to, when detecting that the registered network element device that has been accessed has changed, re-allocate a piece of identification information for all the registered network element devices that have been accessed to obtain the identification information set X 1 to X i ; said i is a natural number greater than or equal to 1, and said i includes: the i is greater than the j and the i is less than the j;
  • the update information comprises at least identification information of said set of X 1 to X i.
  • the first acquisition unit, the maintenance and notification unit, the update and notification unit, the allocation unit, the second acquisition unit, the arithmetic unit, the selection unit, and the return unit are performing processing At this time, a central processing unit (CPU, Central Processing Unit), a digital signal processor (DSP, Digital Signal Processor) or a programmable logic array (FPGA, To Field-Programmable Gate Array) implementation.
  • CPU Central Processing Unit
  • DSP Digital Signal Processor
  • FPGA To Field-Programmable Gate Array
  • the update information it is determined whether the terminal needs to be notified to perform data migration.
  • the maintained information at least includes identification information sets X 1 to X j ;
  • the identification information sets X 1 to X j are composed of identification information respectively allocated by the access network element device to all registered network element devices that have been accessed; the j is a natural number greater than 1.
  • the update information at least includes identification information sets X 1 to X i ;
  • the identification information set X 1 to X i is composed of identification information that is re-allocated for all the registered network element devices that have been accessed when the access network element device detects that the registered network element device that has been connected has changed; Is a natural number greater than or equal to 1, and the i includes: the i is greater than the j and the i is less than the j;
  • the method further includes:
  • the terminal After the terminal initiates a registration request to access the first registered network element device, obtains the detection value Z carried in the registration request;
  • the detection value Z it is detected whether the terminal needs to be re-registered to other registered network element devices other than the first registered network element device to perform data migration.
  • the detecting whether the terminal needs to be re-registered to other registered network element devices other than the first registered network element device according to the detection value Z for data migration includes:
  • Said identification information detection value Z set to the identification information X 1 to X i are for comparison, select the second identification information comparison result satisfy the predetermined condition; the preset condition for characterizing the The second identification information is closest in value to the detection value Z;
  • the second identification information is not the identification information corresponding to the first registered network element device, return a re-registration message to the terminal, and notify the terminal to perform the data migration.
  • the registered network element device includes:
  • the reporting unit is configured to report device information to all registered network element devices that have been connected;
  • the third obtaining unit is configured to obtain information maintained by the access network element device
  • the fourth obtaining unit is configured to obtain updated information obtained after the access network element device updates the maintained information
  • the determining unit is configured to determine whether the terminal needs to be notified to perform data migration according to the update information.
  • the maintained information at least includes identification information sets X 1 to X j ;
  • the identification information sets X 1 to X j are composed of identification information respectively allocated by the access network element device to all registered network element devices that have been accessed; the j is a natural number greater than 1.
  • the update information at least includes identification information sets X 1 to X i ;
  • the identification information set X 1 to X i is composed of identification information that is re-allocated for all the registered network element devices that have been accessed when the access network element device detects that the registered network element device that has been connected has changed; Is a natural number greater than or equal to 1, and the i includes: the i is greater than the j and the i is less than the j;
  • the registered network element device further includes:
  • the fifth acquiring unit is configured to acquire the detection value Z carried in the registration request after the terminal initiates a registration request to access the first registered network element device;
  • the detecting unit is configured to detect whether the terminal needs to be re-registered to other registered network element devices except the first registered network element device according to the detection value Z, so as to perform data migration.
  • the detection unit is further configured to detect the value of the identification information to the identification information set Z X 1 to X i is to compare, select the second identification information comparison result satisfy the predetermined condition
  • the preset condition is used to characterize that the second identification information and the detection value Z are closest in value; when the second identification information is not the identification information corresponding to the first registered network element device, return Re-register a message to the terminal, and notify the terminal to perform the data migration.
  • the reporting unit, the third acquiring unit, the fourth acquiring unit, the determining unit, the fifth acquiring unit, and the detecting unit may use a central processing unit (CPU, Central Processing Unit) when performing processing. Unit), digital signal processor (DSP, Digital Singnal Processor) or programmable logic array (FPGA, Field-Programmable Gate Array) implementation.
  • CPU Central Processing Unit
  • DSP Digital Singnal Processor
  • FPGA Field-Programmable Gate Array
  • the method includes: obtaining device information reported by all registered network element devices that have been connected; uniformly maintaining the reported device information, and notifying the maintained information For all registered network element devices that have been connected; when a change is detected in the registered network element device that has been connected, the maintained information is updated, and the updated information is notified to all registered network element devices that have been connected to register
  • the network element device can determine whether it is necessary to notify the terminal to perform data migration according to the update information.
  • the access network element device can perform unified maintenance of the device information reported by all the registered network element devices that have been connected, and notify all the registered network element devices that have been connected to the maintained information.
  • the registered network element device that has been connected changes, the maintained information is updated, and the updated information is also notified to all registered network element devices that have been connected, so that any registered network element device in the IPTV system changes .
  • Other registered network element devices can be sensed in time, because in addition to knowing the device information, it can also grasp the information of other registered network element devices in the entire network in the IPTV system, so that it can master other registered network elements in the entire network in the IPTV system For the information of the device, the registered network element device can determine whether it is necessary to notify the terminal for data migration according to the update information.
  • Figure 1 is a diagram of the overall architecture of a distributed multi-screen gateway
  • Figure 2 is a schematic diagram of the implementation process of the method embodiment of the present invention.
  • Figure 3 is a schematic diagram of the composition structure of the access network element equipment of the present invention.
  • Figure 4 is a schematic diagram of the implementation process of the method embodiment of the present invention.
  • Figure 5 is a schematic diagram of the composition structure of the registered network element equipment of the present invention.
  • Fig. 6 is a flowchart of automatic migration of terminal data in an application scenario of the first embodiment of the present invention.
  • the data processing scheme in the IPTV system of the embodiment of the present invention is applied to the technical field of IPTV multi-screen interactive services, and relates to how the registered network element equipment in the distributed multi-screen system dynamically manages the data of the IPTV terminal.
  • Registered network element devices such as registration servers, can automatically migrate terminal data without manual intervention, thereby ensuring that user services are not affected, and user services will not be interrupted or data reading abnormalities will occur.
  • a data processing method in an IPTV system according to an embodiment of the present invention includes:
  • Step 101 Obtain device information reported by all connected registered network element devices
  • the reported device information includes at least: the IP address of the device; in addition, optionally, the reported device information may also include: the device's memory, CPU operating status and other related information.
  • Step 102 Maintain the reported device information uniformly, and notify all the registered network element devices that have been connected to the maintained information;
  • Step 103 When it is detected that the registered network element device that has been connected has changed, the maintained information is updated, and the updated information is notified to all registered network element devices that have been connected, so that the registered network element device can update according to the update information.
  • the information determines whether the terminal needs to be notified to perform data migration.
  • the method further includes:
  • all the registered network element devices that have been connected are allocated with one piece of identification information respectively to obtain the set of identification information X 1 to X j ; where j is a natural number greater than 1;
  • the maintained information includes at least the identification information set X 1 to X j .
  • the identification information is specifically the device ID value of the registered network element device.
  • the method further includes:
  • the preset operation strategy is specifically a hash operation
  • the detection value Z is a hash value
  • the selection of the first registered network element device from all the registered network element devices that have been accessed according to the detection value Z includes:
  • the detection value Z is compared with the identification information in the identification information set X 1 to X j , and the first identification information whose comparison result meets a preset condition is selected; the preset condition is used to characterize the The first identification information is closest in value to the detection value Z;
  • the maintained information is updated, and the updated information is notified to all registered network element devices that have been accessed, include:
  • a piece of identification information is reassigned to all the registered network element devices that have been connected to obtain a set of identification information X 1 to X i ;
  • the i is a natural number greater than or equal to 1,
  • the i includes: the i is greater than the j and the i is less than the j;
  • the update information comprises at least identification information of said set of X 1 to X i.
  • the access network element device includes:
  • the first obtaining unit 11 is configured to obtain device information reported by all registered network element devices that have been connected;
  • the maintenance and notification unit 12 is configured to uniformly maintain the reported device information, and notify all the registered network element devices that have been connected to the maintained information;
  • the update and notification unit 13 is configured to update the maintained information when it detects that the registered network element device that has been connected has changed, and notify all the connected registered network element devices of the update information, so that the registered network element device It can be determined according to the update information whether it is necessary to notify the terminal to perform data migration.
  • the access network element device further includes:
  • the allocation unit is configured to allocate identification information to all registered network element devices that have been accessed according to the reported device information to obtain identification information sets X 1 to X j ; where j is a natural number greater than 1;
  • the maintained information includes at least the identification information set X 1 to X j .
  • the access network element device further includes:
  • the second acquiring unit is configured to acquire the device identification information Y of the terminal carried in the access request after the terminal initiates an access request;
  • An operation unit configured to obtain a detection value Z according to the device identification information Y and a preset operation strategy
  • the selecting unit is configured to select the first registered network element device from all connected registered network element devices according to the detection value Z;
  • the returning unit is configured to return the address of the first registered network element device and the detection value Z to the terminal.
  • the selection unit is further configured to compare the detection value Z with the identification information in the identification information set X 1 to X j , and select the comparison result to match The first identification information of a preset condition; the preset condition is used to characterize that the first identification information and the detection value Z are closest in value; the registered network element device corresponding to the first identification information is selected as the The first registered network element device.
  • the update and notification unit is further configured to re-allocate identification information for all the registered network element devices that have been connected when it detects that the registered network element device that has been connected has changed to obtain identification information set X 1 to X-i; i is a natural number greater than or equal to 1, comprising the i: the i and j is larger than said two cases said i is less than j, said;
  • the update information comprises at least identification information of said set of X 1 to X i.
  • the data processing method in the IPTV system of the embodiment of the present invention, as shown in FIG. 4, includes:
  • Step 201 All registered network element devices that have been connected to report device information respectively;
  • the reported device information includes at least: the IP address of the device; in addition, optionally, the reported device information may also include: the device's memory, CPU operating status and other related information.
  • Step 202 Obtain information maintained by the access network element device.
  • Step 203 Obtain updated information obtained after the access network element device updates the maintained information
  • Step 204 Determine whether the terminal needs to be notified to perform data migration according to the update information.
  • the maintained information includes at least identification information sets X 1 to X j ;
  • the identification information sets X 1 to X j are composed of identification information respectively allocated by the access network element device to all registered network element devices that have been accessed; the j is a natural number greater than 1.
  • the update information includes at least a set of identification information X 1 to X i ;
  • the identification information set X 1 to X i is composed of identification information that is re-allocated for all the registered network element devices that have been accessed when the access network element device detects that the registered network element device that has been connected has changed; Is a natural number greater than or equal to 1, and the i includes: the i is greater than the j and the i is less than the j;
  • the method further includes:
  • the terminal After the terminal initiates a registration request to access the first registered network element device, obtains the detection value Z carried in the registration request;
  • the detection value Z it is detected whether the terminal needs to be re-registered to other registered network element devices other than the first registered network element device to perform data migration.
  • the detecting whether the terminal needs to be re-registered to other registered network element devices other than the first registered network element device according to the detection value Z for data migration includes :
  • Said identification information detection value Z set to the identification information X 1 to X i are for comparison, select the second identification information comparison result satisfy the predetermined condition; the preset condition for characterizing the The second identification information is closest in value to the detection value Z;
  • the second identification information is not the identification information corresponding to the first registered network element device, return a re-registration message to the terminal, and notify the terminal to perform the data migration.
  • the registered network element device includes:
  • the reporting unit 21 is configured to separately report device information for all registered network element devices that have been connected;
  • the third obtaining unit 22 is configured to obtain information maintained by the access network element device
  • the fourth obtaining unit 23 is configured to obtain updated information obtained after the access network element device updates the maintained information
  • the determining unit 24 is configured to determine whether it is necessary to notify the terminal to perform data according to the update information. To According to migration.
  • the maintained information includes at least identification information sets X 1 to X j ;
  • the identification information sets X 1 to X j are composed of identification information respectively allocated by the access network element device to all registered network element devices that have been accessed; the j is a natural number greater than 1.
  • the update information includes at least identification information sets X 1 to X i ;
  • the identification information set X 1 to X i is composed of identification information that is re-allocated for all the registered network element devices that have been accessed when the access network element device detects that the registered network element device that has been connected has changed; Is a natural number greater than or equal to 1, and the i includes: the i is greater than the j and the i is less than the j;
  • the registered network element device further includes:
  • the fifth acquiring unit is configured to acquire the detection value Z carried in the registration request after the terminal initiates a registration request to access the first registered network element device;
  • the detecting unit is configured to detect whether the terminal needs to be re-registered to other registered network element devices except the first registered network element device according to the detection value Z, so as to perform data migration.
  • the detection unit is further configured to detect said Z value set to the identification information to the identification information X 1 X i is for comparison, the comparison results for selection
  • the second identification information of a preset condition is used to characterize that the second identification information is the closest numerically to the detection value Z; when the second identification information is not the first registered network element
  • the identification information corresponding to the device is returned, a re-registration message is returned to the terminal and the terminal is notified to perform the data migration.
  • the embodiments of the present invention are applied to specific IPTV multi-screen services, and mainly include the following contents:
  • the two core modules that implement the above data processing technology one is the access network element device, specifically the access server; the other is the registration network element device, specifically the registration server, these two modules To The functions are:
  • Access server responsible for the load balancing of terminals and set-top boxes and the distribution of registration servers.
  • Registration server responsible for the acquisition and maintenance of terminal user information, including registration and keep-alive.
  • the registration server carries the management of terminal data. There are multiple registration servers, and the terminal data is managed in a distributed manner. Multiple registration servers in the system are managed by the access server.
  • the registration server When the registration server starts, it will register with the access server, report its own information, and the access server maintains the relevant information of the registration server in the system, and gives each registration The server assigns an ID value, and then pushes the maintained information to all registration servers, so that all registration servers in the system know the information of other registration servers.
  • the registration server hangs abnormally or a new registration server is added, the access server will Re-assign a new ID value to each registration server, and then notify other registration servers in a timely manner.
  • other registration servers can perceive the changes of the registration servers in the system in time, and respond to the changes. In case of automatic migration of terminal data.
  • a terminal When a terminal such as a set-top box and terminal is turned on, it will first send an access message to the access server for access. After receiving the access message of the terminal, the access server calculates the hash value according to the Device ID of the terminal, and then selects an ID value The registration server closest to the hash value of the terminal is returned to the terminal. In the return message, the access server will return the IP address and hash value of the registration server to the terminal. After receiving the return message from the access server, the terminal saves the registration server address and hash value, sends a registration message to the registration server, and reports its own information. The registration server builds an index in the memory according to the device ID of the terminal, saves and maintains it Terminal information. The subsequent terminal will periodically send a heartbeat to the registration server, and the hash value will be reported to the registration server in the heartbeat message. To
  • the embodiment of the present invention mainly realizes the migration of user data between the registration servers when the registration server increases or decreases through the cooperation of the access server of the multi-screen gateway, the registration server and the terminal, and also realizes the migration of the terminal heartbeat message sending .
  • the heartbeat message of the terminal carries the hash value calculated by the access server for the terminal.
  • the registration server parses the hash value in the message after receiving the heartbeat message , And then check whether the hash value of the terminal is the closest to the ID value of the registration server according to the information of all the registration servers in the system maintained by itself.
  • the registration server changes during the terminal heartbeat message, due to re-access If a new ID value is assigned to the registration server, the hash value of the terminal may be the closest to the ID value of other registration servers. Therefore, the terminal needs to be migrated in this case, and the registration server will register the new registration in the return message of the heartbeat message The server address is returned to the terminal, and the related information of the terminal is deleted in its own memory. After receiving the message, the terminal will re-register with the new registration server and keep the heartbeat alive, and its information will be maintained by the new registration server
  • FIG. 6 shows the complete flow of a specific application scenario applying the embodiment of the present invention.
  • the access network element device is specifically the access server of the multi-screen gateway
  • the registered network element device is specifically the registration server of the multi-screen gateway.
  • the two registration servers are taken as an example, and the actual application is not limited to two.
  • the process includes the preprocessing steps of starting the access server and monitoring on a specific port, and also includes the following steps:
  • Step 601 The registration server starts, establishes a connection to the listening port of the access server, and reports its registration related information; the registration server sends heartbeat messages to the access server regularly to maintain its online status information.
  • the heartbeat message because the message is sent every fixed time like a heartbeat, to tell the access server that the registration server is still alive.
  • the heartbeat message is sent to confirm the fact-whether the two interconnected parties are still online without communication for a long time, or whether the communication link existing between the interconnected parties has been disconnected. To Once the connection is established, it can only be abnormally or normally disconnected, and will not be disconnected because there is no data transmission.
  • Step 602 After receiving registration related information from multiple registration servers, the access server saves and maintains the registration related information on 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.
  • the reduction of the registration server includes: when the registration server hangs abnormally, the access server will judge whether a certain registration server is abnormal by whether the connection (such as a TCP connection) exists or whether the heartbeat timeout is abnormal. Each registration server reassigns an ID value and notifies other surviving registration servers.
  • the addition of the registration server includes: when a new registration server is added, the new registration server will automatically establish a connection with the access server and report its own status information. After the access server receives the reported information, it will The information of the newly-added registration server is added to the maintained list of registration servers. At the same time, the hash value is recalculated for each registration server, and all registration server related information is pushed to the registration server.
  • Step 604 When the IPTV terminal accesses the multi-screen gateway system, it applies to the access server for access through an access message.
  • Step 605 The access server calculates the hash value according to the device ID of the terminal, selects a registration server whose ID value is close to the hash value of the terminal, and assigns the registration server with the ID value closest to the hash value to the terminal.
  • Step 606 The access server sends a return message to the terminal, and 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.
  • the terminal subsequently queries the registration server through the IP address, so that it can register with the To The server initiates a registration message.
  • Step 607 After receiving the return message, the terminal saves the hash value and registers with the registration server.
  • Step 608 The terminal periodically sends a heartbeat message to the registration server to keep alive, and carries the hash value saved in step 607 in the heartbeat message.
  • Step 609 The registration server sends an increase or decrease change, and the access server allocates a new ID value to each registration server again.
  • Step 610 The access server sends a new ID value reassigned for each registration server.
  • Step 611 After receiving the heartbeat message sent by the terminal, the registration server parses the hash value in the heartbeat message, and reconfirms whether the hash value is the closest to the ID of the registration server; if not, go to step 612; otherwise, no I deal with it and save the current connection.
  • Step 612 Send a heartbeat reply message, which is used to notify the terminal that a re-registration message is required.
  • the heartbeat reply message will return the new registration server IP address and hash value to the terminal, and delete related information of the terminal in the memory.
  • Step 613 The terminal judges the hash value obtained twice before and after the comparison (a hash value calculated by the server obtained in step 606; and a hash value calculated by the registration server obtained in step 612, and the hash value calculation rules are the same), if If they are the same, there is no need to migrate. If they are not the same, the terminal needs to perform data migration, then data migration is performed.
  • Step 614 The terminal receives the heartbeat reply message, which is used to notify the terminal that it needs to re-register the message, and will register with the new registration server.
  • Step 615 Send a heartbeat message to keep alive.
  • step 613 may or may not be present; step 614 and step 615 may occur at the same time, or there may be a sequence as shown in the current process.
  • the embodiments of the present invention are adopted, which is more and more To The more, how can the user's data be distributed and effectively managed in the multi-screen gateway system, instead of using a centralized data management method, the data processing solution provided is a distributed IPTV multi-screen gateway registration server terminal
  • the technology of user data dynamic management, when the registration server changes, terminal data can be automatically migrated without manual intervention, thus ensuring that user services are not affected, making the system more stable and reliable.
  • the integrated module described in the embodiment of the present invention is implemented in the form of a software function module and sold or used as an independent product, it may also be stored in a computer readable storage medium.
  • the computer software product is stored in a storage medium and includes several instructions for A computer device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the methods described in the various embodiments of the present invention.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes. .
  • U disk mobile hard disk
  • read-only memory ROM, Read-Only Memory
  • RAM random access memory
  • magnetic disks or optical disks and other media that can store program codes.
  • an embodiment of the present invention also provides a computer storage medium in which a computer program is stored, and the computer program is used to execute the data processing method in the IPTV system of the embodiment of the present invention.
  • the access network element device can perform unified maintenance of the device information reported by all the registered network element devices that have been connected, and notify all the connected registered network element devices of the maintained information.
  • the registered network element device that has been connected changes, the maintained information is updated, and the updated information is also notified to all registered network element devices that have been connected, so that the IPTV system.
  • the change of any registered network element equipment in the system can be sensed in time by other registered network element equipment, because in addition to knowing the device information, it can also grasp the information of other registered network element devices in the entire network in the IPTV system. After the information of other registered network element devices in the entire network in the IPTV system, the registered network element device can determine whether it is necessary to notify the terminal for data migration according to the updated information.

Landscapes

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

Abstract

本发明公开了一种IPTV系统中的数据处理方法及网元设备,其中,所述方法包括:获取所有已接入的注册网元设备所上报的设备信息;对所述上报的设备信息统一维护,将所维护的信息通知给所有已接入的注册网元设备;检测到已接入的注册网元设备发生变化时,对所维护的信息进行更新,将更新信息通知给所有已接入的注册网元设备,使注册网元设备能根据所述更新信息确定是否需要通知终端进行数据迁移。

Description

IPTV系统中的数据处理方法及网元设备 技术领域
本发明涉及数据处理技术,尤其涉及一种IPTV系统中的数据处理方法、接入网元设备及注册网元设备。
背景技术
本申请发明人在实现本申请实施例技术方案的过程中,至少发现相关技术中存在如下技术问题:
随着各种多屏终端在IPTV系统中的应用,多屏互动业务逐渐成为一种受家庭用户欢迎的新型业务,这就要求IPTV系统能为用户提供在网络机顶盒(STB)、PC、手机、PAD等终端上无缝切换的业务服务,但是当不同终端属于不同的网络平台(比如宽带网络与移动网络),终端间的消息通讯则需要通过多屏网关进行转发,以实现多屏互动业务,让用户可以随时随地通过手机、PC、TV平滑灵活地进行业务切换和业务共享,而多屏网关要实现多屏业务,不能简单的进行消息转发,还需要对IPTV的终端数据进行管理,供其他终端进行查询,并维护终端的在线状态信息,从而,如何对IPTV系统中的终端数据进行处理成为要解决的问题。
如图1所示为IPTV系统的分布式多屏网关的总体架构图,包括多个注册服务器,多个终端及一个接入服务器,接入服务器用于为注册服务器分配ID,控制终端到注册服务器进行注册,对IPTV系统中的终端数据进行处理是利用接入服务器对IPTV系统中的终端数据进行集中式的处理。
目前存在的问题是:由于利用接入服务器对IPTV系统中的终端数据进行集中式的处理,因此,当注册服务器出现增减时,需要过多的人工干预,终端数据的迁移不能自动平滑过渡,进而会影响到整个IPTV系统的稳定 性。然而,对于这个问题,并未存在有效的解决方案。
发明内容
有鉴于此,本发明实施例希望提供一种IPTV系统中的数据处理方法、接入网元设备及注册网元设备,能避免注册服务器出现增减时,需要过多的人工干预,终端数据的迁移不能自动平滑过渡的问题。
本发明实施例的技术方案是这样实现的:
本发明实施例的一种IPTV系统中的数据处理方法,所述方法包括:
获取所有已接入的注册网元设备所上报的设备信息;
对所述上报的设备信息统一维护,将所维护的信息通知给所有已接入的注册网元设备;
检测到已接入的注册网元设备发生变化时,对所维护的信息进行更新,将更新信息通知给所有已接入的注册网元设备,使注册网元设备能根据所述更新信息确定是否需要通知终端进行数据迁移。
优选地,所述对所述上报的设备信息统一维护后,所述方法还包括:
根据所述上报的设备信息为所有已接入的注册网元设备分别分配一个标识信息,得到标识信息集合X1至Xj;所述j为大于1的自然数;
所述维护的信息至少包括所述标识信息集合X1至Xj
优选地,所述方法还包括:
终端发起接入请求后,获取所述接入请求中携带的所述终端的设备标识信息Y;
根据所述设备标识信息Y和预设运算策略得到检测值Z;
根据所述检测值Z从所有已接入的注册网元设备中选取出第一注册网元设备,所述第一注册网元设备用于终端注册使用;
将所述第一注册网元设备的地址和所述检测值Z返回终端。
优选地,所述根据所述检测值Z从所有已接入的注册网元设备中选取 出第一注册网元设备,包括:
将所述检测值Z与所述标识信息集合X1至Xj中的标识信息进行比对,选取出比对结果符合预设条件的第一标识信息;所述预设条件用于表征所述第一标识信息与所述检测值Z在数值上最接近;
选取所述第一标识信息对应的注册网元设备为所述第一注册网元设备。
优选地,所述检测到已接入的注册网元设备发生变化时,对所维护的信息进行更新,将更新信息通知给所有已接入的注册网元设备,包括:
检测到已接入的注册网元设备发生变化时,为所有已接入的注册网元设备重新分配一个标识信息,得到标识信息集合X1至Xi;所述i为大于等于1的自然数,所述i包括:所述i大于所述j及所述i小于所述j的两种情况;
所述更新信息至少包括所述标识信息集合X1至Xi
本发明实施例的一种接入网元设备,所述接入网元设备包括:
第一获取单元,配置为获取所有已接入的注册网元设备所上报的设备信息;
维护及通知单元,配置为对所述上报的设备信息统一维护,将所维护的信息通知给所有已接入的注册网元设备;
更新及通知单元,配置为检测到已接入的注册网元设备发生变化时,对所维护的信息进行更新,将更新信息通知给所有已接入的注册网元设备,使注册网元设备能根据所述更新信息确定是否需要通知终端进行数据迁移。
优选地,所述接入网元设备还包括:
分配单元,配置为根据所述上报的设备信息为所有已接入的注册网元设备分别分配一个标识信息,得到标识信息集合X1至Xj;所述j为大于1 的自然数;
所述维护的信息至少包括所述标识信息集合X1至Xj
优选地,所述接入网元设备还包括:
第二获取单元,配置为终端发起接入请求后,获取所述接入请求中携带的所述终端的设备标识信息Y;
运算单元,配置为根据所述设备标识信息Y和预设运算策略得到检测值Z;
选取单元,配置为根据所述检测值Z从所有已接入的注册网元设备中选取出第一注册网元设备;
返回单元,配置为将所述第一注册网元设备的地址和所述检测值Z返回终端。
优选地,所述选取单元,还配置为将所述检测值Z与所述标识信息集合X1至Xj中的标识信息进行比对,选取出比对结果符合预设条件的第一标识信息;所述预设条件用于表征所述第一标识信息与所述检测值Z在数值上最接近;选取所述第一标识信息对应的注册网元设备为所述第一注册网元设备。
优选地,所述更新及通知单元,还配置为检测到已接入的注册网元设备发生变化时,为所有已接入的注册网元设备重新分配一个标识信息,得到标识信息集合X1至Xi;所述i为大于等于1的自然数,所述i包括:所述i大于所述j及所述i小于所述j的两种情况;
所述更新信息至少包括所述标识信息集合X1至Xi
所述第一获取单元、所述维护及通知单元、所述更新及通知单元、所述分配单元、所述第二获取单元、所述运算单元、所述选取单元、所述返回单元在执行处理时,可以采用中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Singnal Processor)或可编程逻辑阵列(FPGA, Field-Programmable Gate Array)实现。
本发明实施例的一种IPTV系统中的数据处理方法,所述方法包括:
所有已接入的注册网元设备分别上报设备信息;
获取接入网元设备所维护的信息;
获取接入网元设备对所述所维护的信息更新后得到的更新信息;
根据所述更新信息确定是否需要通知终端进行数据迁移。
优选地,所述维护的信息至少包括标识信息集合X1至Xj
所述标识信息集合X1至Xj由接入网元设备为所有已接入的注册网元设备分别分配的标识信息构成;所述j为大于1的自然数。
优选地,所述更新信息至少包括标识信息集合X1至Xi
所述标识信息集合X1至Xi由接入网元设备检测到已接入的注册网元设备发生变化时,为所有已接入的注册网元设备重新分配的标识信息构成;所述i为大于等于1的自然数,所述i包括:所述i大于所述j及所述i小于所述j的两种情况;
相应的,所述获取接入网元设备对所述所维护的信息更新后得到的更新信息后,所述方法还包括:
终端发起注册请求接入第一注册网元设备后,获取所述注册请求中携带的检测值Z;
根据所述检测值Z检测终端是否需要重新注册到除所述第一注册网元设备之外的其他注册网元设备,以进行数据迁移。
优选地,所述根据所述检测值Z检测终端是否需要重新注册到除所述第一注册网元设备之外的其他注册网元设备,以进行数据迁移,包括:
将所述检测值Z与所述标识信息集合X1至Xi中的标识信息进行比对,选取出比对结果符合预设条件的第二标识信息;所述预设条件用于表征所述第二标识信息与所述检测值Z在数值上最接近;
当所述第二标识信息不是所述第一注册网元设备对应的标识信息时,返回重新注册消息给所述终端,并通知所述终端执行所述数据迁移。
本发明实施例的一种注册网元设备,所述注册网元设备包括:
上报单元,配置为所有已接入的注册网元设备分别上报设备信息;
第三获取单元,配置为获取接入网元设备所维护的信息;
第四获取单元,配置为获取接入网元设备对所述所维护的信息更新后得到的更新信息;
确定单元,配置为根据所述更新信息确定是否需要通知终端进行数据迁移。
优选地,所述维护的信息至少包括标识信息集合X1至Xj
所述标识信息集合X1至Xj由接入网元设备为所有已接入的注册网元设备分别分配的标识信息构成;所述j为大于1的自然数。
优选地,所述更新信息至少包括标识信息集合X1至Xi
所述标识信息集合X1至Xi由接入网元设备检测到已接入的注册网元设备发生变化时,为所有已接入的注册网元设备重新分配的标识信息构成;所述i为大于等于1的自然数,所述i包括:所述i大于所述j及所述i小于所述j的两种情况;
相应的,所述注册网元设备还包括:
第五获取单元,配置为终端发起注册请求接入第一注册网元设备后,获取所述注册请求中携带的检测值Z;
检测单元,配置为根据所述检测值Z检测终端是否需要重新注册到除所述第一注册网元设备之外的其他注册网元设备,以进行数据迁移。
优选地,所述检测单元,还配置为将所述检测值Z与所述标识信息集合X1至Xi中的标识信息进行比对,选取出比对结果符合预设条件的第二标识信息;所述预设条件用于表征所述第二标识信息与所述检测值Z在数值 上最接近;当所述第二标识信息不是所述第一注册网元设备对应的标识信息时,返回重新注册消息给所述终端,并通知所述终端执行所述数据迁移。
所述上报单元、所述第三获取单元、所述第四获取单元、所述确定单元、所述第五获取单元、所述检测单元在执行处理时,可以采用中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Singnal Processor)或可编程逻辑阵列(FPGA,Field-Programmable Gate Array)实现。
本发明实施例的IPTV系统中的数据处理方法,所述方法包括:获取所有已接入的注册网元设备所上报的设备信息;对所述上报的设备信息统一维护,将所维护的信息通知给所有已接入的注册网元设备;检测到已接入的注册网元设备发生变化时,对所维护的信息进行更新,将更新信息通知给所有已接入的注册网元设备,使注册网元设备能根据所述更新信息确定是否需要通知终端进行数据迁移。
采用本发明实施例,接入网元设备对所有已接入的注册网元设备所上报的设备信息能进行统一维护,将所维护的信息通知给所有已接入的注册网元设备,在检测到已接入的注册网元设备发生变化时,对所维护的信息进行更新,将更新信息也通知给所有已接入的注册网元设备,使得IPTV系统中任何一个注册网元设备的变化情况,其他注册网元设备都能够及时感知到,因为它除了知道设备信息,还能掌握IPTV系统中全网的其他注册网元设备的信息,从而在掌握了IPTV系统中全网的其他注册网元设备的信息,注册网元设备能根据所述更新信息确定是否需要通知终端进行数据迁移。
附图说明
图1为分布式多屏网关的总体架构图;
图2为本发明方法实施例的实现流程示意图;
图3为本发明接入网元设备的组成结构示意图;
图4为本发明方法实施例的实现流程示意图;
图5为本发明注册网元设备的组成结构示意图;
图6为应用本发明实施例一应用场景的终端数据自动迁移流程图。
具体实施方式
下面结合附图对技术方案的实施作进一步的详细描述。
本发明实施例的IPTV系统中的数据处理方案,应用于IPTV的多屏互动业务技术领域中,涉及到分布式多屏系统中的注册网元设备如何对IPTV终端的数据进行动态的管理,当注册网元设备,比如注册服务器出现增减时能够自动进行终端数据的迁移,而不需要手工干预,从而保证了用户服务不受影响,用户服务不会中断或出现数据读取异常。
本发明实施例的一种IPTV系统中的数据处理方法,如图2所示,所述方法包括:
步骤101、获取所有已接入的注册网元设备所上报的设备信息;
这里,所述上报的设备信息至少包括:设备的IP地址;除此之外,可选的,所述上报的设备信息还可以包括:设备的内存、CPU运行状态等相关信息。
步骤102、对所述上报的设备信息统一维护,将所维护的信息通知给所有已接入的注册网元设备;
步骤103、检测到已接入的注册网元设备发生变化时,对所维护的信息进行更新,将更新信息通知给所有已接入的注册网元设备,使注册网元设备能根据所述更新信息确定是否需要通知终端进行数据迁移。
在本发明实施例一优选实施方式中,所述对所述上报的设备信息统一维护后,所述方法还包括:
根据所述上报的设备信息为所有已接入的注册网元设备分别分配一个 标识信息,得到标识信息集合X1至Xj;所述j为大于1的自然数;
所述维护的信息至少包括所述标识信息集合X1至Xj
这里,所述标识信息具体为注册网元设备的设备ID值。
在本发明实施例一优选实施方式中,所述方法还包括:
终端发起接入请求后,获取所述接入请求中携带的所述终端的设备标识信息Y;
根据所述设备标识信息Y和预设运算策略得到检测值Z;这里,所述预设运算策略具体为hash运算,所述检测值Z为hash值;
根据所述检测值Z从所有已接入的注册网元设备中选取出第一注册网元设备,所述第一注册网元设备用于终端注册使用;
将所述第一注册网元设备的地址和所述检测值Z返回终端。
在本发明实施例一优选实施方式中,所述根据所述检测值Z从所有已接入的注册网元设备中选取出第一注册网元设备,包括:
将所述检测值Z与所述标识信息集合X1至Xj中的标识信息进行比对,选取出比对结果符合预设条件的第一标识信息;所述预设条件用于表征所述第一标识信息与所述检测值Z在数值上最接近;
选取所述第一标识信息对应的注册网元设备为所述第一注册网元设备。
在本发明实施例一优选实施方式中,所述检测到已接入的注册网元设备发生变化时,对所维护的信息进行更新,将更新信息通知给所有已接入的注册网元设备,包括:
检测到已接入的注册网元设备发生变化时,为所有已接入的注册网元设备重新分配一个标识信息,得到标识信息集合X1至Xi;所述i为大于等于1的自然数,所述i包括:所述i大于所述j及所述i小于所述j的两种情况;
所述更新信息至少包括所述标识信息集合X1至Xi
本发明实施例的接入网元设备,如图3所示,所述接入网元设备包括:
第一获取单元11,配置为获取所有已接入的注册网元设备所上报的设备信息;
维护及通知单元12,配置为对所述上报的设备信息统一维护,将所维护的信息通知给所有已接入的注册网元设备;
更新及通知单元13,配置为检测到已接入的注册网元设备发生变化时,对所维护的信息进行更新,将更新信息通知给所有已接入的注册网元设备,使注册网元设备能根据所述更新信息确定是否需要通知终端进行数据迁移。
在本发明实施例一优选实施方式中,所述接入网元设备还包括:
分配单元,配置为根据所述上报的设备信息为所有已接入的注册网元设备分别分配一个标识信息,得到标识信息集合X1至Xj;所述j为大于1的自然数;
所述维护的信息至少包括所述标识信息集合X1至Xj
在本发明实施例一优选实施方式中,所述接入网元设备还包括:
第二获取单元,配置为终端发起接入请求后,获取所述接入请求中携带的所述终端的设备标识信息Y;
运算单元,配置为根据所述设备标识信息Y和预设运算策略得到检测值Z;
选取单元,配置为根据所述检测值Z从所有已接入的注册网元设备中选取出第一注册网元设备;
返回单元,配置为将所述第一注册网元设备的地址和所述检测值Z返回终端。
在本发明实施例一优选实施方式中,所述选取单元,进一步配置为将 所述检测值Z与所述标识信息集合X1至Xj中的标识信息进行比对,选取出比对结果符合预设条件的第一标识信息;所述预设条件用于表征所述第一标识信息与所述检测值Z在数值上最接近;选取所述第一标识信息对应的注册网元设备为所述第一注册网元设备。
在本发明实施例一优选实施方式中,所述更新及通知单元,进一步配置为检测到已接入的注册网元设备发生变化时,为所有已接入的注册网元设备重新分配一个标识信息,得到标识信息集合X1至Xi;所述i为大于等于1的自然数,所述i包括:所述i大于所述j及所述i小于所述j的两种情况;
所述更新信息至少包括所述标识信息集合X1至Xi
本发明实施例的IPTV系统中的数据处理方法,如图4所示,所述方法包括:
步骤201、所有已接入的注册网元设备分别上报设备信息;
这里,所述上报的设备信息至少包括:设备的IP地址;除此之外,可选的,所述上报的设备信息还可以包括:设备的内存、CPU运行状态等相关信息。
步骤202、获取接入网元设备所维护的信息;
步骤203、获取接入网元设备对所述所维护的信息更新后得到的更新信息;
步骤204、根据所述更新信息确定是否需要通知终端进行数据迁移。
在本发明实施例一优选实施方式中,所述维护的信息至少包括标识信息集合X1至Xj
所述标识信息集合X1至Xj由接入网元设备为所有已接入的注册网元设备分别分配的标识信息构成;所述j为大于1的自然数。
在本发明实施例一优选实施方式中,所述更新信息至少包括标识信息 集合X1至Xi
所述标识信息集合X1至Xi由接入网元设备检测到已接入的注册网元设备发生变化时,为所有已接入的注册网元设备重新分配的标识信息构成;所述i为大于等于1的自然数,所述i包括:所述i大于所述j及所述i小于所述j的两种情况;
相应的,所述获取接入网元设备对所述所维护的信息更新后得到的更新信息后,所述方法还包括:
终端发起注册请求接入第一注册网元设备后,获取所述注册请求中携带的检测值Z;
根据所述检测值Z检测终端是否需要重新注册到除所述第一注册网元设备之外的其他注册网元设备,以进行数据迁移。
在本发明实施例一优选实施方式中,所述根据所述检测值Z检测终端是否需要重新注册到除所述第一注册网元设备之外的其他注册网元设备,以进行数据迁移,包括:
将所述检测值Z与所述标识信息集合X1至Xi中的标识信息进行比对,选取出比对结果符合预设条件的第二标识信息;所述预设条件用于表征所述第二标识信息与所述检测值Z在数值上最接近;
当所述第二标识信息不是所述第一注册网元设备对应的标识信息时,返回重新注册消息给所述终端,并通知所述终端执行所述数据迁移。
本发明实施例的注册网元设备,如图5所示,所述注册网元设备包括:
上报单元21,配置为所有已接入的注册网元设备分别上报设备信息;
第三获取单元22,配置为获取接入网元设备所维护的信息;
第四获取单元23,配置为获取接入网元设备对所述所维护的信息更新后得到的更新信息;
确定单元24,配置为根据所述更新信息确定是否需要通知终端进行数 据迁移。
在本发明实施例一优选实施方式中,所述维护的信息至少包括标识信息集合X1至Xj
所述标识信息集合X1至Xj由接入网元设备为所有已接入的注册网元设备分别分配的标识信息构成;所述j为大于1的自然数。
在本发明实施例一优选实施方式中,所述更新信息至少包括标识信息集合X1至Xi
所述标识信息集合X1至Xi由接入网元设备检测到已接入的注册网元设备发生变化时,为所有已接入的注册网元设备重新分配的标识信息构成;所述i为大于等于1的自然数,所述i包括:所述i大于所述j及所述i小于所述j的两种情况;
相应的,所述注册网元设备还包括:
第五获取单元,配置为终端发起注册请求接入第一注册网元设备后,获取所述注册请求中携带的检测值Z;
检测单元,配置为根据所述检测值Z检测终端是否需要重新注册到除所述第一注册网元设备之外的其他注册网元设备,以进行数据迁移。
在本发明实施例一优选实施方式中,所述检测单元,进一步配置为将所述检测值Z与所述标识信息集合X1至Xi中的标识信息进行比对,选取出比对结果符合预设条件的第二标识信息;所述预设条件用于表征所述第二标识信息与所述检测值Z在数值上最接近;当所述第二标识信息不是所述第一注册网元设备对应的标识信息时,返回重新注册消息给所述终端,并通知所述终端执行所述数据迁移。
本发明实施例应用于具体的IPTV多屏业务,主要包括以下内容:
实现上述数据处理技术的两个核心模块:一个是接入网元设备,具体为接入服务器;另一个是注册网元设备,具体为注册服务器,这两个模块 的功能分别为:
接入服务器:负责终端和机顶盒的接入负载均衡和注册服务器的分配。
注册服务器:负责终端用户信息的获取、维护,包括注册、保活。
接入服务器在系统中只有一台,作为单点,采用双机的方式保证其可靠性。主要承担着对注册服务器进行维护、对终端用户接入信息的处理等功能。
注册服务器承载着终端数据的管理,注册服务器有多台,采用分布式的方式对终端数据进行管理。系统中的多台注册服务器由接入服务器进行管理,当注册服务器启动时,会到接入服务器进行注册,上报自身的信息,接入服务器维护系统中注册服务器的相关信息,并给每个注册服务器分配一个ID值,然后将维护的信息推送给所有注册服务器,这样系统中所有注册服务器都知道其他注册服务器的信息,当注册服务器异常挂掉或者新增一台注册服务器时,接入服务器会重新给各个注册服务器分配一个新的ID值,然后及时通知到其他注册服务器,通过这种分布式的控制机制,对于系统中注册服务器的变化情况,其他注册服务器都能够及时感知到,并根据变化情况进行终端数据的自动迁移。
当终端比如机顶盒和终端开机后,会首先发送接入消息到接入服务器进行接入,接入服务器在收到终端的接入消息后,根据终端的Device ID计算hash值,然后选取一个ID值与终端的hash值最接近的注册服务器返回给终端,在返回消息中,接入服务器会把注册服务器的IP地址和hash值返回给终端。终端在收到接入服务器的返回消息后,将注册服务器地址和hash值保存下来,向注册服务器发送注册消息,上报自身的信息,注册服务器根据终端的Device ID在内存中建立索引,保存并维护终端的信息。后续终端会定时向注册服务器发送心跳,心跳消息中会把hash值报给注册服务器。
本发明实施例主要通过多屏网关的接入服务器、注册服务器与终端的配合,实现了当注册服务器出现增减情况时用户数据在注册服务器之间的迁移,同时实现了终端心跳消息发送的迁移。对于注册服务器,当终端通过心跳消息维护自身的在线状态信息时,在终端的心跳消息中带了接入服务器给终端计算的hash值,注册服务器在收到心跳消息后,解析消息中的hash值,然后根据自身维护的系统中所有注册服务器的信息,检查该终端的hash值是否和本注册服务器的ID值是最接近的,如果在终端心跳消息期间,注册服务器发生了变化,由于接入重新给注册服务器分配了新的ID值,则该终端的hash值可能和其他注册服务器的ID值最接近,因此这种情况下终端需要迁移,注册服务器会在心跳消息的返回消息中将新的注册服务器地址返回给终端,同时在自身内存中删除该终端的相关信息,终端在收到该消息后,会重新向新的注册服务器进行注册和心跳保活,其信息由新的注册服务器进行维护
如图6所示为应用本发明实施例的一具体应用场景的完整流程,接入网元设备具体为多屏网关的接入服务器,注册网元设备具体为多屏网关的注册服务器,本应用场景中,以所述注册服务器为两个为例,实际应用中不限于两个,该流程包括所述接入服务器启动,在特定端口上起监听的预处理步骤,还包括以下步骤:
步骤601、所述注册服务器启动,向所述接入服务器的监听端口建立连接,上报自身的注册相关信息;所述注册服务器向所述接入服务器定时发送心跳消息,维护自身的在线状态信息。
这里,针对所述心跳消息而言,因为该消息像心跳一样每隔固定时间发一次,以此来告诉接入服务器,这个注册服务器还活着。也就是说,发送心跳消息是为了确认一个事实——互联的双方在长时间没有通讯的情况下是否都还在线,或者说存在于互联的双方之间的通讯链路是否已经断开。 连接一旦建立,只能被异常或正常的断开,而不会因为没有数据传输而断开。
步骤602、接入服务器在收到多个注册服务器的注册相关信息后,将注册相关信息保存并在接入服务器维护起来,并为每个注册服务器分配一个ID值。
步骤603、接入服务器将自身维护的注册服务器的相关信息推送给所有注册服务器,这样每个注册服务器都知道系统中其他注册服务器的相关信息。
这里,注册服务器减少的情况包括:当注册服务器异常挂掉时,接入服务器会通过连接(如TCP连接)是否存在或者心跳是否超时来判断某台注册服务器是否异常,如果异常,则会为每个注册服务器重新分配一个ID值,并通知到其他存活的注册服务器。
这里,注册服务器增加的情况包括:当新增一台注册服务器时,新增的注册服务器会自动与接入服务器建立连接,并上报自身状态信息,接入服务器在收到上报信息后,在自身维护的注册服务器列表中增加新增注册服务器的信息,同时,会为各个注册服务器重新计算hash值,并将所有的注册服务器相关信息推送给注册服务器。
步骤604、IPTV终端在接入多屏网关系统时,通过接入消息向接入服务器申请进行接入。
步骤605、接入服务器根据终端的设备标识(Device ID)计算hash值,选取一个注册服务器,其ID值与终端的hash值接近,将该ID值与hash最接近的注册服务器分配给终端。
步骤606、接入服务器向终端发送返回消息,返回消息携带该ID值与hash最接近的注册服务器的IP地址和步骤605中计算得到的hash值。
这里,终端后续通过该IP地址查询到该注册服务器,以便能向该注册 服务器发起注册消息。
步骤607、终端接收到返回消息后,保存hash值,并向注册服务器进行注册。
步骤608、终端定时发送心跳消息到注册服务器保活,并在心跳消息中带上步骤607保存的hash值。
步骤609、注册服务器发送增加或减少的变化,接入服务器重新为每个注册服务器分配新的ID值。
步骤610、接入服务器发送为每个注册服务器重新分配的一个新的ID值。
步骤611、注册服务器在收到终端发送的心跳消息后,解析心跳消息中的hash值,重新确认hash值是否与本注册服务器的ID是最接近的;如果不是,则执行步骤612;否则,不予处理,保存目前连接。
步骤612、发送心跳回复消息,该消息用于通知终端需要重新注册消息,心跳回复消息中会把新的注册服务器IP地址和hash值返回给终端,同时在内存中删除该终端的相关信息。
步骤613、终端判断比较前后两次得到的hash值(步骤606得到的一个由服务器计算的hash值;以及步骤612得到的一个由注册服务器计算的hash值,且hash值的计算规则一样),如果一样,则不需要迁移,如果不一样,则需要终端进行数据迁移,则进行数据迁移。
步骤614、终端收到心跳回复消息,该消息用于通知终端需要重新注册消息后,会向新的注册服务器进行注册。
步骤615、发送心跳消息保活。
这里,步骤613可以有,也可以没有;步骤614和步骤615可以同时发生,也可以如目前流程所示存在先后顺序。
在本应用场景采用本发明实施例,对于目前使用多屏业务的用户越来 越多,用户的数据如何在多屏网关系统中进行分布式的有效管理,而不是采用集中式的数据管理方式的问题,提供的数据处理方案是一种分布式的IPTV多屏网关注册服务器终端用户数据动态管理的技术,当注册服务器发生变化时,终端数据能够自动进行迁移,不需要人工进行干预,从而保证了用户服务不受影响,使得系统更加稳定可靠。
本发明实施例所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。
相应的,本发明实施例还提供一种计算机存储介质,其中存储有计算机程序,该计算机程序用于执行本发明实施例的IPTV系统中的数据处理方法。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。
工业实用性
采用本发明实施例,接入网元设备对所有已接入的注册网元设备所上报的设备信息能进行统一维护,将所维护的信息通知给所有已接入的注册网元设备,在检测到已接入的注册网元设备发生变化时,对所维护的信息进行更新,将更新信息也通知给所有已接入的注册网元设备,使得IPTV系 统中任何一个注册网元设备的变化情况,其他注册网元设备都能够及时感知到,因为它除了知道设备信息,还能掌握IPTV系统中全网的其他注册网元设备的信息,从而在掌握了IPTV系统中全网的其他注册网元设备的信息,注册网元设备能根据所述更新信息确定是否需要通知终端进行数据迁移。

Claims (18)

  1. 一种IPTV系统中的数据处理方法,所述方法包括:
    获取所有已接入的注册网元设备所上报的设备信息;
    对所述上报的设备信息统一维护,将所维护的信息通知给所有已接入的注册网元设备;
    检测到已接入的注册网元设备发生变化时,对所维护的信息进行更新,将更新信息通知给所有已接入的注册网元设备,使注册网元设备能根据所述更新信息确定是否需要通知终端进行数据迁移。
  2. 根据权利要求1所述的方法,其中,所述对所述上报的设备信息统一维护后,所述方法还包括:
    根据所述上报的设备信息为所有已接入的注册网元设备分别分配一个标识信息,得到标识信息集合X1至Xj;所述j为大于1的自然数;
    所述维护的信息至少包括所述标识信息集合X1至Xj
  3. 根据权利要求2所述的方法,其中,所述方法还包括:
    终端发起接入请求后,获取所述接入请求中携带的所述终端的设备标识信息Y;
    根据所述设备标识信息Y和预设运算策略得到检测值Z;
    根据所述检测值Z从所有已接入的注册网元设备中选取出第一注册网元设备,所述第一注册网元设备用于终端注册使用;
    将所述第一注册网元设备的地址和所述检测值Z返回终端。
  4. 根据权利要求3所述的方法,其中,所述根据所述检测值Z从所有已接入的注册网元设备中选取出第一注册网元设备,包括:
    将所述检测值Z与所述标识信息集合X1至Xj中的标识信息进行比对,选取出比对结果符合预设条件的第一标识信息;所述预设条件用于表征所述第一标识信息与所述检测值Z在数值上最接近;
    选取所述第一标识信息对应的注册网元设备为所述第一注册网元设备。
  5. 根据权利要求2至4任一项所述的方法,其中,所述检测到已接入的注册网元设备发生变化时,对所维护的信息进行更新,将更新信息通知给所有已接入的注册网元设备,包括:
    检测到已接入的注册网元设备发生变化时,为所有已接入的注册网元设备重新分配一个标识信息,得到标识信息集合X1至Xi;所述i为大于等于1的自然数,所述i包括:所述i大于所述j及所述i小于所述j的两种情况;
    所述更新信息至少包括所述标识信息集合X1至Xi
  6. 一种接入网元设备,所述接入网元设备包括:
    第一获取单元,配置为获取所有已接入的注册网元设备所上报的设备信息;
    维护及通知单元,配置为对所述上报的设备信息统一维护,将所维护的信息通知给所有已接入的注册网元设备;
    更新及通知单元,配置为检测到已接入的注册网元设备发生变化时,对所维护的信息进行更新,将更新信息通知给所有已接入的注册网元设备,使注册网元设备能根据所述更新信息确定是否需要通知终端进行数据迁移。
  7. 根据权利要求6所述的接入网元设备,其中,所述接入网元设备还包括:
    分配单元,配置为根据所述上报的设备信息为所有已接入的注册网元设备分别分配一个标识信息,得到标识信息集合X1至Xj;所述j为大于1的自然数;
    所述维护的信息至少包括所述标识信息集合X1至Xj
  8. 根据权利要求7所述的接入网元设备,其中,所述接入网元设备还包括:
    第二获取单元,配置为终端发起接入请求后,获取所述接入请求中携带的所述终端的设备标识信息Y;
    运算单元,配置为根据所述设备标识信息Y和预设运算策略得到检测值Z;
    选取单元,配置为根据所述检测值Z从所有已接入的注册网元设备中选取出第一注册网元设备;
    返回单元,配置为将所述第一注册网元设备的地址和所述检测值Z返回终端。
  9. 根据权利要求8所述的接入网元设备,其中,所述选取单元,还配置为将所述检测值Z与所述标识信息集合X1至Xj中的标识信息进行比对,选取出比对结果符合预设条件的第一标识信息;所述预设条件用于表征所述第一标识信息与所述检测值Z在数值上最接近;选取所述第一标识信息对应的注册网元设备为所述第一注册网元设备。
  10. 根据权利要求7至9任一项所述的接入网元设备,其中,所述更新及通知单元,还配置为检测到已接入的注册网元设备发生变化时,为所有已接入的注册网元设备重新分配一个标识信息,得到标识信息集合X1至Xi;所述i为大于等于1的自然数,所述i包括:所述i大于所述j及所述i小于所述j的两种情况;
    所述更新信息至少包括所述标识信息集合X1至Xi
  11. 一种IPTV系统中的数据处理方法,所述方法包括:
    所有已接入的注册网元设备分别上报设备信息;
    获取接入网元设备所维护的信息;
    获取接入网元设备对所述所维护的信息更新后得到的更新信息;
    根据所述更新信息确定是否需要通知终端进行数据迁移。
  12. 根据权利要求11所述的方法,其中,所述维护的信息至少包括标识信息集合X1至Xj
    所述标识信息集合X1至Xj由接入网元设备为所有已接入的注册网元设备分别分配的标识信息构成;所述j为大于1的自然数。
  13. 根据权利要求11或12所述的方法,其中,所述更新信息至少包括标识信息集合X1至Xi
    所述标识信息集合X1至Xi由接入网元设备检测到已接入的注册网元设备发生变化时,为所有已接入的注册网元设备重新分配的标识信息构成;所述i为大于等于1的自然数,所述i包括:所述i大于所述j及所述i小于所述j的两种情况;
    相应的,所述获取接入网元设备对所述所维护的信息更新后得到的更新信息后,所述方法还包括:
    终端发起注册请求接入第一注册网元设备后,获取所述注册请求中携带的检测值Z;
    根据所述检测值Z检测终端是否需要重新注册到除所述第一注册网元设备之外的其他注册网元设备,以进行数据迁移。
  14. 根据权利要求13所述的方法,其中,所述根据所述检测值Z检测终端是否需要重新注册到除所述第一注册网元设备之外的其他注册网元设备,以进行数据迁移,包括:
    将所述检测值Z与所述标识信息集合X1至Xi中的标识信息进行比对,选取出比对结果符合预设条件的第二标识信息;所述预设条件用于表征所述第二标识信息与所述检测值Z在数值上最接近;
    当所述第二标识信息不是所述第一注册网元设备对应的标识信息时,返回重新注册消息给所述终端,并通知所述终端执行所述数据迁移。
  15. 一种注册网元设备,所述注册网元设备包括:
    上报单元,配置为所有已接入的注册网元设备分别上报设备信息;
    第三获取单元,配置为获取接入网元设备所维护的信息;
    第四获取单元,配置为获取接入网元设备对所述所维护的信息更新后得到的更新信息;
    确定单元,配置为根据所述更新信息确定是否需要通知终端进行数据迁移。
  16. 根据权利要求15所述的注册网元设备,其中,所述维护的信息至少包括标识信息集合X1至Xj
    所述标识信息集合X1至Xj由接入网元设备为所有已接入的注册网元设备分别分配的标识信息构成;所述j为大于1的自然数。
  17. 根据权利要求15或16所述的注册网元设备,其中,所述更新信息至少包括标识信息集合X1至Xi
    所述标识信息集合X1至Xi由接入网元设备检测到已接入的注册网元设备发生变化时,为所有已接入的注册网元设备重新分配的标识信息构成;所述i为大于等于1的自然数,所述i包括:所述i大于所述j及所述i小于所述j的两种情况;
    相应的,所述注册网元设备还包括:
    第五获取单元,配置为终端发起注册请求接入第一注册网元设备后,获取所述注册请求中携带的检测值Z;
    检测单元,配置为根据所述检测值Z检测终端是否需要重新注册到除所述第一注册网元设备之外的其他注册网元设备,以进行数据迁移。
  18. 根据权利要求17所述的注册网元设备,其中,所述检测单元,还配置为将所述检测值Z与所述标识信息集合X1至Xi中的标识信息进行比对,选取出比对结果符合预设条件的第二标识信息;所述预设条件用于表 征所述第二标识信息与所述检测值Z在数值上最接近;当所述第二标识信息不是所述第一注册网元设备对应的标识信息时,返回重新注册消息给所述终端,并通知所述终端执行所述数据迁移。
PCT/CN2014/094938 2014-06-27 2014-12-25 Iptv系统中的数据处理方法及网元设备 WO2015196769A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410302142.3 2014-06-27
CN201410302142.3A CN105208435B (zh) 2014-06-27 2014-06-27 Iptv系统中的数据处理方法及网元设备

Publications (1)

Publication Number Publication Date
WO2015196769A1 true WO2015196769A1 (zh) 2015-12-30

Family

ID=54936670

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/094938 WO2015196769A1 (zh) 2014-06-27 2014-12-25 Iptv系统中的数据处理方法及网元设备

Country Status (2)

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

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559228A (zh) * 2015-09-25 2017-04-05 中兴通讯股份有限公司 一种终端用户的放装方法及装置
CN107105049B (zh) * 2017-05-10 2018-10-02 腾讯科技(深圳)有限公司 数据迁移方法和装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710985A (zh) * 2012-01-17 2012-10-03 晨星软件研发(深圳)有限公司 家庭局域网内实现电视移屏的方法、系统及电视设备
CN103581704A (zh) * 2012-07-31 2014-02-12 华为技术有限公司 实现多屏互动的方法和装置
CN103581740A (zh) * 2013-10-25 2014-02-12 中兴通讯股份有限公司 一种分布式的iptv多屏网关和iptv多屏互动方法

Family Cites Families (2)

* 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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710985A (zh) * 2012-01-17 2012-10-03 晨星软件研发(深圳)有限公司 家庭局域网内实现电视移屏的方法、系统及电视设备
CN103581704A (zh) * 2012-07-31 2014-02-12 华为技术有限公司 实现多屏互动的方法和装置
CN103581740A (zh) * 2013-10-25 2014-02-12 中兴通讯股份有限公司 一种分布式的iptv多屏网关和iptv多屏互动方法

Also Published As

Publication number Publication date
CN105208435B (zh) 2020-09-18
CN105208435A (zh) 2015-12-30

Similar Documents

Publication Publication Date Title
US7225356B2 (en) System for managing operational failure occurrences in processing devices
US9374419B2 (en) Controlling registration floods in VoIP networks via DNS
CN106302565B (zh) 业务服务器的调度方法及系统
CN110365748B (zh) 业务数据的处理方法和装置、存储介质及电子装置
JP5863942B2 (ja) ウィットネスサービスの提供
CN108696581B (zh) 分布式信息的缓存方法、装置、计算机设备以及存储介质
US11822453B2 (en) Methods and systems for status determination
CN108989352B (zh) 防火墙实现方法、装置、计算机设备及存储介质
US10198212B2 (en) Distributed backup system
US11403009B2 (en) Storage system, and method and apparatus for allocating storage resources
WO2018090386A1 (zh) 一种nf组件异常的处理方法、设备及系统
CN111367662A (zh) 一种负载均衡方法、装置及系统
US20160344582A1 (en) Call home cluster
US20200142759A1 (en) Rest gateway for messaging
CN107508700B (zh) 容灾方法、装置、设备及存储介质
WO2015196769A1 (zh) Iptv系统中的数据处理方法及网元设备
CN106790610B (zh) 一种云系统消息分发方法,装置和系统
US20150237122A1 (en) Peer-to-peer connection system with capability of peer-to-peer connection path routing, path routing method of peer-to-peer connection and computer application program thereof
CN109510730A (zh) 分布式系统及其监控方法、装置、电子设备及存储介质
KR101883671B1 (ko) 노드 분산 방법 및 이를 수행하는 관리 서버
CN111901421A (zh) 一种数据处理方法及相关设备
US9019964B2 (en) Methods and systems for routing application traffic
CN113472662B (zh) 路径重分配方法和网络业务系统
KR101076762B1 (ko) 프로세스 할당 장치 및 그 동작 방법
CN111696657A (zh) 中间服务器、医疗监护设备及其连接方法和存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14895600

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14895600

Country of ref document: EP

Kind code of ref document: A1