Movatterモバイル変換


[0]ホーム

URL:


CN103916489B - The many IP of a kind of single domain name domain name analytic method and system - Google Patents

The many IP of a kind of single domain name domain name analytic method and system
Download PDF

Info

Publication number
CN103916489B
CN103916489BCN201410127377.3ACN201410127377ACN103916489BCN 103916489 BCN103916489 BCN 103916489BCN 201410127377 ACN201410127377 ACN 201410127377ACN 103916489 BCN103916489 BCN 103916489B
Authority
CN
China
Prior art keywords
address
client device
transcoding server
isp
keep
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410127377.3A
Other languages
Chinese (zh)
Other versions
CN103916489A (en
Inventor
周迪
林界
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Uniview Technologies Co LtdfiledCriticalZhejiang Uniview Technologies Co Ltd
Priority to CN201410127377.3ApriorityCriticalpatent/CN103916489B/en
Publication of CN103916489ApublicationCriticalpatent/CN103916489A/en
Application grantedgrantedCritical
Publication of CN103916489BpublicationCriticalpatent/CN103916489B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

Translated fromChinese

本发明提供一种单域名多IP的域名解析方法及系统,所述方法为:客户端设备选择第一IP地址向转码服务器发注册请求报文并携带该客户端设备所属的ISP信息;转码服务器判断所述第一IP地址与客户端设备所属ISP是否相同,若是则生成路由表项,其出接口为第一接口;否则在路由表项上添加临时标签,查找与客户端设备所属的ISP相同的第二IP地址并写入注册应答报文;客户端设备判断第二IP地址是否在缓存中,若是则以第二IP地址向转码服务器发送保活报文并携带update标签;若转码服务器解析出保活报文中携带有update标签,则生成路由表项,其中的出接口为第二接口。本发明可以确保监控视频的图像质量,提高ISP网络带宽的利用率。

The present invention provides a single domain name and multiple IP domain name resolution method and system. The method is as follows: a client device selects the first IP address and sends a registration request message to the transcoding server and carries the ISP information to which the client device belongs; The code server judges whether the first IP address is the same as the ISP to which the client device belongs, if so, generates a routing table entry, and its outgoing interface is the first interface; The same second IP address of the ISP and write the registration response message; the client device judges whether the second IP address is in the cache, and if so, sends a keep-alive message to the transcoding server with the second IP address and carries the update tag; if The transcoding server parses out that the keep-alive message carries the update tag, and then generates a routing entry, where the outbound interface is the second interface. The invention can ensure the image quality of the monitoring video and improve the utilization rate of the ISP network bandwidth.

Description

Translated fromChinese
一种单域名多IP的域名解析方法及系统A domain name resolution method and system for a single domain name and multiple IPs

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种单域名多IP的域名解析方法及系统。The present invention relates to the field of communication technology, in particular to a domain name resolution method and system for a single domain name and multiple IPs.

背景技术Background technique

随着IP网络的视频监控技术和移动互联网技术的快速发展,远程视频监控逐渐成为监控行业的热点,其中方便快捷的移动远程终端智能安防更加受到人们的青睐。为了实现移动终端的远程智能安防功能,通常会在移动终端上安装移动监控客户端软件。由于监控数据的码流格式通常与视频监控终端相匹配,普通的客户端设备读取数据时相对较困难,因此会在客户端设备与监控设备之间加入TS转码服务器,以便客户端设备能够得到可读取的数据。所以,在客户端设备中通常会设置TS转码服务器的域名,通过各互联网服务提供商ISP提供的无线网络向远程的TS转码服务器发起注册认证。With the rapid development of IP network video surveillance technology and mobile Internet technology, remote video surveillance has gradually become a hot spot in the surveillance industry, and the convenient and fast mobile remote terminal intelligent security is more popular among people. In order to realize the remote intelligent security function of the mobile terminal, mobile monitoring client software is usually installed on the mobile terminal. Since the code stream format of the monitoring data usually matches the video monitoring terminal, it is relatively difficult for ordinary client devices to read the data. Therefore, a TS transcoding server will be added between the client device and the monitoring device so that the client device can Get readable data. Therefore, the domain name of the TS transcoding server is usually set in the client device, and the registration authentication is initiated to the remote TS transcoding server through the wireless network provided by each Internet service provider (ISP).

客户端设备一般会通过TS转码服务器的域名来访问TS转码服务器,其中,需要DNS域名解析服务器为客户端设备进行域名解析,即将客户端设备输入的域名解析为该域名对应的IP地址,进而使客户端设备通过所述IP地址访问TS转码服务器。The client device generally accesses the TS transcoding server through the domain name of the TS transcoding server. Among them, the DNS domain name resolution server is required to perform domain name resolution for the client device, that is, the domain name input by the client device is resolved to the corresponding IP address of the domain name. Further, the client device accesses the TS transcoding server through the IP address.

如图1所示,现有技术中,不同的ISP会为同一个域名提供不同的IP地址(假设为电信网和移动网),以便于各自签约的客户端设备能在各自的服务网络中利用较高的网络带宽,快速访问域名对应的TS转码服务器。DNS服务器在不知道所述客户端设备属于哪个ISP网络时,通常会把解析出来的TS转码服务器对应的所有IP地址返回至客户端设备,再由客户端设备随机或按次序从这些IP地址中选择一个向TS转码服务器发起注册请求报文。当DNS服务器域名解析系统返回的IP地址所属的ISP网络不是客户端设备所属ISP网络时,如图1所示,其中客户端设备使用电信网络,但却使用移动提供的IP地址访问TS转码服务器,这种跨运营商网络的方式在传输过程中会造成大量的数据丢失和较大的延时从而使得图像质量下降,更严重时使得实况花屏以及丢失视频数据从而造成较差的用户体验效果。As shown in Figure 1, in the prior art, different ISPs will provide different IP addresses for the same domain name (assuming it is a telecommunications network and a mobile network), so that the respective contracted client devices can use the IP addresses in their respective service networks. High network bandwidth, fast access to the TS transcoding server corresponding to the domain name. When the DNS server does not know which ISP network the client device belongs to, it will usually return all the IP addresses corresponding to the parsed TS transcoding server to the client device, and then the client device will randomly or sequentially select from these IP addresses Select one of them to send a registration request message to the TS transcoding server. When the IP address returned by the DNS server domain name resolution system belongs to an ISP network other than the ISP network to which the client device belongs, as shown in Figure 1, the client device uses the telecommunications network, but uses the IP address provided by China Mobile to access the TS transcoding server , This cross-operator network method will cause a large amount of data loss and a large delay during the transmission process, which will degrade the image quality, and even worse, cause the live screen to be blurred and video data lost, resulting in poor user experience.

发明内容Contents of the invention

有鉴于此,本发明提供一种单域名多IP的域名解析方法及系统来实现客户端设备和TS转码服务器中的出接口对应的IP地址归属于同一ISP网络,从而确保客户端设备可以获取质量较好的监控图像。In view of this, the present invention provides a single domain name and multiple IP domain name resolution method and system to realize that the IP addresses corresponding to the outgoing interface of the client device and the TS transcoding server belong to the same ISP network, thereby ensuring that the client device can obtain Surveillance images with better quality.

本发明提供一种单域名多IP的域名解析方法,所述方法包括:The present invention provides a single domain name multi-IP domain name resolution method, said method comprising:

S1.客户端设备在DNS域名解析服务器解析出的TS转码服务器域名对应的多个IP地址中,按照预设规则选择第一IP地址作为向TS转码服务器发注册请求报文的目的IP地址,该注册请求报文中携带该客户端设备所属的ISP信息;S1. The client device selects the first IP address as the destination IP address for sending a registration request message to the TS transcoding server according to preset rules among the multiple IP addresses corresponding to the domain name of the TS transcoding server resolved by the DNS domain name resolution server , the registration request message carries the ISP information to which the client device belongs;

S2.所述TS转码服务器从所述第一IP地址对应的第一接口收到所述注册请求报文时,判断所述第一IP地址所属ISP与所述客户端设备所属ISP是否相同,若是,则生成到该客户端设备的路由表项,所述路由表项中的出接口为所述第一接口;否则在所述生成的到该客户端设备的路由表项上添加临时标签,并查找与客户端设备所属的ISP相同的第二IP地址,将第二IP地址写入注册应答报文中返回至客户端设备;S2. When the TS transcoding server receives the registration request message from the first interface corresponding to the first IP address, it determines whether the ISP to which the first IP address belongs is the same as the ISP to which the client device belongs, If so, generate a routing table entry to the client device, where the outgoing interface in the routing table item is the first interface; otherwise, add a temporary label to the generated routing table entry to the client device, And search for the second IP address identical to the ISP to which the client device belongs, write the second IP address in the registration response message and return to the client device;

S3.所述客户端设备判断所述注册应答报文中的第二IP地址是否存在于自身的DNS缓存中,若是,则以第二IP地址为目的IP地址向TS转码服务器发送保活报文,所述保活报文中携带update标签;S3. The client device judges whether the second IP address in the registration response message exists in its own DNS cache, and if so, sends a keep-alive message to the TS transcoding server with the second IP address as the destination IP address text, the keep-alive message carries an update tag;

S4.若所述TS转码服务器解析出所述保活报文中携带有update标签,则生成替代带有临时标签的路由表项,所述路由表项中的出接口为所述第二IP地址对应的第二接口。S4. If the TS transcoding server parses out that the keep-alive message carries an update label, then generate a routing entry with a temporary label instead, and the outgoing interface in the routing entry is the second IP The second interface corresponding to the address.

基于同样的构思,本发明还提供了一种单域名多IP的域名解析系统,其特征在于,Based on the same idea, the present invention also provides a single domain name multi-IP domain name resolution system, which is characterized in that,

所述系统包括客户端设备和TS转码服务器,其中:The system includes a client device and a TS transcoding server, wherein:

客户端设备在DNS域名解析服务器解析出的TS转码服务器域名对应的多个IP地址中,按照预设规则选择第一IP地址作为向TS转码服务器发注册请求报文的目的IP地址,该注册请求报文中携带该客户端设备所属的ISP信息;Among the multiple IP addresses corresponding to the TS transcoding server domain name resolved by the DNS domain name resolution server, the client device selects the first IP address according to preset rules as the destination IP address for sending a registration request message to the TS transcoding server. The registration request message carries the ISP information to which the client device belongs;

所述TS转码服务器从所述第一IP地址对应的第一接口收到所述注册请求报文时,判断所述第一IP地址所属ISP与所述客户端设备所属ISP是否相同,若是,则生成到该客户端设备的路由表项,所述路由表项中的出接口为所述第一接口;否则在所述生成的到该客户端设备的路由表项上添加临时标签,并查找与客户端设备所属的ISP相同的第二IP地址,将第二IP地址写入注册应答报文中返回至客户端设备;When the TS transcoding server receives the registration request message from the first interface corresponding to the first IP address, it determines whether the ISP to which the first IP address belongs is the same as the ISP to which the client device belongs, and if so, Then generate the routing table item to the client device, the outgoing interface in the routing table item is the first interface; otherwise, add a temporary label to the routing table item generated to the client device, and find A second IP address identical to the ISP to which the client device belongs, writing the second IP address into the registration response message and returning it to the client device;

所述客户端设备判断所述注册应答报文中的第二IP地址是否存在于自身的DNS缓存中,若是,则以第二IP地址为目的IP地址向TS转码服务器发送保活报文,所述保活报文中携带update标签;The client device judges whether the second IP address in the registration response message exists in its own DNS cache, and if so, sends a keep-alive message to the TS transcoding server with the second IP address as the destination IP address, The keep-alive message carries an update tag;

若所述TS转码服务器解析出所述保活报文中携带有update标签,则生成替代带有临时标签的路由表项,所述路由表项中的出接口为所述第二IP地址对应的第二接口。If the TS transcoding server parses out that the keep-alive message carries an update label, it generates a routing table entry that replaces the temporary label, and the outgoing interface in the routing table entry corresponds to the second IP address the second interface.

相对于现有技术,本发明通过对不同ISP对应的IP地址进行区分,使TS转码服务器的出接口对应的IP地址和客户端设备归属于同一个ISP网络,从而最大程度确保监控视频的图像质量,并且有效的提高了ISP网络带宽的利用率。Compared with the prior art, the present invention distinguishes the IP addresses corresponding to different ISPs, so that the IP address corresponding to the outgoing interface of the TS transcoding server and the client device belong to the same ISP network, thereby ensuring the image quality of the surveillance video to the greatest extent. Quality, and effectively improve the utilization of ISP network bandwidth.

附图说明Description of drawings

图1是现有技术中一种单域名多IP的域名解析网络结构示意图;Fig. 1 is a schematic diagram of domain name resolution network structure of a single domain name and multiple IPs in the prior art;

图2是本发明提供的一种单域名多IP的域名解析方法流程图;Fig. 2 is a flow chart of a domain name resolution method for a single domain name with multiple IPs provided by the present invention;

图3是本发明实施例中一种单域名多IP的域名解析网络结构示意图。FIG. 3 is a schematic diagram of a domain name resolution network structure of a single domain name and multiple IPs in an embodiment of the present invention.

具体实施方式detailed description

为了解决上述问题,本发明提供一种单域名多IP的域名解析方法及系统来实现客户端和TS转码服务器出接口对应的IP地址归属于同一个ISP网络,从而确保客户端获取的监控图像质量。In order to solve the above problems, the present invention provides a single domain name and multiple IP domain name resolution method and system to realize that the IP addresses corresponding to the outgoing interface of the client and the TS transcoding server belong to the same ISP network, thereby ensuring that the monitoring images obtained by the client quality.

请参见图2,本发明提供一种单域名多IP的域名解析方法,所述方法包括步骤:Please refer to Fig. 2, the present invention provides a kind of single domain name multiple IP domain name analysis method, described method comprises steps:

101、客户端设备在DNS服务器解析出的TS转码服务器域名对应的多个IP地址中,按照预设规则(随机或按照一定顺序)选择第一IP地址作为向TS转码服务器发注册请求报文的目的IP地址,该注册请求报文中携带该客户端设备所属的ISP信息;101. Among the multiple IP addresses corresponding to the TS transcoding server domain name resolved by the DNS server, the client device selects the first IP address according to preset rules (randomly or in a certain order) as the registration request report to the TS transcoding server. The destination IP address of the message, and the registration request message carries the ISP information to which the client device belongs;

102、所述TS转码服务器从所述第一IP地址对应的第一接口上收到所述注册请求报文时,判断所述第一IP地址所属ISP与所述客户端设备所属ISP是否相同,若是,则转步骤103;否则转步骤104;102. When the TS transcoding server receives the registration request message from the first interface corresponding to the first IP address, determine whether the ISP to which the first IP address belongs is the same as the ISP to which the client device belongs , if so, go to step 103; otherwise go to step 104;

103、当所述第一IP地址所属ISP与所述客户端设备所属ISP相同时,TS转码服务器会生成到该客户端设备的路由表项,所述路由表项中的出接口为所述第一IP地址对应的第一接口;103. When the ISP to which the first IP address belongs is the same as the ISP to which the client device belongs, the TS transcoding server will generate a routing entry to the client device, and the outgoing interface in the routing entry is the the first interface corresponding to the first IP address;

104、当所述第一IP地址所属ISP与所述客户端设备所属ISP不同时,TS转码服务器会在所述路由表项上添加一临时标签,并根据注册请求报文中携带的客户端设备所属的ISP信息在自身查找与客户端设备所属的ISP相同的第二IP地址,然后将第二IP地址写入注册应答报文中返回至客户端设备;104. When the ISP to which the first IP address belongs is different from the ISP to which the client device belongs, the TS transcoding server will add a temporary label to the routing entry, and The ISP information to which the device belongs searches for the same second IP address as the ISP to which the client device belongs, and then writes the second IP address into the registration response message and returns it to the client device;

105、所述客户端设备判断所述注册应答报文中的第二IP地址是否存在于自身的DNS缓存中,若是,则转步骤106;105. The client device determines whether the second IP address in the registration response message exists in its own DNS cache, and if so, proceeds to step 106;

106、客户端设备以第二IP地址为目的IP地址向TS转码服务器发送保活报文,所述保活报文中携带update标签;所述update标签表示对路由表项进行更新;106. The client device uses the second IP address as the destination IP address to send a keep-alive message to the TS transcoding server, and the keep-alive message carries an update tag; the update tag indicates that the routing table entry is updated;

107、若所述TS转码服务器解析出所述保活报文中携带有update标签,则生成替代带有临时标签的路由表项,所述更新后的路由表项中的出接口为所述第二IP地址对应的第二接口。107. If the TS transcoding server parses out that the keep-alive message carries an update label, generate a replacement routing entry with a temporary label, and the outbound interface in the updated routing entry is the The second interface corresponding to the second IP address.

由此可见,本发明通过对不同ISP对应的IP地址进行区分,使TS转码服务器的出接口对应的IP地址和客户端设备归属于同一个ISP网络,从而最大程度确保监控视频的图像质量,并且有效的提高了ISP网络带宽的利用率。It can be seen that the present invention distinguishes the IP addresses corresponding to different ISPs, so that the IP address corresponding to the outgoing interface of the TS transcoding server and the client device belong to the same ISP network, thereby ensuring the image quality of the surveillance video to the greatest extent. And effectively improve the utilization rate of ISP network bandwidth.

在优选的实施例中,判断所述第一IP地址所属ISP与所述客户端设备所属ISP是否相同的方法具体为:In a preferred embodiment, the method for judging whether the ISP to which the first IP address belongs is the same as the ISP to which the client device belongs is:

所述客户端设备在向TS转码服务器发送的所述注册请求报文中加入自身所属ISP对应的标记值;所述TS转码服务器根据所述注册请求报文中携带的标记值判断所述标记值与所述第一IP地址所属ISP对应的预设标记值是否相同,若相同,则说明所述客户端设备与所述第一IP地址所属的ISP相同;否则ISP不同。The client device adds a tag value corresponding to its own ISP in the registration request message sent to the TS transcoding server; the TS transcoding server judges the Whether the flag value is the same as the preset flag value corresponding to the ISP to which the first IP address belongs, if they are the same, it means that the client device is the same as the ISP to which the first IP address belongs; otherwise, the ISPs are different.

值得注意的是,本发明实施例中客户端设备收到TS转码服务器回复的注册应答报文,并获取到所述报文中携带的第二IP地址后,理论上可以直接选择所述第二IP地址作为TS转码服务器的地址,但是考虑到网络安全的问题,为了避免有攻击者冒充TS转码服务器向所述客户端设备发送该IP地址,还要进行一些安全防护措施。在本发明优选的实施例中,由于DNS缓存具有较高的安全性及防缓存污染机制,因此所述客户端设备会判断所述注册应答报文中的第二IP地址是否存在于自身的DNS缓存中,若是,则以第二IP地址为目的IP地址向TS转码服务器发送保活报文。若不在则会怀疑所述第二IP地址的安全性,为了不影响正常通信,所述客户端设备会继续使用第一IP地址为目的IP地址向TS转码服务器发送保活报文,并将该保活报文中携带hold标签,其中hold表示继续用当前的带有临时标签的路由表项。这样一来,客户端设备可以避免攻击者冒充TS转码服务器造成的攻击,从而提高访问的安全性。It is worth noting that in the embodiment of the present invention, after the client device receives the registration response message replied by the TS transcoding server and obtains the second IP address carried in the message, it can theoretically directly select the second IP address. The second IP address is used as the address of the TS transcoding server, but in consideration of network security, in order to prevent an attacker from impersonating the TS transcoding server and sending the IP address to the client device, some security protection measures must be taken. In a preferred embodiment of the present invention, since the DNS cache has a higher security and anti-cache pollution mechanism, the client device will determine whether the second IP address in the registration response message exists in its own DNS In the cache, if yes, send a keep-alive message to the TS transcoding server with the second IP address as the destination IP address. If not, the security of the second IP address will be doubted. In order not to affect normal communication, the client device will continue to use the first IP address as the destination IP address to send a keep-alive message to the TS transcoding server, and send The keep-alive message carries a hold label, where hold indicates that the current routing entry with the temporary label is continued to be used. In this way, the client device can avoid attacks caused by attackers impersonating the TS transcoding server, thereby improving access security.

本发明优选的实施例中,还在所述客户端设备向TS转码服务器发送带有hold标签的活报文后(也就说明此时客户端设备与TS转码服务器出接口对应的IP地址归属的ISP网络不相同),所述客户端设备会周期性的向DNS服务器发送TS转码服务器的域名解析请求报文。若客户端设备发现DNS当前解析出的域名对应的IP地址包含所述第二IP地址,则以第二IP地址作为目的IP地址向TS转码服务器发送保活报文,所述保活报文中携带update标签。客户端设备向DNS服务器周期性的发送TS转码服务器的域名解析请求报文,就能及时地将TS转码服务器域名对应的所有IP地址更新到DNS缓存中,以避免DNS缓存中的TS转码服务器的IP地址和DNS服务器的不一致。TS转码服务器收到携带update标签的保活报文后,则删除之前建立的携带临时标签的路由表项,然后重新生成一个路由表项,其中的目的IP地址为所述客户端的IP地址,出接口为所述第二IP地址对应的第二接口。这样一来,客户端设备就具有了对新加入的ISP网络的获知及信息更新能力,从而提高监控客户端的使用效果。In a preferred embodiment of the present invention, after the client device sends a live message with a hold label to the TS transcoding server (that is, the IP address corresponding to the outgoing interface of the client device and the TS transcoding server at this time belong to different ISP networks), the client device will periodically send the domain name resolution request message of the TS transcoding server to the DNS server. If the client device finds that the IP address corresponding to the domain name currently resolved by the DNS includes the second IP address, it uses the second IP address as the destination IP address to send a keep-alive message to the TS transcoding server, and the keep-alive message Carry the update tag in it. The client device periodically sends the domain name resolution request message of the TS transcoding server to the DNS server, so that all IP addresses corresponding to the domain name of the TS transcoding server can be updated in the DNS cache in a timely manner, so as to avoid TS transcoding in the DNS cache. The IP address of the code server is inconsistent with that of the DNS server. After the TS transcoding server receives the keep-alive message carrying the update label, it deletes the previously established routing table entry carrying the temporary label, and then regenerates a routing table entry in which the destination IP address is the IP address of the client. The outgoing interface is the second interface corresponding to the second IP address. In this way, the client device has the ability to know and update information about the newly added ISP network, thereby improving the use effect of the monitoring client.

本发明还提供了一种应用上述单域名多IP的域名解析方法的域名解析系统,由于该系统域名解析的处理流程与所述方法相同,此处不再赘述。The present invention also provides a domain name resolution system applying the above domain name resolution method for single domain name and multiple IPs. Since the processing flow of domain name resolution in this system is the same as that of the method, it will not be repeated here.

下面结合说明书附图3,以一个具体的实施例对本发明进行详细说明。The present invention will be described in detail below with a specific embodiment in conjunction with accompanying drawing 3 of the specification.

其中,该网络结构中包含客户端设备、DNS服务器、TS转码服务器和ISP网络,假设客户端设备属于电信网络,DNS服务器也属于电信网络,有移动和电信两个ISP网络为TS转码服务器提供服务。假设TS转码服务器在电信网络的出接口A的IP地址为IPA,标记值为0;TS转码服务器在移动网络的出接口B的IP地址为IPB,标记值为1。Among them, the network structure includes client devices, DNS servers, TS transcoding servers, and ISP networks. It is assumed that the client devices belong to the telecommunications network, and the DNS server also belongs to the telecommunications network. There are two ISP networks of China Mobile and Telecom as TS transcoding servers. Provide services. Assume that the IP address of the outgoing interface A of the TS transcoding server on the telecommunications network is IPA, and the flag value is 0; the IP address of the outgoing interface B of the TS transcoding server on the mobile network is IPB, and the flag value is 1.

箭头1就是客户端设备向DNS服务器发送的TS转码服务器域名解析的请求报文;DNS服务器根据该请求报文分析TS转码服务器的域名对应的IP地址,于是将IPA和IPB都发送给客户端设备,如箭头2所示。客户端设备收到IPA和IPB后将其缓存,并随机挑选出IPB作为目的IP地址,并将自己的标记值0加入注册请求报文中,将所述报文发送至TS转码服务器,如箭头3所示。Arrow 1 is the request message for domain name resolution of the TS transcoding server sent by the client device to the DNS server; the DNS server analyzes the IP address corresponding to the domain name of the TS transcoding server based on the request message, and then sends both IPA and IPB to the client end device, as shown by arrow 2. After receiving IPA and IPB, the client device caches them, and randomly selects IPB as the destination IP address, and adds its own tag value 0 to the registration request message, and sends the message to the TS transcoding server, as shown in Arrow 3 shows.

TS转码服务器收到注册请求报文后判断报文中的标记值与自身IPB对应的标记值是否相同,由于客户端添加的标记值为0,而IPB对应的ISP网络的标记值为1,说明客户端和IPB不属于同一ISP网络,则生成一个到客户端设备的路由表项,其中的出接口为IPB对应的接口B,并为该表项添加临时标签。然后TS转码服务器会去查找与客户端设备属于同一ISP网络的出接口对应的IP地址(IPA),并将将IPA写入注册应答报文发给客户端设备,如箭头4所示。After receiving the registration request message, the TS transcoding server judges whether the tag value in the message is the same as the tag value corresponding to its own IPB. Since the tag value added by the client is 0, and the tag value of the ISP network corresponding to IPB is 1, It indicates that the client and IPB do not belong to the same ISP network, then generate a routing entry to the client device, in which the outbound interface is interface B corresponding to IPB, and add a temporary label to the entry. Then the TS transcoding server will search for the IP address (IPA) corresponding to the outgoing interface belonging to the same ISP network as the client device, and write the IPA into the registration response message and send it to the client device, as shown by arrow 4.

客户端设备收到该注册应答报文后,在自身DNS缓存中查找是否有IPA,由于客户端设备之前缓存过IPA,因此客户端设备以IPA为目的IP地址,向TS转码服务器发送保活报文,并在该保活报文中携带update标签(声明要将路由表项的出接口对应的IP地址更新为IPA),如箭头5所示。After the client device receives the registration response message, it searches for IPA in its own DNS cache. Since the client device has cached the IPA before, the client device uses the IPA as the destination IP address to send a keep-alive message to the TS transcoding server. message, and carries an update label in the keep-alive message (declaring that the IP address corresponding to the outgoing interface of the routing table entry is to be updated to IPA), as shown by arrow 5.

TS转码服务器收到保活报文后,会根据保活报文的update标签,将所述带有临时标签的路由表项删除,重新生成一个路由表项,其中以客户端设备的IP地址为目的地址,以IPA对应的接口A为出接口,此后,客户端设备以IPA向TS转码服务器发送带有hold标签的保活报文,保证链路畅通。After the TS transcoding server receives the keep-alive message, it will delete the routing table entry with the temporary label according to the update label of the keep-alive message, and regenerate a routing table entry, in which the IP address of the client device is the destination address, and the interface A corresponding to IPA is used as the outbound interface. After that, the client device sends a keep-alive message with the hold label to the TS transcoding server using IPA to ensure that the link is unblocked.

由此可见,本发明通过对不同ISP对应的IP地址添加不同标记值,使TS转码服务器的出接口对应的IP地址和客户端设备归属于同一个ISP网络,从而最大程度确保监控视频的图像质量,并且有效的提高了ISP网络带宽的利用率。It can be seen that, by adding different tag values to the IP addresses corresponding to different ISPs, the present invention makes the IP address corresponding to the outgoing interface of the TS transcoding server and the client device belong to the same ISP network, thereby ensuring the image of the surveillance video to the greatest extent Quality, and effectively improve the utilization of ISP network bandwidth.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the present invention. within the scope of protection.

Claims (8)

Translated fromChinese
1.一种单域名多IP的域名解析方法,其特征在于,所述方法包括:1. a domain name resolution method of multiple IPs of single domain name, is characterized in that, described method comprises:S1.客户端设备在DNS域名解析服务器解析出的TS转码服务器域名对应的多个IP地址中,按照预设规则选择第一IP地址作为向TS转码服务器发注册请求报文的目的IP地址,该注册请求报文中携带该客户端设备所属的ISP信息;S1. The client device selects the first IP address as the destination IP address for sending a registration request message to the TS transcoding server according to preset rules among the multiple IP addresses corresponding to the domain name of the TS transcoding server resolved by the DNS domain name resolution server , the registration request message carries the ISP information to which the client device belongs;S2.所述TS转码服务器从所述第一IP地址对应的第一接口收到所述注册请求报文时,判断所述第一IP地址所属ISP与所述客户端设备所属ISP是否相同,若是,则生成到该客户端设备的路由表项,所述路由表项中的出接口为所述第一接口;否则在所述生成的到该客户端设备的路由表项上添加临时标签,并查找与客户端设备所属的ISP相同的第二IP地址,将第二IP地址写入注册应答报文中返回至客户端设备;S2. When the TS transcoding server receives the registration request message from the first interface corresponding to the first IP address, it determines whether the ISP to which the first IP address belongs is the same as the ISP to which the client device belongs, If so, generate a routing table entry to the client device, where the outgoing interface in the routing table item is the first interface; otherwise, add a temporary label to the generated routing table entry to the client device, And search for the second IP address identical to the ISP to which the client device belongs, write the second IP address in the registration response message and return to the client device;S3.所述客户端设备判断所述注册应答报文中的第二IP地址是否存在于自身的DNS缓存中,若是,则以第二IP地址为目的IP地址向TS转码服务器发送保活报文,所述保活报文中携带update标签;S3. The client device judges whether the second IP address in the registration response message exists in its own DNS cache, and if so, sends a keep-alive message to the TS transcoding server with the second IP address as the destination IP address text, the keep-alive message carries an update tag;S4.若所述TS转码服务器解析出所述保活报文中携带有update标签,则生成替代带有临时标签的路由表项,所述路由表项中的出接口为所述第二IP地址对应的第二接口。S4. If the TS transcoding server parses out that the keep-alive message carries an update label, then generate a routing entry with a temporary label instead, and the outgoing interface in the routing entry is the second IP The second interface corresponding to the address.2.如权利要求1所述的方法,其特征在于,判断所述第一IP地址所属ISP与所述客户端设备所属ISP是否相同的方法包括:2. The method according to claim 1, wherein the method for judging whether the ISP to which the first IP address belongs is the same as the ISP to which the client device belongs comprises:所述客户端设备在发送的注册请求报文中加入自身所属ISP对应的标记值;The client device adds a tag value corresponding to the ISP to which it belongs in the registration request message sent;所述TS转码服务器根据所述注册请求报文中携带的标记值判断所述标记值与所述第一IP地址所属ISP对应的预设标记值是否相同,若是,则所述客户端设备与所述第一IP地址所属的ISP相同;否则不同。The TS transcoding server judges according to the tag value carried in the registration request message whether the tag value is the same as the preset tag value corresponding to the ISP to which the first IP address belongs, and if so, the client device and The ISPs to which the first IP addresses belong are the same; otherwise, they are different.3.如权利要求1所述的方法,其特征在于,所述步骤S3还包括:3. The method according to claim 1, wherein said step S3 further comprises:若客户端设备判断所述注册应答报文中的第二IP地址未存在于自身的DNS缓存中,则以第一IP地址为目的IP地址向TS转码服务器发送保活报文,该保活报文中携带hold标签;If the client device judges that the second IP address in the registration response message does not exist in its own DNS cache, it sends a keep-alive message to the TS transcoding server with the first IP address as the destination IP address. The message carries the hold tag;所述步骤S4还包括:The step S4 also includes:若TS转码服务器解析出的所述保活报文中携带有hold标签,则保留带有所述临时标签的路由表项。If the keep-alive message parsed by the TS transcoding server carries a hold label, then keep the routing table entry with the temporary label.4.如权利要求3所述的方法,其特征在于,所述步骤S3还包括:4. The method according to claim 3, wherein said step S3 further comprises:在所述客户端设备向TS转码服务器发送带有hold标签的保活报文后,所述客户端设备周期性的向DNS服务器发送TS转码服务器的域名解析请求报文;After the client device sends a keep-alive message with a hold label to the TS transcoding server, the client device periodically sends a domain name resolution request message of the TS transcoding server to the DNS server;若客户端设备发现DNS当前解析出的域名对应的IP地址包含所述第二IP地址,则以第二IP地址为目的IP地址向TS转码服务器发送保活报文,所述保活报文中携带update标签。If the client device finds that the IP address corresponding to the domain name currently resolved by the DNS contains the second IP address, it sends a keep-alive message to the TS transcoding server with the second IP address as the destination IP address, and the keep-alive message Carry the update tag in it.5.一种单域名多IP的域名解析系统,其特征在于,所述系统包括客户端设备和TS转码服务器,其中:5. A domain name resolution system for multiple IPs of a single domain name, characterized in that the system includes a client device and a TS transcoding server, wherein:客户端设备在DNS域名解析服务器解析出的TS转码服务器域名对应的多个IP地址中,按照预设规则选择第一IP地址作为向TS转码服务器发注册请求报文的目的IP地址,该注册请求报文中携带该客户端设备所属的ISP信息;Among the multiple IP addresses corresponding to the TS transcoding server domain name resolved by the DNS domain name resolution server, the client device selects the first IP address according to preset rules as the destination IP address for sending a registration request message to the TS transcoding server. The registration request message carries the ISP information to which the client device belongs;所述TS转码服务器从所述第一IP地址对应的第一接口收到所述注册请求报文时,判断所述第一IP地址所属ISP与所述客户端设备所属ISP是否相同,若是,则生成到该客户端设备的路由表项,所述路由表项中的出接口为所述第一接口;否则在所述生成的到该客户端设备的路由表项上添加临时标签,并查找与客户端设备所属的ISP相同的第二IP地址,将第二IP地址写入注册应答报文中返回至客户端设备;When the TS transcoding server receives the registration request message from the first interface corresponding to the first IP address, it determines whether the ISP to which the first IP address belongs is the same as the ISP to which the client device belongs, and if so, Then generate the routing table item to the client device, the outgoing interface in the routing table item is the first interface; otherwise, add a temporary label to the routing table item generated to the client device, and find A second IP address identical to the ISP to which the client device belongs, writing the second IP address into the registration response message and returning it to the client device;所述客户端设备判断所述注册应答报文中的第二IP地址是否存在于自身的DNS缓存中,若是,则以第二IP地址为目的IP地址向TS转码服务器发送保活报文,所述保活报文中携带update标签;The client device judges whether the second IP address in the registration response message exists in its own DNS cache, and if so, sends a keep-alive message to the TS transcoding server with the second IP address as the destination IP address, The keep-alive message carries an update tag;若所述TS转码服务器解析出所述保活报文中携带有update标签,则生成替代带有临时标签的路由表项,所述路由表项中的出接口为所述第二IP地址对应的第二接口。If the TS transcoding server parses out that the keep-alive message carries an update label, it generates a routing table entry that replaces the temporary label, and the outgoing interface in the routing table entry corresponds to the second IP address the second interface.6.如权利要求5所述的系统,其特征在于,判断所述第一IP地址所属ISP与所述客户端设备所属ISP是否相同的方法包括:6. The system according to claim 5, wherein the method for judging whether the ISP to which the first IP address belongs is the same as the ISP to which the client device belongs comprises:所述客户端设备在发送的注册请求报文中加入自身所属ISP对应的标记值;The client device adds a tag value corresponding to the ISP to which it belongs in the registration request message sent;所述TS转码服务器根据所述注册请求报文中携带的标记值判断所述标记值与所述第一IP地址所属ISP对应的预设标记值是否相同,若是,则所述客户端设备与所述第一IP地址所属的ISP相同;否则不同。The TS transcoding server judges according to the tag value carried in the registration request message whether the tag value is the same as the preset tag value corresponding to the ISP to which the first IP address belongs, and if so, the client device and The ISPs to which the first IP addresses belong are the same; otherwise, they are different.7.如权利要求5所述的系统,其特征在于,所述系统还用于:7. The system of claim 5, further comprising:若客户端设备判断所述注册应答报文中的第二IP地址未存在于自身的DNS缓存中,则以第一IP地址为目的IP地址向TS转码服务器发送保活报文,该保活报文中携带hold标签;If the client device judges that the second IP address in the registration response message does not exist in its own DNS cache, it sends a keep-alive message to the TS transcoding server with the first IP address as the destination IP address. The message carries the hold tag;若TS转码服务器解析出的所述保活报文中携带有hold标签,则保留带有所述临时标签的路由表项。If the keep-alive message parsed by the TS transcoding server carries a hold label, then keep the routing table entry with the temporary label.8.如权利要求7所述的系统,其特征在于,所述客户端设备还用于:8. The system according to claim 7, wherein the client device is further used for:在所述客户端设备向TS转码服务器发送带有hold标签的保活报文后,所述客户端设备周期性的向DNS服务器发送TS转码服务器的域名解析请求报文;After the client device sends a keep-alive message with a hold label to the TS transcoding server, the client device periodically sends a domain name resolution request message of the TS transcoding server to the DNS server;若客户端设备发现DNS当前解析出的域名对应的IP地址包含所述第二IP地址,则以第二IP地址为目的IP地址向TS转码服务器发送保活报文,所述保活报文中携带update标签。If the client device finds that the IP address corresponding to the domain name currently resolved by the DNS contains the second IP address, it sends a keep-alive message to the TS transcoding server with the second IP address as the destination IP address, and the keep-alive message Carry the update tag in it.
CN201410127377.3A2014-03-312014-03-31The many IP of a kind of single domain name domain name analytic method and systemActiveCN103916489B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201410127377.3ACN103916489B (en)2014-03-312014-03-31The many IP of a kind of single domain name domain name analytic method and system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201410127377.3ACN103916489B (en)2014-03-312014-03-31The many IP of a kind of single domain name domain name analytic method and system

Publications (2)

Publication NumberPublication Date
CN103916489A CN103916489A (en)2014-07-09
CN103916489Btrue CN103916489B (en)2017-08-15

Family

ID=51041885

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201410127377.3AActiveCN103916489B (en)2014-03-312014-03-31The many IP of a kind of single domain name domain name analytic method and system

Country Status (1)

CountryLink
CN (1)CN103916489B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106789889B (en)*2016-11-222020-05-05广州市诚毅科技软件开发有限公司Network monitoring method and device based on mesh structure
CN108173765B (en)*2017-12-282020-09-15新华三技术有限公司Message forwarding method and device
CN111464449B (en)*2019-01-182022-07-12广西民族大学Inter-domain flow localization exchange method
CN111970179B (en)*2020-07-242022-08-23下一代互联网关键技术和评测北京市工程研究中心有限公司Networking access method and system based on IPv6
CN117061410A (en)*2023-08-082023-11-14深圳市芯睿视科技有限公司IP address access method, internet of things platform, equipment, system and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101895589A (en)*2010-07-262010-11-24杭州华三通信技术有限公司Wide area network router and method for establishing routing table items therein
CN101909046A (en)*2009-11-172010-12-08新奥特(北京)视频技术有限公司Multimedia transcoding server and multimedia transcoding system
CN102299969A (en)*2011-09-162011-12-28北京新媒传信科技有限公司Web accessing method, layer seven switching equipment and service network
WO2012148335A1 (en)*2011-04-292012-11-01Telefonaktiebolaget Lm Ericsson (Publ)Automatic connection selection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101909046A (en)*2009-11-172010-12-08新奥特(北京)视频技术有限公司Multimedia transcoding server and multimedia transcoding system
CN101895589A (en)*2010-07-262010-11-24杭州华三通信技术有限公司Wide area network router and method for establishing routing table items therein
WO2012148335A1 (en)*2011-04-292012-11-01Telefonaktiebolaget Lm Ericsson (Publ)Automatic connection selection
CN102299969A (en)*2011-09-162011-12-28北京新媒传信科技有限公司Web accessing method, layer seven switching equipment and service network

Also Published As

Publication numberPublication date
CN103916489A (en)2014-07-09

Similar Documents

PublicationPublication DateTitle
CN103181148B (en)Traffic acceleration in mobile networks
US9210122B2 (en)System and method for inspecting domain name system flows in a network environment
US9185093B2 (en)System and method for correlating network information with subscriber information in a mobile network environment
US11451510B2 (en)Method and apparatus for processing service request
CN103457993B (en) Local caching device and method for providing content caching service
US9246939B2 (en)Preventing neighbor-discovery based denial of service attacks
US20160036848A1 (en)Intercloud security as a service
CN103916489B (en)The many IP of a kind of single domain name domain name analytic method and system
CN103051497B (en)Business Stream mirror method and mirroring device
CN106330849A (en) Method and device for preventing domain name hijacking
CN103931162B (en) Service processing method and network device
US9338657B2 (en)System and method for correlating security events with subscriber information in a mobile network environment
CN111756815A (en) 302 redirect method, redirect domain name generation method, domain name resolution method and system
CN105357212A (en)DNS end-to-end analysis method capable of ensuring safety and privacy
Cha et al.A mobility link service for ndn consumer mobility
CN104518968B (en)The method and Transparent proxy server of a kind of Message processing
US9438439B2 (en)Dynamic optimization of advertisement packets
US10880729B2 (en)Method and system for identifying a user over an internet protocol connection
CN102655474B (en)Method, device and system for identifying equipment-crossing traffic types
CN105282112A (en)Terminal and method for detecting security of data interaction in terminal
CN102075588B (en)Method and system for realizing network address translation (NAT) transversing and equipment
CN103595967B (en)The monitoring method and device of a kind of suitable multi-operator client access
CN105991465A (en)Service processing method, device and system for application
CN107612831B (en) A method and device for transmitting data message for accessing source station
JP6432947B2 (en) Data packet processing method, system, and device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp