CN104410572A - Routing list generating method and device of digital receiver - Google Patents

Routing list generating method and device of digital receiver Download PDF

Info

Publication number
CN104410572A
CN104410572A CN201410692688.4A CN201410692688A CN104410572A CN 104410572 A CN104410572 A CN 104410572A CN 201410692688 A CN201410692688 A CN 201410692688A CN 104410572 A CN104410572 A CN 104410572A
Authority
CN
China
Prior art keywords
server
address
default route
multimedia broadcasting
routing table
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.)
Granted
Application number
CN201410692688.4A
Other languages
Chinese (zh)
Other versions
CN104410572B (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.)
Hisense Broadband Multimedia Technology Co Ltd
Original Assignee
Hisense Broadband Multimedia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Broadband Multimedia Technology Co Ltd filed Critical Hisense Broadband Multimedia Technology Co Ltd
Priority to CN201410692688.4A priority Critical patent/CN104410572B/en
Publication of CN104410572A publication Critical patent/CN104410572A/en
Application granted granted Critical
Publication of CN104410572B publication Critical patent/CN104410572B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

An embodiment of the invention discloses a routing list generating method and device of a digital receiver and relates to the field of data processing. The routing list generating method and device is used for avoiding error or missing of the data packets caused by wrong selection of routes from multiple default routes during forwarding of data packets. In the embodiment, the routing list generating method includes acquiring N routing lists configured for the digital receiver by N servers connected with the digital receiver; storing one of N default routes acquired from the routing lists as a local default route; corresponding setting various network segments as target network address of N-1 default routes, and converting the rest N-1 default routes into static routes; configuring the routes and the obtained local default routes and the static routes for the digital receiver according to the acquired N servers and generating a local route list. Accordingly, the above problem is solved.

Description

A kind of route table generating method of digital reception device and device
Technical field
The present invention relates to data processing field, particularly relate to a kind of route table generating method and device of digital reception device.
Background technology
Current digital reception device can be connected to multimedia broadcasting information server by RJ45 interface, receives the broadcast TV program service provided for this digital reception device by broadcasting and TV internal network; But, along with digital reception device in the family universal, the demand of users to the function that digital reception device can realize also gets more and more, many users wish that digital reception device can be accessed Internet the Internet and can be provided broadcast TV program service again, but, because current broadcasting and TV internal network does not carry out the transformation accessing Internet network, therefore digital reception device can only be connected to the server of bandwidth operator by increase RJ45 interface, to receive the Internet network service provided for this digital reception device by bandwidth operator.That is, broadcast TV program service can be received again in order to Internet the Internet can be accessed, digital reception device needs to provide two RJ45 interfaces, one of them RJ45 interface connects the netting twine of registering one's residence that bandwidth operator provides, and another RJ45 interface connects the netting twine of registering one's residence that radio and TV operator provides.In prior art, bandwidth operator end-rack has established DHCP (Dynamic Host Configuration Protocol, DHCP) server, radio and TV operator's end has also set up Dynamic Host Configuration Protocol server, when digital reception device is connected respectively to the entrance netting twine of Liang Ge operator, Dynamic Host Configuration Protocol server can be held to get an IP address and routing table from radio and TV operator, and get an IP address and routing table from bandwidth operator end Dynamic Host Configuration Protocol server, according to routing policy, often open in routing table and all there is a default route (default route).That is, now digital reception device can obtain two default routes successively.
When digital reception device needs according to routing forwarding packet in the routing table that gets, if can not find in the routing table got and the object IP of this packet (Internet Protocol, the agreement interconnected between network) route of matching addresses, then according to routing policy, need this Packet Generation to the server pointed by default route.But because digital reception device now obtains two default routes, forward operation if still performed according to routing policy, digital reception device will certainly using the default route first got as the local default route used during forwarding data bag.Like this, if the default route that the Internet Server first got provides by digital reception device is as the local default route used during forwarding data bag, what the default route that then digital reception device likely should be provided by multimedia broadcasting information server was transmitted to that radio and TV operator holds the packet error of server is transmitted to Internet Server, partial data bag can be caused like this to arrive destination server and the packet loss caused, cause the business of digital reception device normally to use.
Summary of the invention
The embodiment of the present invention provides a kind of route table generating method of digital reception device, generate a local routing table be made up of local default route, static routing and some routes, when forwarding in order to avoid packet, because there are many default routes, the path of the selection mistake easily caused, thus cause forwarding data bag mistake or packet loss.
The embodiment of the present invention provides a kind of route table generating method of digital reception device, and the method comprises:
Obtaining the N number of server be connected with described digital reception device is N number of routing table that described digital reception device configures; Wherein, N is more than or equal to 2, and each server in N number of server is that described digital reception device configures a routing table, and each routing table comprises a default route and some routes;
In N bar default route in the N number of routing table got one is preserved as local default route; And according to the IP address of all the other N-1 server and subnet mask, obtain the network segment residing for a described N-1 server respectively, each network segment correspondence obtained is set to the destination network addresses of N-1 bar default route, all the other N-1 bar default routes are converted to static routing;
Be some routes in N number of routing table of described digital reception device configuration and the local default route obtained and static routing according to the N number of server got, generate local routing table.
The embodiment of the present invention also provides a kind of routing table generating device of digital reception device, and this device comprises:
Acquiring unit is N number of routing table that described digital reception device configures for obtaining the N number of server be connected with described digital reception device; Wherein, N is more than or equal to 2, and each server in N number of server is that described digital reception device configures a routing table, and each routing table comprises a default route and some routes;
Preserve and converting unit, in the N bar default route in the N number of routing table got is preserved as local default route; And according to the IP address of all the other N-1 server and subnet mask, obtain the network segment residing for a described N-1 server respectively, each network segment correspondence obtained is set to the destination network addresses of N-1 bar default route, all the other N-1 bar default routes are converted to static routing;
Generation unit, for according to N number of server of getting be the configuration of described digital reception device N number of routing table in some routes and the local default route obtained and static routing, generate local routing table.
As can be seen from technique scheme, obtaining the N number of server be connected with described digital reception device is N number of routing table that described digital reception device configures, and in the N bar default route in the N number of routing table got is preserved as local default route; And according to the IP address of all the other N-1 server and subnet mask, obtain the network segment residing for a described N-1 server respectively, each network segment correspondence obtained is set to the destination network addresses of N-1 bar default route, all the other N-1 bar default routes are converted to static routing; Be some routes in N number of routing table of described digital reception device configuration and the local default route obtained and static routing according to the N number of server got, generate local routing table; Like this, only there is in the embodiment of the present invention a local default route, and all the other N-1 bar default routes can be converted to static routing, when avoiding packet forwarding, because there are many default routes, the path of the selection mistake caused, thus cause forwarding data bag mistake or packet loss.That is, the embodiment of the present invention can specify any default route to be local default route in local routing table, simultaneously, all the other N-1 bar default routes are revised as the static routing pointing to the intended target network address, like this, a local default route and the static routing of N-1 bar is only there is in local routing table, thus tabling look-up in repeating process and can find correct route for each data to be forwarded bag, and then the path avoiding because there is the selection mistake that many default routes cause, thus the phenomenon of the forwarding data bag mistake caused or packet loss, and then improve packet forwarding success rate, greatly reduce the packet loss that packet forwards.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly introduced, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The schematic flow sheet of the route table generating method of the digital reception device that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the local routing table generative process that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of the data packet forwarding method that Fig. 3 provides for the embodiment of the present invention;
The structural representation of the routing table generating device of a kind of digital reception device that Fig. 4 provides for the embodiment of the present invention.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail, and obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention can be applied to the application scenarios that a digital reception device is connected with N number of server, wherein, N is more than or equal to 2, under this application scenarios, digital reception device can also receive the data to be forwarded bag sent by other-end equipment, and by the data to be forwarded Packet forwarding that receives to corresponding server end.The embodiment of the present invention can also be applied to the application scenarios that digital reception device is connected with a multimedia broadcasting information server and an Internet Server respectively, wherein, multimedia broadcasting information server can be the Dynamic Host Configuration Protocol server that radio and TV operator's end-rack is established, and Internet Server can be the Dynamic Host Configuration Protocol server that bandwidth operator end-rack is established.In embodiments of the present invention, digital reception device is transmitted to multimedia broadcasting information server by needing the packet being transmitted to multimedia broadcasting information server end, is transmitted to Internet Server by needing the packet being transmitted to Internet Server end.It should be noted that, in embodiments of the present invention, digital reception device can be Set Top Box, digital TV integrated machine, netcast equipment etc.
The schematic flow sheet that the routing table that Fig. 1 shows a kind of digital reception device that the embodiment of the present invention provides generates, as shown in Figure 1, the method can comprise:
Step 11: obtaining the N number of server be connected with digital reception device is N number of routing table that digital reception device configures; Wherein, N is more than or equal to 2, and each server in N number of server is that digital reception device configures a routing table, and each routing table comprises a default route and some routes.
Step 12: in the N bar default route in the N number of routing table got is preserved as local default route; And according to the IP address of all the other N-1 server and subnet mask, obtain the network segment residing for N-1 server respectively, each network segment correspondence obtained is set to the destination network addresses of N-1 bar default route, all the other N-1 bar default routes are converted to static routing.
Step 13: be some routes in N number of routing table of digital reception device configuration and the local default route obtained and static routing according to the N number of server got, generate local routing table.
Optionally, in above-mentioned steps 11 ~ step 12, N is specially 2, and wherein 2 servers are respectively multimedia broadcasting information server and Internet Server; Obtain the IP address of multimedia broadcasting information server and Internet Server respectively; The default route pointing to the network segment residing for multimedia broadcasting information server is preserved as local default route; And according to the IP address of Internet Server and subnet mask, obtain the network segment residing for Internet Server, the network segment residing for Internet Server is set to the destination network addresses of another default route, and another default route is converted to static routing.
Optionally, in above-mentioned steps 11 ~ step 12, N is specially 2, and wherein 2 servers are respectively multimedia broadcasting information server and Internet Server; Obtain the IP address of multimedia broadcasting information server and Internet Server respectively; The default route pointing to the network segment residing for Internet Server is preserved as local default route; And according to the IP address of multimedia broadcasting information server and subnet mask, obtain the network segment residing for multimedia broadcasting information server, the network segment residing for multimedia broadcasting information server is set to the destination network addresses of another default route, and another default route is converted to static routing.
Optionally, in above-mentioned steps, the IP address being in the default network segment is defined as the IP address of multimedia broadcasting information server in the IP address of get 2 servers; Another is defined as the IP address of Internet Server; Or, obtain the option identification field in the IP address of 2 servers respectively, according to the content that the option identification field got identifies, determine the IP address of multimedia broadcasting information server and Internet Server respectively; Or, send ICMP echo request message respectively to 2 servers; According to the response message for response IC MP echo request message received, determine the IP address of multimedia broadcasting information server and Internet Server respectively.
Optionally, after above-mentioned steps 13, the target ip address corresponding according to the instruction received and this instruction, generates packet to be sent;
The route of mating with the target ip address of packet is searched, if find, then by the destination network addresses forwarding data bag of this route in local routing table; Otherwise, by the destination network addresses forwarding data bag of the local default route in local routing table.
Below the embodiment of the present invention is described in detail.
The embodiment of the present invention at least can comprise the generation process of local routing table and the process of forwarding data bag.Fig. 2 shows the schematic flow sheet of the generation local routing table that the embodiment of the present invention provides, and Fig. 3 shows the schematic flow sheet of the forwarding data bag that the embodiment of the present invention provides.It should be noted that, subnet mask in embodiments of the present invention can, for the subnet mask preset, also can be the subnet mask got.
As shown in Figure 2, the process of generation local routing table that the embodiment of the present invention provides can comprise:
Step 21: digital reception device obtains the IP address of routing table that the multimedia broadcasting information server that is connected with this digital reception device provides and multimedia broadcasting information server end; Digital reception device also obtains the IP address of routing table that the Internet Server that is connected with this digital reception device provides and Internet Server.
During specific implementation, bandwidth operator end-rack has established Dynamic Host Configuration Protocol server, radio and TV operator's end has also set up Dynamic Host Configuration Protocol server, it is the IP address of this digital reception device distribution and the routing table of two servers that digital reception device can at least get two by server from Liang Ge operator end Dynamic Host Configuration Protocol server respectively, wherein, often open in routing table and at least comprise a default route and some routes.
For example, whole routes that digital reception device is got by two servers are as follows, wherein, Destination is destination network addresses, and Gateway is gateway, and Genmask is subnet mask, Flags is for marking (such as, U-route is movable, and G-route points to gateway, and H-target is a main frame), Metric is route distance, Ref is that route entry quotes number of times, and Use for this reason route is routed the number of times of software lookup, and Iface is the output interface that this route table items is corresponding.
Wherein, default 192.168.0.254 0.0.0.0 UG 000 eth0 is the default route of bandwidth operator (or user household wireless router); Default10.239.255.254 0.0.0.0 UG 203 00 eth1 is the default route of radio and TV operator.According to the routing policy of routing table, suppose VOD (the Video On Demand of Broadcasting Cable Network, video on demand techniques) the IP address of server do not comprise in destination network addresses in the routing table, the network packet that so digital reception device mails to VOD service device just can not find destination host, then just default 192.168.0.254 gateway processes is given Packet forwarding, the impact that the packet that should mail to multimedia broadcasting information server will be caused like this to be subject to bandwidth operator default route cannot arrive destination, the business such as the VOD program request of broadcasting and TV local area network (LAN) are caused normally to use.The embodiment of the present invention is transformed the routing table got by step 22 ~ step 26, thus can realize sending to the packet of multimedia broadcasting information server to be transmitted to multimedia broadcasting information server accurately by needing, to the packet sending to Internet Server be needed to be transmitted to Internet Server accurately, thus the packet loss phenomenon produced when accessing to multimedia broadcasting information server and Internet Server while of avoiding digital reception device.
Step 22: determine the IP address of this multimedia broadcasting information server and the IP address of this Internet Server respectively.
During specific implementation, the embodiment of the present invention at least can determine the IP address of this multimedia broadcasting information server and the IP address of this Internet Server by following three kinds of modes respectively.
First kind of way: the IP address being in the default network segment in the IP address of get two servers is defined as the IP address of this multimedia broadcasting information server by digital reception device; Another is defined as the IP address of this Internet Server.
For example, the make an appointment IP address of all 10.0.0.0 of being in sections of digital reception device and multimedia broadcasting information server is all the IP addresses belonging to broadcasting and TV inside, when the IP address, one, IP address being in 10.0.0.0 section in the IP address of get two servers is defined as the IP address of this multimedia broadcasting information server by digital reception device; Another is defined as the IP address of this Internet Server.It should be noted that, the default network segment that digital reception device and multimedia broadcasting information server are made an appointment can adjust according to actual conditions or reset.
The second way: digital reception device obtains the option identification field in the IP address of these two servers respectively, according to the content that the option identification field got identifies, determine the IP address of this multimedia broadcasting information server and the IP address of this Internet Server respectively.
During specific implementation, by adopting the mode of DHCP option60 field identification, the embodiment of the present invention can realize how judging that the IP address of two servers that digital reception device gets is IP addresses of which server.Concrete, the Dynamic Host Configuration Protocol server that radio and TV operator's end-rack is established adds option60 field in the network packet of digital reception device distributing IP address, after digital reception device gets the IP address with broadcasting and TV option60 field, its network segment is defined as the network segment at Dynamic Host Configuration Protocol server that radio and TV operator's end-rack is established.The embodiment of the present invention can determine the network segment at this IP address according to IP address of the prior art, subnet mask etc.
The third mode: digital reception device respectively to two servers IP address pointed by server send ICMP (Internet Control Message Protocol, Internet Control Message Protocol) echo request message, after receiving the response message for response IC MP echo request message, the IP address of the server sending response message is defined as the IP address of this multimedia broadcasting information server, the IP address of another server is defined as the IP address of this Internet Server.
During specific implementation, do not know that IP address is which operator distributes after digital reception device gets two IP addresses, digital reception device now selects arbitrarily an IP address from the IP address of taking, first then the default route of this IP network section correspondence is transformed into static routing by routing table backup, then sends an ICMP echo request message by the network interface that this IP address is corresponding and also report whether receive desired ICMP Echo Reply to multimedia broadcasting information server.If this IP address is exactly the IP address that broadcasting and TV are distributed to have response to illustrate, now routing table can with not needing to continue amendment.If find do not have ICMP to reply, now to recover the routing table backed up, and change another IP address, the default route of another IP network section correspondence is transformed into static routing, then sends an ICMP echo request message by the network interface that IP is corresponding and also report whether receive desired ICMP Echo Reply to multimedia broadcasting information server.Adopt the third mode, attempt substantially can ensureing for twice successfully to arrange static routing by normal condition, if twice trial can not be successful, the legitimate ip address do not taken broadcasting and TV and distribute is described, needs again to start digital reception device DHCP and attempt again obtaining IP address.
Which server that the embodiment of the present invention can adopt any one or multiple combination in above-mentioned three kinds of modes to determine that different IP addresses belongs to is that this digital reception device distributes, and the IP address of each server.
Step 23: the default route pointing to the network segment residing for described Internet Server is preserved as local default route.
During specific implementation, after digital reception device takes two routing tables, two default routes will be got, according to the IP address of the Internet Server determined in step 22, the default route pointing to the network segment residing for described Internet Server is preserved as local default route.Such as, following route can be defined as local default route and default route by the embodiment of the present invention, that is:
By step 23, the embodiment of the present invention specifies a unique local default route in two default routes, achieves the transformation to routing table.After execution of step 23, continue to perform step 24, continue to transform routing table.
Step 24: according to IP address and the subnet mask of described multimedia broadcasting information server, obtain the network segment residing for described multimedia broadcasting information server, the network segment residing for described multimedia broadcasting information server is set to the destination network addresses of another default route, and another default route described is converted to static routing.
During specific implementation, the embodiment of the present invention can determine the multimedia broadcasting information server place network segment according to the IP address, subnet mask etc. of multimedia broadcasting information server, and first IP address in the network segment of multimedia broadcasting information server place is the subnet address of this network segment.The embodiment of the present invention using the subnet address the determined destination network addresses as static routing, and presets the subnet mask as static routing of subnet mask, thus achieves with the addition of a static routing in local routing table.Such as, the embodiment of the present invention can add following static routing, that is:
Step 25: some the routes provided for this digital reception device according to two servers got, the local default route determined and static routing, generates local routing table.
During specific implementation, the embodiment of the present invention completes the transformation to routing table by above-mentioned steps 21 ~ step 25.For example, improved routing table can be as follows:
Visible, when the embodiment of the present invention adopts improved routing table to carry out packet forwarding, can according to existing route policy enforcement operations, as long as need the packet mailing to broadcasting and TV Intranet will hold on server to radio and TV operator by 10.239.255.254 routing forwarding, other network packet will be dealt on bandwidth operator end server by default 192.168.0.254 route.
As shown in Figure 3, based on the transformation of above-mentioned steps 21 ~ step 25 pair routing table, the process that the packet that the embodiment of the present invention provides forwards can comprise:
Step 31: digital reception device receives packet to be sent, obtains the target ip address of this packet.
During specific implementation, digital reception device receives the input of user, such as, user searches for or Netease with the Baidu that remote controller have selected on television set, so, this input action of user contains the information of similar domain name, by domain name resolution server to after this domain name mapping, obtain the IP address after resolving, the object IP address of namely user's access, then by domain name resolution server, this object IP address is returned to digital reception device, be encapsulated in packet to be sent by digital reception device, and send according to local routing table.
Step 32: digital reception device searches the route of mating with the target ip address of this packet in local routing table, if find, then performs step 33, otherwise performs step 34.
Step 33: forward this packet by the next-hop ip address of this route found.
Step 34: determine whether the target ip address of this packet is in this multimedia broadcasting information server place network segment, if so, then performs step 35, otherwise performs step 36.
Concrete, this multimedia broadcasting information server place network segment is determined according to the IP address of this multimedia broadcasting information server obtained in advance and default subnet mask.
Step 35: forward this packet by the next-hop ip address of the static routing in this local routing table.
Concrete, this static routing is that this digital reception device is according to pre-determining and the record be used in reference to this multimedia broadcasting information server added.
Step 36: forward this packet by the next-hop ip address of the local default route in this local routing table.
Concrete, this local default route is that this digital reception device is according to the record be used in reference to this Internet Server pre-determined out.
Visible, the embodiment of the present invention completes the forwarding of packet by performing step 31 ~ step 36, multimedia broadcasting information server can be transmitted to accurately for needing the packet being forwarded to multimedia broadcasting information server, Internet Server can be transmitted to accurately for needing the packet being transmitted to Internet Server, simultaneously, the present invention has also strictly observed existing route strategy, by means of only the transformation to routing table, avoid digital reception device simultaneously accessing to multimedia broadcasting information server and Internet Server time the packet loss phenomenon that produces.
As can be seen from technique scheme, obtaining the N number of server be connected with described digital reception device is N number of routing table that described digital reception device configures, and in the N bar default route in the N number of routing table got is preserved as local default route; And according to the IP address of all the other N-1 server and subnet mask, obtain the network segment residing for a described N-1 server respectively, each network segment correspondence obtained is set to the destination network addresses of N-1 bar default route, all the other N-1 bar default routes are converted to static routing; Be some routes in N number of routing table of described digital reception device configuration and the local default route obtained and static routing according to the N number of server got, generate local routing table; Like this, only there is in the embodiment of the present invention a local default route, and all the other N-1 bar default routes can be converted to static routing, when avoiding packet to forward, because there are many default routes, the path of the selection mistake easily caused, thus cause forwarding data bag mistake or packet loss.That is, the embodiment of the present invention can specify any default route to be local default route in local routing table, simultaneously, all the other N-1 bar default routes are revised as the static routing pointing to the intended target network address, like this, a local default route and the static routing of N-1 bar is only there is in local routing table, thus tabling look-up in repeating process and can find correct route for each data to be forwarded bag, and then improve packet forwarding success rate, greatly reduce the packet loss that packet forwards.
Based on identical technical scheme, the embodiment of the present invention also provides a kind of routing table generating device of the digital reception device for performing said method, Fig. 4 shows the structural representation of the routing table generating device of the digital reception device that the embodiment of the present invention provides, as shown in Figure 4, this device can comprise:
Acquiring unit 41 is N number of routing table that described digital reception device configures for obtaining the N number of server be connected with described digital reception device; Wherein, N is more than or equal to 2, and each server in N number of server is that described digital reception device configures a routing table, and each routing table comprises a default route and some routes;
Preserve and converting unit 42, in the N bar default route in the N number of routing table got is preserved as local default route; And according to the IP address of all the other N-1 server and subnet mask, obtain the network segment residing for a described N-1 server respectively, each network segment correspondence obtained is set to the destination network addresses of N-1 bar default route, all the other N-1 bar default routes are converted to static routing;
Generation unit, for according to N number of server of getting be the configuration of described digital reception device N number of routing table in some routes and the local default route obtained and static routing, generate local routing table.
Optionally, described N is specially 2, and wherein 2 servers are respectively multimedia broadcasting information server and Internet Server; Described preservation and converting unit 42 are specifically for the IP address obtaining described multimedia broadcasting information server and described Internet Server respectively; The default route pointing to the network segment residing for described multimedia broadcasting information server is preserved as local default route; And according to the IP address of described Internet Server and subnet mask, obtain the network segment residing for described Internet Server, the network segment residing for described Internet Server is set to the destination network addresses of another default route, and another default route described is converted to static routing.
Optionally, described N is specially 2, and wherein 2 servers are respectively multimedia broadcasting information server and Internet Server; Described preservation and converting unit 42 are specifically for the IP address obtaining described multimedia broadcasting information server and described Internet Server respectively; The default route pointing to the network segment residing for described Internet Server is preserved as local default route; And according to the IP address of described multimedia broadcasting information server and subnet mask, obtain the network segment residing for described multimedia broadcasting information server, the network segment residing for described multimedia broadcasting information server is set to the destination network addresses of another default route, and another default route described is converted to static routing.
Optionally, described preservation and converting unit 42 are specifically for the IP address IP address being in the default network segment in the IP address of get 2 servers being defined as described multimedia broadcasting information server; Another is defined as the IP address of described Internet Server; Or, obtain the option identification field in the IP address of described 2 servers respectively, according to the content that the option identification field got identifies, determine the IP address of described multimedia broadcasting information server and described Internet Server respectively; Or, send ICMP echo request message respectively to 2 servers; According to the response message for responding described ICMP echo request message received, determine the IP address of described multimedia broadcasting information server and described Internet Server respectively.
Optionally, this device also comprises: lookup unit, for the target ip address corresponding according to the instruction received and this instruction, generates packet to be sent; In local routing table, search the route of mating with the target ip address of described packet, if find, then forward described packet by the destination network addresses of this route; Otherwise, forward described packet by the destination network addresses of the local default route in described local routing table.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can be provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device, make the function that the instruction that performed by the processor of this computer or other programmable data processing device can be specified in a flow process in realization flow figure or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in a flow process of flow chart or a square frame of multiple flow process and/or block diagram or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. a route table generating method for digital reception device, it is characterized in that, the method comprises:
Obtaining the N number of server be connected with described digital reception device is N number of routing table that described digital reception device configures; Wherein, N is more than or equal to 2, and each server in N number of server is that described digital reception device configures a routing table, and each routing table comprises a default route and some routes;
In N bar default route in the N number of routing table got one is preserved as local default route; And according to the IP address of all the other N-1 server and subnet mask, obtain the network segment residing for a described N-1 server respectively, each network segment correspondence obtained is set to the destination network addresses of N-1 bar default route, all the other N-1 bar default routes are converted to static routing;
Be some routes in N number of routing table of described digital reception device configuration and the local default route obtained and static routing according to the N number of server got, generate local routing table.
2. the method for claim 1, is characterized in that, described N is specially 2, and wherein 2 servers are respectively multimedia broadcasting information server and Internet Server;
Described in N bar default route in the N number of routing table got to be preserved as local default route; And according to the IP address of all the other N-1 server and subnet mask, obtain the network segment residing for a described N-1 server respectively, each network segment correspondence obtained is set to the destination network addresses of N-1 bar default route, all the other N-1 bar default routes is converted to static routing, specifically comprises:
Obtain the IP address of described multimedia broadcasting information server and described Internet Server respectively;
The default route pointing to the network segment residing for described multimedia broadcasting information server is preserved as local default route; And according to the IP address of described Internet Server and subnet mask, obtain the network segment residing for described Internet Server, the network segment residing for described Internet Server is set to the destination network addresses of another default route, and another default route described is converted to static routing.
3. the method for claim 1, is characterized in that, described N is specially 2, and wherein 2 servers are respectively multimedia broadcasting information server and Internet Server;
Described in N bar default route in the N number of routing table got to be preserved as local default route; And according to the IP address of all the other N-1 server and subnet mask, obtain the network segment residing for a described N-1 server respectively, each network segment correspondence obtained is set to the destination network addresses of N-1 bar default route, all the other N-1 bar default routes is converted to static routing, specifically comprises:
Obtain the IP address of described multimedia broadcasting information server and described Internet Server respectively;
The default route pointing to the network segment residing for described Internet Server is preserved as local default route; And according to the IP address of described multimedia broadcasting information server and subnet mask, obtain the network segment residing for described multimedia broadcasting information server, the network segment residing for described multimedia broadcasting information server is set to the destination network addresses of another default route, and another default route described is converted to static routing.
4. method as claimed in claim 2 or claim 3, it is characterized in that, the described IP address obtaining described broadcast information services device and described Internet Server respectively, specifically comprises:
The IP address being in the default network segment in the IP address of get 2 servers is defined as the IP address of described multimedia broadcasting information server; Another is defined as the IP address of described Internet Server; Or
Obtain the option identification field in the IP address of described 2 servers respectively, according to the content that the option identification field got identifies, determine the IP address of described multimedia broadcasting information server and described Internet Server respectively; Or
ICMP echo request message is sent respectively to 2 servers; According to the response message for responding described ICMP echo request message received, determine the IP address of described multimedia broadcasting information server and described Internet Server respectively.
5. the method according to any one of claim 1-4, is characterized in that, after generation local routing table, comprises further:
The target ip address corresponding according to the instruction received and this instruction, generates packet to be sent;
In local routing table, search the route of mating with the target ip address of described packet, if find, then forward described packet by the destination network addresses of this route; Otherwise, forward described packet by the destination network addresses of the local default route in described local routing table.
6. a routing table generating device for digital reception device, is characterized in that, this device comprises:
Acquiring unit is N number of routing table that described digital reception device configures for obtaining the N number of server be connected with described digital reception device; Wherein, N is more than or equal to 2, and each server in N number of server is that described digital reception device configures a routing table, and each routing table comprises a default route and some routes;
Preserve and converting unit, in the N bar default route in the N number of routing table got is preserved as local default route; And according to the IP address of all the other N-1 server and subnet mask, obtain the network segment residing for a described N-1 server respectively, each network segment correspondence obtained is set to the destination network addresses of N-1 bar default route, all the other N-1 bar default routes are converted to static routing;
Generation unit, for according to N number of server of getting be the configuration of described digital reception device N number of routing table in some routes and the local default route obtained and static routing, generate local routing table.
7. device as claimed in claim 6, it is characterized in that, described N is specially 2, and wherein 2 servers are respectively multimedia broadcasting information server and Internet Server;
Described preservation and converting unit specifically for:
Obtain the IP address of described multimedia broadcasting information server and described Internet Server respectively;
The default route pointing to the network segment residing for described multimedia broadcasting information server is preserved as local default route; And according to the IP address of described Internet Server and subnet mask, obtain the network segment residing for described Internet Server, the network segment residing for described Internet Server is set to the destination network addresses of another default route, and another default route described is converted to static routing.
8. device as claimed in claim 6, it is characterized in that, described N is specially 2, and wherein 2 servers are respectively multimedia broadcasting information server and Internet Server;
Described preservation and converting unit specifically for:
Obtain the IP address of described multimedia broadcasting information server and described Internet Server respectively;
The default route pointing to the network segment residing for described Internet Server is preserved as local default route; And according to the IP address of described multimedia broadcasting information server and subnet mask, obtain the network segment residing for described multimedia broadcasting information server, the network segment residing for described multimedia broadcasting information server is set to the destination network addresses of another default route, and another default route described is converted to static routing.
9. as claimed in claim 7 or 8 device, is characterized in that, described preservation and converting unit specifically for:
The IP address being in the default network segment in the IP address of get 2 servers is defined as the IP address of described multimedia broadcasting information server; Another is defined as the IP address of described Internet Server; Or
Obtain the option identification field in the IP address of described 2 servers respectively, according to the content that the option identification field got identifies, determine the IP address of described multimedia broadcasting information server and described Internet Server respectively; Or
ICMP echo request message is sent respectively to 2 servers; According to the response message for responding described ICMP echo request message received, determine the IP address of described multimedia broadcasting information server and described Internet Server respectively.
10. the device according to any one of claim 6-9, is characterized in that, this device also comprises:
Lookup unit, for the target ip address corresponding according to the instruction received and this instruction, generates packet to be sent; In local routing table, search the route of mating with the target ip address of described packet, if find, then forward described packet by the destination network addresses of this route; Otherwise, forward described packet by the destination network addresses of the local default route in described local routing table.
CN201410692688.4A 2014-11-25 2014-11-25 The route table generating method and device of a kind of digital reception device Active CN104410572B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410692688.4A CN104410572B (en) 2014-11-25 2014-11-25 The route table generating method and device of a kind of digital reception device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410692688.4A CN104410572B (en) 2014-11-25 2014-11-25 The route table generating method and device of a kind of digital reception device

Publications (2)

Publication Number Publication Date
CN104410572A true CN104410572A (en) 2015-03-11
CN104410572B CN104410572B (en) 2017-08-18

Family

ID=52648170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410692688.4A Active CN104410572B (en) 2014-11-25 2014-11-25 The route table generating method and device of a kind of digital reception device

Country Status (1)

Country Link
CN (1) CN104410572B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850439A (en) * 2017-01-06 2017-06-13 青岛海信宽带多媒体技术有限公司 A kind of routing iinformation adding method and Set Top Box
CN108848409A (en) * 2016-06-03 2018-11-20 青岛海信宽带多媒体技术有限公司 The wireless routing module parameter setting method and set-top box of set-top box

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009740A (en) * 2007-01-17 2007-08-01 广州市高科通信技术股份有限公司 System and method for implementing simultaneous data and voice access of the dual PPPOE
CN101674221A (en) * 2008-09-09 2010-03-17 中国移动通信集团公司 Static routing generation method, method and device for implementing terminal routing
US20120182978A1 (en) * 2011-01-14 2012-07-19 Masputra Cahya A System and Method For Managing Routers and Communication Interfaces On A Computing Device
CN103051739A (en) * 2012-12-11 2013-04-17 中兴通讯股份有限公司 Network terminal and IP (Internet Protocol) address configuration method thereof
CN103152284A (en) * 2013-03-18 2013-06-12 神州数码网络(北京)有限公司 Method for balancing multipath output intelligent loads of router and router
CN103560959A (en) * 2013-10-25 2014-02-05 瑞斯康达科技发展股份有限公司 Method and device for selecting static route

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009740A (en) * 2007-01-17 2007-08-01 广州市高科通信技术股份有限公司 System and method for implementing simultaneous data and voice access of the dual PPPOE
CN101674221A (en) * 2008-09-09 2010-03-17 中国移动通信集团公司 Static routing generation method, method and device for implementing terminal routing
US20120182978A1 (en) * 2011-01-14 2012-07-19 Masputra Cahya A System and Method For Managing Routers and Communication Interfaces On A Computing Device
CN103051739A (en) * 2012-12-11 2013-04-17 中兴通讯股份有限公司 Network terminal and IP (Internet Protocol) address configuration method thereof
CN103152284A (en) * 2013-03-18 2013-06-12 神州数码网络(北京)有限公司 Method for balancing multipath output intelligent loads of router and router
CN103560959A (en) * 2013-10-25 2014-02-05 瑞斯康达科技发展股份有限公司 Method and device for selecting static route

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108848409A (en) * 2016-06-03 2018-11-20 青岛海信宽带多媒体技术有限公司 The wireless routing module parameter setting method and set-top box of set-top box
CN106850439A (en) * 2017-01-06 2017-06-13 青岛海信宽带多媒体技术有限公司 A kind of routing iinformation adding method and Set Top Box

Also Published As

Publication number Publication date
CN104410572B (en) 2017-08-18

Similar Documents

Publication Publication Date Title
US20150358232A1 (en) Packet Forwarding Method and VXLAN Gateway
US10148568B2 (en) Method for processing host route in virtual subnet, related device, and communications system
EP3026872B1 (en) Packet forwarding method, apparatus, and system
US11736411B2 (en) Method, device, and system for transmitting multicast packet
US10027496B2 (en) Method for distributing identifiers of multicast sources
CN106330718A (en) Multicast message forwarding method and device
US9438507B2 (en) Routing aggregation and prefix delegation
CN104468866A (en) Fast roaming method for multi-gateway terminal in wireless local area network
EP3113425B1 (en) Encapsulation method for service routing packet, service forwarding entity and control plane
US10075354B2 (en) Identification of servers by common wide area network addresses
CN105227466A (en) Communication processing method and device
WO2016115698A1 (en) Data packet forwarding method, apparatus and device
US20190140884A1 (en) Multicast Delay Diagnosis Method and Apparatus
CN109547350B (en) Route learning method and gateway equipment
US20120198091A1 (en) Network system, control apparatus and network apparatus
CN106507414B (en) Message forwarding method and device
CN106878481A (en) A kind of Internet protocol IP address acquisition methods, device and system
CN104410572A (en) Routing list generating method and device of digital receiver
CN103780494A (en) User information obtaining method and device
CN110958124B (en) Multicast group management method, device, readable storage medium and computer
CN108989173B (en) Message transmission method and device
US20190379633A1 (en) Outer Multicast IP Address Assignment Method and Apparatus
WO2015184979A1 (en) Methods and devices for processing packet, sending information, and receiving information
CN110636146B (en) User address allocation method and device
US8719344B2 (en) Flexible address provisioning across subnets and VRFs

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant