Network migration method and system

By monitoring the national standard UDP stream of IPC devices and establishing an index table, it solves the disconnection problem of video stream links caused by the changes in IPC devices IP addresses, and realizes the continuity and stability of the smooth migration of the network and the continuity and stability of video monitoring.

CN119363722APending Publication Date: 2025-01-24FUJIAN FUNO MOBILE COMM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411351684.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

In video surveillance systems in the public domain, due to fluctuations in the network environment, the IP address of the IPC device may change, resulting in the disconnection of the video stream link, affecting the continuity and stability of video surveillance.

Method used

By monitoring the national standard UDP stream of IPC devices in real time, we can obtain streaming logo and SSRC values ​​to establish index tables. When receiving a new IP address data packet, intercept and determine whether it conforms to the RTP package format, extract the second SSRC value and determine whether it exists in the index table. If you exist, judge whether there is a corresponding access processing resources, if there is any reuse, otherwise create new access processing resources to achieve network migration.

Benefits of technology

When the network environment fluctuates, the network can be smoothly migrated to ensure the continuity and stability of video surveillance and improve resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119363722A_ABST
    Figure CN119363722A_ABST
Patent Text Reader

Abstract

The invention relates to a network migration method and system, and the method comprises the steps: carrying out the association of a flow identifier obtained from a received access application request of a national standard UDP flow of IPC equipment and a first SSRC value, building an index, obtaining an index table, carrying out the interception when a service port of the national standard UDP flow receives a data packet with an IP address being a new address, and carrying out the transmission of the data packet. And extracting a second SSRC value from the second SSRC value to judge whether the second SSRC value exists in the index table, if so, judging whether corresponding access processing resources exist, if so, multiplexing the existing corresponding access processing resources, and otherwise, creating a new access processing resource to process the data packet to realize network migration. Therefore, the access verification of the data packet of which the IP address is a new address is realized in a manner of associating the flow identifier with the first SSRC value to establish the index, and the data packet can be processed by multiplexing the existing access processing resources, so that the smooth migration of the network is realized while the resource utilization rate is improved, and the stability of video monitoring is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a network migration method and system. Background Art

[0002] With the increasing demand for security monitoring, video surveillance systems have been widely deployed in multiple public and private areas. In these video surveillance systems, especially those in the public field, it is often necessary to process video streams from thousands of IPC (Internet Protocol Camera, inter-process communication) devices. These video streams are usually transmitted in the form of UDP (User Datagram Protocol), RTP (Real-time Transport Protocol) and PS (Program Stream). In order to reduce the risk of network exposure, these systems often use a single port to receive all video streams that need to apply for access, and manage and process different video streams by binding the peer IP address. However, in the public domain, due to fluctuations in the network environment, the IP address of the IPC device may change, resulting in the disconnection of the original video stream link, thereby interrupting video surveillance and affecting the continuity and stability of video surveillance. Summary of the invention

[0003] The technical problem to be solved by the present invention is: the present invention provides a method and system for network migration, which can realize smooth migration of the network under the fluctuation of the network environment and ensure the continuity and stability of video monitoring.

[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0005] In a first aspect, the present invention provides a method for network migration, comprising:

[0006] When receiving an access application request for a national standard UDP stream of an IPC device, obtaining a stream identifier and a first SSRC value according to the access application request for the national standard UDP stream, associating the stream identifier and the first SSRC value to establish an index, and obtaining an index table;

[0007] The service port of the national standard UDP stream is monitored in real time. When the service port receives a data packet, it is determined whether the IP address of the data packet is a new address. If so, the data packet is intercepted and determined whether the data packet conforms to the RTP packet format. If not, the data packet is discarded. If conforming, a second SSRC value is extracted from the data packet to determine whether the second SSRC value exists in the index table. If not, the data packet is discarded. If so, it is determined whether the second SSRC value has a corresponding access processing resource. If there is a corresponding access processing resource, the corresponding access processing resource is directly reused to process the data packet. Otherwise, a new access processing resource is created, and the data packet is processed by the new access processing resource to realize network migration.

[0008] The beneficial effects of the present invention are as follows: when an access application request of a national standard UDP stream of an IPC device is received, its stream identifier is associated with a first SSRC value to establish an index, so as to obtain an index table, so as to facilitate the subsequent rapid positioning of the corresponding IPC device according to the first SSRC value; when a data packet with an IP address as a new address is received, it will be intercepted first, and the second SSRC value will be extracted from the data packet conforming to the RTP packet format to determine whether it exists in the index table, that is, to determine whether access has been applied for, to ensure the legitimacy of the second SSRC value; for the second SSRC value existing in the index table, that is, the second SSRC value for which access has been applied, it is further determined whether it has corresponding access processing resources; if there are corresponding access processing resources, the corresponding access processing resources are directly reused to process the data packet, so as to improve resource utilization; otherwise, new access processing resources are created, and the data packet is processed by the new access processing resources; in this way, when the IP address changes under the fluctuation of the network environment, the smooth migration of the network can be realized, so as to ensure the continuity and stability of video surveillance.

[0009] Optionally, extracting the second SSRC value from the data packet includes:

[0010] Then extract the second SSRC value from the RTP protocol header in the data packet.

[0011] Optionally, if there are corresponding access processing resources, directly reuse the corresponding access processing resources to process the data packet; otherwise, create new access processing resources and process the data packet through the new access processing resources, and implement network migration including:

[0012] Create a new socket handle, bind the new socket handle and the national standard UDP stream to the local port and the local IP address, and bind the new socket handle to the peer IP address and peer port of the IPC device to obtain the bound socket handle;

[0013] The bound socket handle is bound to the access processing resource to obtain a final socket handle, the data packet is directly transferred to the access processing resource through the final socket handle, the data packet is processed by the access processing resource, and network migration is realized.

[0014] According to the above description, when processing data packets through existing corresponding access processing resources or new access processing resources, the newly created socket handle is bound to the national standard UDP stream and socketed to the local port and local IP address, and at the same time it is bound to the peer IP address and peer port of the IPC device, that is, the socket handle is used to process different video streams, and the bound socket handle is bound to the access processing resource, so that the data packet is directly passed to the access processing resource through the socket handle, without the need for interception and judgment, thereby improving processing efficiency.

[0015] Optionally, the data packets include UDP format data packets, RTP format data packets and PS format data packets.

[0016] According to the above description, it can be seen that the processing of various forms of data packets is supported, which improves the diversity and flexibility of processing.

[0017] In a second aspect, the present invention provides a system for network migration, comprising:

[0018] An access application module, configured to, when receiving an access application request for a national standard UDP stream of an IPC device, obtain a stream identifier and a first SSRC value according to the access application request for the national standard UDP stream, associate the stream identifier and the first SSRC value to establish an index, and obtain an index table;

[0019] The network migration module is used to monitor the service port of the national standard UDP stream in real time. When the service port receives a data packet, it is determined whether the IP address of the data packet is a new address. If so, the data packet is intercepted and determined whether the data packet conforms to the RTP packet format. If not, the data packet is discarded. If it conforms, a second SSRC value is extracted from the data packet to determine whether the second SSRC value exists in the index table. If not, the data packet is discarded. If so, it is determined whether the second SSRC value has a corresponding access processing resource. If there is a corresponding access processing resource, the corresponding access processing resource is directly reused to process the data packet. Otherwise, a new access processing resource is created and the data packet is processed by the new access processing resource to achieve network migration.

[0020] The beneficial effects of the present invention are as follows: when an access application request of a national standard UDP stream of an IPC device is received, its stream identifier is associated with a first SSRC value to establish an index to obtain an index table, so as to facilitate the subsequent rapid positioning of the corresponding IPC device according to the first SSRC value; when a data packet with an IP address as a new address is received, it will be intercepted first, and the second SSRC value will be extracted from the data packet that conforms to the RTP packet format to determine whether it exists in the index table, that is, to determine whether access has been applied for, to ensure the legitimacy of the second SSRC value; for the second SSRC value existing in the index table, that is, the second SSRC value that has been applied for access, it is further determined whether it has a corresponding access processing resource; if there is a corresponding access processing resource, the corresponding access processing resource is directly reused to process the data packet, thereby improving resource utilization; otherwise, a new access processing resource is created, and the data packet is processed by the new access processing resource; in this way, when the IP address changes under the fluctuation of the network environment, the smooth migration of the network can be achieved, thereby ensuring the continuity and stability of video surveillance.

[0021] Optionally, the network migration module is specifically:

[0022] Then extract the second SSRC value from the RTP protocol header in the data packet.

[0023] Optionally, the network migration module includes:

[0024] A creation module is used to create a new socket handle, bind the new socket handle and the national standard UDP stream to the local port and the local IP address, and bind the new socket handle to the peer IP address and the peer port of the IPC device to obtain the bound socket handle;

[0025] The bound socket handle is bound to the access processing resource to obtain a final socket handle, the data packet is directly transferred to the access processing resource through the final socket handle, the data packet is processed by the access processing resource, and network migration is realized.

[0026] According to the above description, when processing data packets through existing corresponding access processing resources or new access processing resources, the newly created socket handle is bound to the national standard UDP stream and socketed to the local port and local IP address, and at the same time it is bound to the peer IP address and peer port of the IPC device, that is, the socket handle is used to process different video streams, and the bound socket handle is bound to the access processing resource, so that the data packet is directly passed to the access processing resource through the socket handle, without the need for interception and judgment, thereby improving processing efficiency.

[0027] Optionally, the data packets include UDP format data packets, RTP format data packets and PS format data packets.

[0028] According to the above description, it can be seen that the processing of various forms of data packets is supported, which improves the diversity and flexibility of processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A flowchart of a network migration method provided by an embodiment of the present invention;

[0030] Figure 2 A schematic diagram of the overall flow of a network migration method provided by an embodiment of the present invention;

[0031] Figure 3 A schematic diagram of the structure of a network migration system provided by an embodiment of the present invention.

[0032] [Description of Reference Numerals]

[0033] 1. A system for network migration;

[0034] 2. Access application module;

[0035] 3. Network migration module; 31. Creation module. DETAILED DESCRIPTION

[0036] In order to better understand the above technical solution, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a clearer and more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0037] Embodiment 1

[0038] Please refer to Figure 1 to Figure 2 The present invention provides a network migration method, comprising the steps of:

[0039] S1. When receiving an access application request for a national standard UDP stream of an IPC device, obtaining a stream identifier and a first SSRC value according to the access application request for the national standard UDP stream, associating the stream identifier and the first SSRC value to establish an index, and obtaining an index table;

[0040] In this embodiment, if Figure 2 As shown, when the streaming media service receives an access application request for the national standard UDP stream of the IPC device, it obtains the corresponding signaling data according to the access application request, thereby obtaining the stream identifier and the first SSRC value from the signaling data, and associates the obtained stream identifier and the first SSRC value to establish an index to obtain an index table.

[0041] S2. Monitor the service port of the national standard UDP stream in real time. When the service port receives a data packet, determine whether the IP address of the data packet is a new address. If so, intercept the data packet and determine whether the data packet conforms to the RTP packet format. If not, discard the data packet. If conforming, extract a second SSRC value from the data packet and determine whether the second SSRC value exists in the index table. If not, discard the data packet. If so, determine whether the second SSRC value has a corresponding access processing resource. If so, directly reuse the corresponding access processing resource to process the data packet. Otherwise, create a new access processing resource and process the data packet through the new access processing resource to achieve network migration.

[0042] At this time, extracting the second SSRC value from the data packet in step S2 includes:

[0043] S21, extracting a second SSRC value from the RTP protocol header in the data packet.

[0044] In this embodiment, if Figure 2As shown, the service port of the national standard UDP stream is monitored in real time. When the service port receives a data packet, the data packet includes a UDP format data packet, an RTP format data packet and a PS format data packet. It will first determine whether the IP address of the data packet is a new address. If it is a new address, it will be intercepted. It is further determined whether the data packet conforms to the RTP format. If it does not conform, it will be discarded. Otherwise, if it conforms, the second SSRC value is extracted from the RTP protocol header in the data packet. It is determined whether the extracted second SSRC value exists in the index table obtained in step S1. If it exists, it means that the second SSRC value has applied for access and the second SSRC value is legal. It is further determined whether the second SSRC value has a corresponding access processing resource. If there is a corresponding access processing resource, the corresponding access processing resource is directly reused to process the data packet. Otherwise, if there is no corresponding access processing resource, a new access processing resource is created to process the data packet. Similarly, when distribution resources are needed, it is also determined whether there is a corresponding distribution resource. If there is a corresponding distribution resource, the corresponding distribution resource is reused for processing. Otherwise, if there is no corresponding distribution resource, a new distribution resource is created for processing, thereby realizing network migration.

[0045] At this time, in step S2, if there are corresponding access processing resources, the corresponding access processing resources are directly reused to process the data packet. Otherwise, new access processing resources are created and the data packet is processed by the new access processing resources. The network migration includes:

[0046] S22, create a new socket handle, bind the new socket handle and the national standard UDP stream to the local port and the local IP address, and bind the new socket handle to the peer IP address and the peer port of the IPC device to obtain the bound socket handle;

[0047] S23. Bind the bound socket handle to the access processing resource to obtain a final socket handle, directly pass the data packet to the access processing resource through the final socket handle, process the data packet through the access processing resource, and realize network migration.

[0048] In this embodiment, if Figure 2As shown, when processing a data packet through an existing corresponding access processing resource or a new access processing resource, a new socket handle is created, and the new socket handle is bound to the national standard UDP stream and socketed to the local port and the local IP address, and at the same time, it is bound to the peer IP address and the peer port of the IPC device to obtain the bound socket handle to realize the processing of different video streams, and the bound socket handle is bound to the access processing resource to obtain the final socket handle, so that when a data packet is received subsequently, the data packet is directly passed to the access processing resource through the final socket handle, and no interception judgment is required. The data packet is processed by the access processing resource to realize smooth migration of the network.

[0049] Embodiment 2

[0050] Please refer to Figure 3 The present invention provides a network migration system 1, comprising: an access application module 2, a network migration module 3 and a creation module 31.

[0051] The access application module 2 is used for, when receiving an access application request for a national standard UDP stream of an IPC device, obtaining a stream identifier and a first SSRC value according to the access application request for the national standard UDP stream, and associating the stream identifier and the first SSRC value to establish an index table;

[0052] The network migration module 3 is used to monitor the service port of the national standard UDP stream in real time. When the service port receives a data packet, it determines whether the IP address of the data packet is a new address. If so, the data packet is intercepted and determined whether the data packet conforms to the RTP packet format. If not, the data packet is discarded. If it conforms, a second SSRC value is extracted from the data packet to determine whether the second SSRC value exists in the index table. If not, the data packet is discarded. If so, it is determined whether the second SSRC value has a corresponding access processing resource. If there is a corresponding access processing resource, the corresponding access processing resource is directly reused to process the data packet. Otherwise, a new access processing resource is created and the data packet is processed by the new access processing resource to achieve network migration.

[0053] Specifically, the network migration module 3 is specifically:

[0054] Then extract the second SSRC value from the RTP protocol header in the data packet.

[0055] Specifically, the network migration module 3 includes:

[0056] A creation module 31 is used to create a new socket handle, bind the new socket handle and the national standard UDP stream to the local port and the local IP address, and bind the new socket handle to the peer IP address and the peer port of the IPC device to obtain the bound socket handle;

[0057] The bound socket handle is bound to the access processing resource to obtain a final socket handle, the data packet is directly transferred to the access processing resource through the final socket handle, the data packet is processed by the access processing resource, and network migration is realized.

[0058] Specifically, the data packets include UDP format data packets, RTP format data packets and PS format data packets.

[0059] Since the system / device described in the above embodiments of the present invention is a system / device used to implement the method of the above embodiments of the present invention, a person skilled in the art can understand the specific structure and deformation of the system / device based on the method described in the above embodiments of the present invention, and thus will not be described in detail here. All systems / devices used in the method of the above embodiments of the present invention belong to the scope of protection of the present invention.

[0060] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0061] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions.

[0062] It should be noted that in the claims, any reference numerals placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In the claims enumerating several means, several of these means may be embodied by the same hardware. The use of the words first, second, third, etc., is for convenience of expression only and does not indicate any order. These words may be understood as part of the component name.

[0063] In addition, it should be noted that, in the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0064] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments after knowing the basic creative concept. Therefore, the claims should be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.

[0065] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention should also include these modifications and variations.

Claims

1. A network migration method, characterized in that: include: When receiving an access application request for a national standard UDP stream of an IPC device, obtaining a stream identifier and a first SSRC value according to the access application request for the national standard UDP stream, associating the stream identifier and the first SSRC value to establish an index, and obtaining an index table; The service port of the national standard UDP stream is monitored in real time. When the service port receives a data packet, it is determined whether the IP address of the data packet is a new address. If so, the data packet is intercepted and determined whether the data packet conforms to the RTP packet format. If not, the data packet is discarded. If conforming, a second SSRC value is extracted from the data packet to determine whether the second SSRC value exists in the index table. If not, the data packet is discarded. If so, it is determined whether the second SSRC value has a corresponding access processing resource. If there is a corresponding access processing resource, the corresponding access processing resource is directly reused to process the data packet. Otherwise, a new access processing resource is created, and the data packet is processed by the new access processing resource to realize network migration.

2. A network migration method as claimed in claim 1, characterized in that: The extracting the second SSRC value from the data packet comprises: Then extract the second SSRC value from the RTP protocol header in the data packet.

3. A network migration method as claimed in claim 1, characterized in that: If there are corresponding access processing resources, directly reuse the corresponding access processing resources to process the data packet; otherwise, create new access processing resources and process the data packet through the new access processing resources to implement network migration, including: Create a new socket handle, bind the new socket handle and the national standard UDP stream to the local port and the local IP address, and bind the new socket handle to the peer IP address and peer port of the IPC device to obtain the bound socket handle; The bound socket handle is bound to the access processing resource to obtain a final socket handle, the data packet is directly transferred to the access processing resource through the final socket handle, the data packet is processed by the access processing resource, and network migration is realized.

4. A network migration method as claimed in claim 1, characterized in that: The data packets include UDP format data packets, RTP format data packets and PS format data packets.

5. A network migration system, characterized in that: include: An access application module, configured to, when receiving an access application request for a national standard UDP stream of an IPC device, obtain a stream identifier and a first SSRC value according to the access application request for the national standard UDP stream, associate the stream identifier and the first SSRC value to establish an index, and obtain an index table; The network migration module is used to monitor the service port of the national standard UDP stream in real time. When the service port receives a data packet, it is determined whether the IP address of the data packet is a new address. If so, the data packet is intercepted and determined whether the data packet conforms to the RTP packet format. If not, the data packet is discarded. If it conforms, a second SSRC value is extracted from the data packet to determine whether the second SSRC value exists in the index table. If not, the data packet is discarded. If so, it is determined whether the second SSRC value has a corresponding access processing resource. If there is a corresponding access processing resource, the corresponding access processing resource is directly reused to process the data packet. Otherwise, a new access processing resource is created and the data packet is processed by the new access processing resource to achieve network migration.

6. A network migration system as claimed in claim 5, characterized in that: The network migration module is specifically: Then extract the second SSRC value from the RTP protocol header in the data packet.

7. A network migration system as claimed in claim 5, characterized in that: The network migration module includes: A creation module is used to create a new socket handle, bind the new socket handle and the national standard UDP stream to the local port and the local IP address, and bind the new socket handle to the peer IP address and the peer port of the IPC device to obtain the bound socket handle; The bound socket handle is bound to the access processing resource to obtain a final socket handle, the data packet is directly transferred to the access processing resource through the final socket handle, the data packet is processed by the access processing resource, and network migration is realized.

8. A network migration system as claimed in claim 5, characterized in that: The data packets include UDP format data packets, RTP format data packets and PS format data packets.