CN106453088A - Static routing configuration method and terminal - Google Patents
Static routing configuration method and terminal Download PDFInfo
- Publication number
- CN106453088A CN106453088A CN201610858970.4A CN201610858970A CN106453088A CN 106453088 A CN106453088 A CN 106453088A CN 201610858970 A CN201610858970 A CN 201610858970A CN 106453088 A CN106453088 A CN 106453088A
- Authority
- CN
- China
- Prior art keywords
- address
- hop
- group
- packeting
- forwarding
- 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
Links
- 230000003068 static effect Effects 0.000 title claims abstract description 79
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000004804 winding Methods 0.000 claims 2
- 230000008569 process Effects 0.000 abstract description 12
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000005457 optimization Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000012634 fragment Substances 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/54—Organization of routing tables
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/745—Address table lookup; Address filtering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
Abstract
The embodiment of the invention discloses a static routing configuration method and a terminal. The method comprises the steps of establishing a destination network segment group in a static routing entry; configuring at least one destination IP address and at least one sub-network mask corresponding to the destination IP address in the destination network segment group; correspondingly establishing a next hop group according to the destination IP address and the sub-network mask; configuring at least one next hop IP address in the next hop group; and if a forwarding message is received, forwarding the forwarding message according to the next hop IP address. According to the method and the terminal, the static routing is configured, the configuration process of a static routing table can be simplified in a mode of establishing the group, and in the message forwarding process, memory resources of the static routing table entry can be reduced.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of static routing collocation method and terminal.
Background technology
At present, traditional static routing collocation method needs to insert purpose IP ground in order successively in static routing table
Location, next-hop ip address and forwarding interface, when the message resource quantity for being forwarded is huge, the configuration in static routing table
Process can become extremely complex, while substantial amounts of static routing information can take sizable static routing list item resource.
Content of the invention
In view of this, the embodiment of the present invention provides a kind of static routing collocation method and terminal, achievable static routing
Configuration, the embodiment of the present invention can simplify the configuration process of static routing table in the way of creating group, in message repeating process
In, the memory source of static routing list item can be reduced.
A kind of static routing collocation method, methods described includes:
Destination network segment group is created in static route entry;
At least one purpose IP address and corresponding with the purpose IP address are configured in the destination network segment group
At least one subnet mask;
Next-hop group is accordingly created according to the purpose IP address and subnet mask;
At least one next-hop ip address is configured in the next-hop group;
If receive E-Packeting, according to the next-hop ip address, described E-Packeting is forwarded.
Specifically, if described receiving E-Packets, according to the next-hop ip address, described E-Packeting is carried out turning
Send out, specifically include:
E-Packet described in obtaining;
Corresponding next-hop group is determined according to the purpose IP address for E-Packeting;
E-Packet according to the next-hop ip address in the next-hop group is forwarded.
Specifically, if described receiving E-Packets, according to the next-hop ip address, described E-Packeting is carried out turning
Send out, also specifically include:
According to the corresponding establishment forwarding interface group of the next-hop ip address;
At least one forwarding interface is configured in the forwarding interface group;
If receive E-Packeting, according to the forwarding interface, described E-Packeting is forwarded.
Specifically, the forwarding interface includes virtual local area network interface or loopback interface.
Specifically, described E-Packeting in the way of hash is forwarded.
A kind of terminal, the terminal includes:
First creating unit, for creating destination network segment group in static route entry;
First dispensing unit, for configure in the destination network segment group at least one purpose IP address and with the mesh
Corresponding at least one subnet mask of IP address;
Second creating unit, for accordingly creating next-hop group according to the purpose IP address and subnet mask;
Second dispensing unit, for configuring at least one next-hop ip address in the next-hop group;
First retransmission unit, if E-Packeting for receiving, E-Packets described according to the next-hop ip address
Forwarded.
Specifically, first retransmission unit, specifically includes:
Acquiring unit, for obtaining described E-Packeting;
Matching unit, for determining corresponding next-hop group according to the purpose IP address for E-Packeting;
Second retransmission unit, for E-Packeting according to the next-hop ip address forwarding in the next-hop group.
Specifically, first retransmission unit, also specifically includes:
3rd creating unit, for the establishment forwarding interface group corresponding according to the next-hop ip address;
3rd dispensing unit, for configuring at least one forwarding interface in the forwarding interface group;
Described E-Packeting, if E-Packeting for receiving, is carried out by the 3rd retransmission unit according to the forwarding interface
Forward.
Specifically, the forwarding interface includes virtual local area network interface or loopback interface.
Specifically, described E-Packeting in the way of hash is forwarded.
In sum, the invention has the advantages that:The present invention passes through to create purpose net in static route entry
Fragment group, and according to destination network segment group creating next-hop group, next-hop ip address is configured in next-hop group, it is achieved that
The configuration of static routing, wherein, can simplify the configuration process of static routing table in the way of creating group, forwarded in message
Cheng Zhong, can reduce the memory source of static routing list item.
Description of the drawings
In order to be illustrated more clearly that embodiment of the present invention technical scheme, embodiment will be described below needed for be used
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area
For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of static routing collocation method provided in an embodiment of the present invention.
Fig. 2 is the configuration demonstration of static route entry described in a kind of static routing collocation method provided in an embodiment of the present invention
Process schematic.
Fig. 3 is the configuration demonstration of destination network segment group described in a kind of static routing collocation method provided in an embodiment of the present invention
Process schematic.
Fig. 4 is that the configuration of next-hop group described in a kind of static routing collocation method provided in an embodiment of the present invention was demonstrated
Journey schematic diagram.
Fig. 5 is another schematic flow sheet in a kind of static routing collocation method provided in an embodiment of the present invention.
Fig. 6 is another schematic flow sheet in a kind of static routing collocation method provided in an embodiment of the present invention.
Fig. 7 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention.
Fig. 8 is a kind of another schematic block diagram of terminal provided in an embodiment of the present invention.
Fig. 9 is a kind of another schematic block diagram of terminal provided in an embodiment of the present invention.
Figure 10 is a kind of structure composition schematic diagram of another embodiment of terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the present invention, rather than whole embodiments.Based on this
Embodiment in bright, the every other enforcement obtained under the premise of creative work is not made by those of ordinary skill in the art
Example, belongs to the scope of protection of the invention.
It should be appreciated that when using in this specification and in the appended claims, term " including " and "comprising" are indicated
Described feature, entirety, step, operation, the presence of element and/or component, but it is not precluded from one or more of the other feature, whole
Presence or interpolation that body, step, operation, element, component and/or its are gathered.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on
Other situations are hereafter clearly indicated, and otherwise " one " of singulative, " one " and " being somebody's turn to do " is intended to include plural form.
As shown in figure 1, a kind of schematic flow sheet of the static routing collocation method for providing for the embodiment of the present invention one.The party
Method includes step S101~S105.
S101, creates destination network segment group in static route entry.
Specifically, in embodiments of the present invention, a static route entry belongs to a static routing table, that is to say, that
A plurality of static route entry constitutes a static routing table, when needing to carry out message forwarding, according to the purpose IP address of message
, if there is the purpose IP address phase of static route entry and message in each static route entry in matched static routing table
Join, then E-Packeted by the forwarding logic of the static route entry;Preferably, in a static route entry, one is created
Destination network segment group, each destination network segment group is made up of one or more destination network segment.For example, with reference to Fig. 2, on static road
It is made up of four destination network segment B1-B4 by destination network segment group B, destination network segment group B in entry A, is created.
It should be noted that in embodiments of the present invention, in each static route entry, destination network segment has been correspondingly arranged
The establishment mode of group, and each destination network segment group is respectively provided with the function of adding multiple destination network segments.Illustrate, current
Using each static route entry is shown in the page, if select a wherein static route entry, whether pop-up display
The first order menu of destination network segment group is created, if click on being, the first configuration menu of pop-up display.For the mesh to being created
Network segment group configured, need to insert the configuration information of current destination network segment in configuration menu, the configuration information can be wrapped
Include purpose IP address and subnet mask.
S102, configure in destination network segment group at least one purpose IP address and corresponding with purpose IP address at least
One subnet mask.
Specifically, a static route entry is typically made up of three parts, including purpose IP address, subnet mask, gateway,
Wherein, gateway is also referred to as next-hop, in embodiments of the present invention, it should be understood that ground, is configured with one in a destination network segment group
Or multiple purpose IP address, set subnet mask according to the purpose IP address that configured, by the purpose IP address for being configured and
Corresponding subnet mask constitutes the destination network segment, is just made up of multiple purpose IP address and corresponding multiple subnet masks multiple
Destination network segment.For example, with reference to Fig. 3, by purpose IP address a1 and subnet mask b1 constitute destination network segment B1, purpose IP address a2 and
Subnet mask b2 composition destination network segment B2, purpose IP address a3 and subnet mask b3 composition destination network segment B3, purpose IP address a4
Constitute destination network segment B4 with subnet mask b4.
S103, accordingly creates next-hop group according to purpose IP address and subnet mask.
Specifically, if it is desired to realize effectively forwarding, it is necessary to arrange gateway in static route entry, that is, next
Jump.Therefore, after configuration purpose network segment group, set according to the purpose IP address in the destination network segment for being configured and subnet mask
Fixed corresponding next-hop ip address, in embodiments of the present invention, can create next-hop group, by multiple according to needs are forwarded
Next-hop ip address constitutes the next-hop group.
It should be noted that in embodiments of the present invention, next-hop group has been correspondingly arranged in each destination network segment
Establishment mode, and each next-hop group is provided with the function of adding multiple next-hop ip address.Illustrate, make currently
With each destination network segment is shown in the page, if select one of destination network segment, whether pop-up display creates next-hop
The Level-2 menu of group, if click on be, the second configuration menu of pop-up display.In order to the next-hop group to being created is carried out
Configuration, needs to insert the configuration information of current next-hop group in the second configuration menu, and the configuration information includes one or many
Individual next-hop ip address.
S104, configures at least one next-hop ip address in next-hop group.
Specifically, in traditional static routing configuration, a static routing list item only corresponds to a next-hop ip address,
Message data can only specify a forwarding port, it is impossible to select multichannel forward-path to E-Packet according to actual needs;The present invention
Embodiment is by way of arranging next-hop group, and the multichannel for realizing message is forwarded, such as when message needs to carry out multichannel forwarding,
Multichannel forward-path can be realized according to the multiple next-hop ip address in next-hop group to E-Packet.Referring to Fig. 4, by purpose
Network segment B1 accordingly creates next-hop group C1, and the next-hop ip address for configuring in the next-hop group C1 has:Next
Jump IP1, next-hop IP 2, next-hop IP 3 etc., the phase for creating rule and destination network segment B1 of other destination network segment B2-B4
Same, will not be described in detail herein.
Described E-Packeting, if receive E-Packeting, is forwarded by S105 according to next-hop ip address.
Specifically, described E-Packet, can be need in network forward any message, it should be noted that entering
During row routing forwarding, E-Packet can be forwarded in the way of hash, accurately says, when needs forwarding message correspond to many
During individual next-hop ip address, during routing forwarding, message can select different paths to be forwarded in the way of hash,
So as to flow is distributed on different links, to reach the purpose of load balancing.
Above-described embodiment that the present invention is provided passes through to create destination network segment group in static route entry, and according to purpose
Network segment group creating next-hop group, configures next-hop ip address, it is achieved that the configuration of static routing in next-hop group, its
In, the configuration process of static routing table can be simplified in the way of creating group, in message repeating process, static state can be reduced
The memory source of route table items.
Further, in embodiments of the present invention, as shown in figure 5, in step S105, if receive E-Packeting, according to
Described E-Packeting is forwarded by next-hop ip address, specifically includes step S201~S203.
S201, obtain described in E-Packet.
S202, determines corresponding next-hop group according to the purpose IP address for E-Packeting.
Specifically, by taking IP packet as an example, after an IP packet is come in, router receives the IP packet, root
Search in local static routing table and mate in all purposes network segment group according to the purpose IP address for carrying in IP packet
Destination network segment, matching if finding, determining corresponding next-hop group according to the destination network segment.For example, IP packet
Purpose IP address find the destination network segment B1 for matching because the purpose of the purpose IP address of IP packet and destination network segment B1
IP address a1 matches, then determines next-hop group C1 corresponding thereto by destination network segment B1.
S203, E-Packets according to the next-hop ip address in next-hop group is forwarded.
Specifically, when a next-hop ip address is only set in next-hop group, then according to the next-hop ip address by IP
Data forward a packet to destination interface;When multiple next-hop ip address are set with next-hop group, in the mistake that IP packet is forwarded
Cheng Zhong, can select different next-hop ip address that IP data are forwarded a packet to different destination interfaces in the way of hash.For example,
The next-hop ip address of next-hop group C1 configuration has:Next-hop IP 1, next-hop IP 2, next-hop IP 3, router can be with hash
Mode the IP data are forwarded a packet to destination interface corresponding with next-hop IP 1, next-hop IP 2, next-hop IP 3.
Further, in embodiments of the present invention, as shown in fig. 6, in step S105, if receive E-Packeting, root
According to next-hop ip address, described E-Packeting is forwarded, also specifically included step S301~S303.
S301, according to the corresponding establishment forwarding interface group of next-hop ip address.
Specifically, in actual use, all of destination network segment all must clear and definite next-hop ip address.E-Packeting
When, matching destination network segment in destination network segment group, the only purpose is searched according to the purpose IP address of message first
The network segment specifies next-hop ip address, and link layer could find corresponding link layer address by next-hop ip address, then press
E-Packet according to the address;When E-Packeting, it is possible to specify forwarding interface, it is also possible to do not specify forwarding interface, for not referring to
Determine forwarding interface, then router can automatically select optimal path and be forwarded, for specified forwarding interface, the embodiment of the present invention is led to
The specified forwarding for creating that forwarding interface group realizes message is crossed, multiple forwarding interfaces can be configured in the forwarding interface group, according to
The type difference of forwarding interface, the mode which is arranged is also different.For example, for non-broadcast multipath access network interface, such as with
Too network interface, VLAN (Virtual Local Area Network, VLAN) interface, loopback interface etc., are forwarding report
Wen Shi, needs to set up secondary route, i.e. IP address to the mapping of link layer address in link layer, carries out in this case configuring quiet
During state route, next-hop ip address and specified interface need to be configured simultaneously.
S302, configures at least one forwarding interface in forwarding interface group.
Specifically, the forwarding interface includes virtual local area network interface or loopback interface, belongs to non-broadcasting for such
Multiple-access network interface, secondary by while configure next-hop ip address and forwarding interface, preventing from setting up in link layer
During route, lead to not confirm because there are multiple next-hops the situation of next-hop.
Described E-Packeting, if receive E-Packeting, is forwarded by S303 according to forwarding interface.
Specifically, described E-Packet, can be need in network forward any message, it should be noted that entering
During row routing forwarding, E-Packet can be forwarded in the way of hash, accurately says, when needs forwarding message correspond to many
During individual forwarding interface, during routing forwarding, message can select different paths to be forwarded in the way of hash, i.e.
Message can select different forwarding interfaces to be forwarded in the way of hash such that it is able to which flow is distributed to different links
On, to reach the purpose of load balancing;In actual applications, by configuring next-hop ip address and forwarding interface, message is carried out
Forward, the optimization performance of router can be lifted.
Above-described embodiment that the present invention is provided is forwarded to message by configuring next-hop ip address and forwarding interface, with
And select different forwarding interfaces to be forwarded in the way of hash, can lift the optimization performance of router, and can be by
Flow is distributed on different links, to reach the purpose of load balancing.
As shown in fig. 7, corresponding to a kind of above-mentioned static routing collocation method, the embodiment of the present invention also proposes a kind of terminal, should
Terminal 100 includes:First creating unit 10, the first dispensing unit 20, the second creating unit 30, the second dispensing unit 40, first
Retransmission unit 50.
Wherein the first creating unit 10, for creating destination network segment group in static route entry.Specifically, at this
In bright embodiment, a static route entry belongs to a static routing table, that is to say, that a plurality of static route entry composition one
Static routing table is opened, when needing to carry out message forwarding, according to each in the purpose IP address matched static routing table of message
Bar static route entry, if what the purpose IP address that there is static route entry and message matched, by the static routing bar
Purpose forwarding logic E-Packets;Preferably, a destination network segment group, each purpose are created in a static route entry
Network segment group is made up of one or more destination network segment.
It should be noted that in embodiments of the present invention, in each static route entry, destination network segment has been correspondingly arranged
The establishment mode of group, and each destination network segment group is respectively provided with the function of adding multiple destination network segments.Illustrate, current
Using each static route entry is shown in the page, if select a wherein static route entry, whether pop-up display
The first order menu of destination network segment group is created, if click on being, the first configuration menu of pop-up display.For the mesh to being created
Network segment group configured, need to insert the configuration information of current destination network segment in configuration menu, the configuration information can be wrapped
Include purpose IP address and subnet mask.
First dispensing unit 20, for configure in the destination network segment group at least one purpose IP address and with described
At least one corresponding subnet mask of purpose IP address.Specifically, a static route entry is typically made up of three parts, bag
Purpose IP address, subnet mask, gateway is included, wherein, gateway is also referred to as next-hop, in embodiments of the present invention, it should be understood that ground, one
One or more purpose IP address being configured in individual destination network segment group, subnet is set according to the purpose IP address for being configured and cover
Code, constitutes the destination network segment by the purpose IP address for being configured and corresponding subnet mask, by multiple purpose IP address and right
The multiple subnet masks that answers just constitute multiple destination network segments.
Second creating unit 30, for accordingly creating next-hop group according to the purpose IP address and subnet mask
Group.Specifically, if it is desired to realize effectively forwarding, it is necessary to arrange gateway, that is, next-hop in static route entry.Cause
This, after configuration purpose network segment group, it is right to be set according to the purpose IP address in the destination network segment for being configured and subnet mask
The next-hop ip address that answers, in embodiments of the present invention, can create next-hop group, by multiple next according to needs are forwarded
Hop IP address constitutes the next-hop group.
It should be noted that in embodiments of the present invention, next-hop group has been correspondingly arranged in each destination network segment
Establishment mode, and each next-hop group is provided with the function of adding multiple next-hop ip address.Illustrate, make currently
With each destination network segment is shown in the page, if select one of destination network segment, whether pop-up display creates next-hop
The Level-2 menu of group, if click on be, the second configuration menu of pop-up display.In order to the next-hop group to being created is carried out
Configuration, needs to insert the configuration information of current next-hop group in the second configuration menu, and the configuration information includes one or many
Individual next-hop ip address.
Second dispensing unit 40, for configuring at least one next-hop ip address in the next-hop group.Specifically,
In traditional static routing configuration, a static routing list item only corresponds to a next-hop ip address, and message data can only refer to
Fixed forwarding port, it is impossible to select multichannel forward-path to E-Packet according to actual needs;The embodiment of the present invention is by arranging
The mode of next-hop group, the multichannel for realizing message is forwarded, such as when message needs to carry out multichannel forwarding, can be according to next-hop
Multiple next-hop ip address in group are realized multichannel forward-path and are E-Packeted.
Described forwarding, if E-Packeting for receiving, is reported by the first retransmission unit 50 according to the next-hop ip address
Text is forwarded.Specifically, described E-Packet, can be need in network forward any message, it should be noted that
When routing forwarding is carried out, E-Packet and can be forwarded in the way of hash, accurately say, when the message for needing to forward is corresponded to
During multiple next-hop ip address, during routing forwarding, message can select different paths to carry out turning in the way of hash
Send out such that it is able to flow is distributed on different links, to reach the purpose of load balancing.
Further, as shown in figure 8, first retransmission unit 50, specifically includes:
Acquiring unit 501, for obtaining described E-Packeting.
Matching unit 502, for determining corresponding next-hop group according to the purpose IP address for E-Packeting.Tool
Body, by taking IP packet as an example, after an IP packet is come in, router receives the IP packet, according to IP packet
The purpose IP address of middle carrying are searched in local static routing table and mate the destination network segment in all purposes network segment group, if
Find and match, then corresponding next-hop group is determined according to the destination network segment.For example, the purpose IP address of IP packet
The destination network segment B1 for matching is found, because the purpose IP address a1 phase of the purpose IP address of IP packet and destination network segment B1
Join, then next-hop group C1 corresponding thereto is determined by destination network segment B1.
Second retransmission unit 503, for forwarding described forwarding to report according to the next-hop ip address in the next-hop group
Text.Specifically, when a next-hop ip address is only set in next-hop group, then according to the next-hop ip address by IP packet
It is forwarded to destination interface;When multiple next-hop ip address are set with next-hop group, during IP packet is forwarded, meeting
In the way of hash, select different next-hop ip address that IP data are forwarded a packet to different destination interfaces.For example, next-hop
The next-hop ip address of group C1 configuration has:Next-hop IP 1, next-hop IP 2, next-hop IP 3, router can be in the way of hash
The IP data are forwarded a packet to destination interface corresponding with next-hop IP 1, next-hop IP 2, next-hop IP 3.
Further, as shown in figure 9, first retransmission unit 50, also specifically includes:
3rd creating unit 504, for the establishment forwarding interface group corresponding according to the next-hop ip address.Specifically
, in actual use, all of destination network segment all must clear and definite next-hop ip address.When E-Packeting, first according to report
The purpose IP address of text search matching destination network segment in destination network segment group, and the only destination network segment specifies next
Hop IP address, link layer could find corresponding link layer address by next-hop ip address, then according to the address forwards report
Text;When E-Packeting, it is possible to specify forwarding interface, it is also possible to do not specify forwarding interface, for not specifying forwarding interface, then road
Optimal path can be automatically selected by device to be forwarded, for specified forwarding interface, the embodiment of the present invention is by creating forwarding interface
Group realizes the specified forwarding of message, can configure multiple forwarding interfaces, according to the type of forwarding interface in the forwarding interface group
Difference, the mode which is arranged is also different.For example, for non-broadcast multipath access network interface, such as Ethernet interface, VLAN
(Virtual Local Area Network, VLAN) interface, loopback interface etc., when E-Packeting, needs in chain
Road floor sets up secondary route, i.e. IP address to the mapping of link layer address, when carrying out configuration static routing in this case, needs same
When configuration next-hop ip address and specified interface.
3rd dispensing unit 505, for configuring at least one forwarding interface in the forwarding interface group.Specifically, institute
Stating forwarding interface includes virtual local area network interface or loopback interface, belongs to non-broadcast multipath access network interface for such,
By while configuration next-hop ip address and forwarding interface, can prevent when link layer sets up secondary route, because appearance is multiple
Next-hop and lead to not confirm next-hop situation.
3rd retransmission unit 506, if E-Packeting for receiving, according to the forwarding interface by described E-Packet into
Row is forwarded.Specifically, described E-Packet, can be need in network forward any message, it should be noted that carrying out
During routing forwarding, E-Packet can be forwarded in the way of hash, accurately says, when needs forwarding message correspond to multiple
During forwarding interface, during routing forwarding, message can select different paths to be forwarded in the way of hash, i.e. report
Text can select different forwarding interfaces to be forwarded in the way of hash such that it is able to which flow is distributed on different links,
To reach the purpose of load balancing;In actual applications, by configuring next-hop ip address and forwarding interface, message is carried out turning
Send out, the optimization performance of router can be lifted.
Figure 10 is the structure composition schematic diagram of another embodiment of the terminal of the present invention.As shown in Figure 10, which may include:Defeated
Enter device 101, output device 102, R-T unit 103, memorizer 104 and processor 105, wherein:
The input equipment 101, for receiving the input data of outside access control device.In implementing, the present invention
Input equipment 101 described in embodiment may include keyboard, mouse, light device of electrical input, acoustic input device, touch input dress
Put, scanner etc..
The output device 102, for the output data of external output access control device.In implementing, the present invention
Output device 102 described in embodiment may include display, speaker, printer etc..
The R-T unit 103, for sending data by communication link to other equipment or receiving from other equipment
Data.In implementing, the R-T unit 103 of the embodiment of the present invention may include the transceiving devices such as radio-frequency antenna.
The memorizer 104, for routine data of the storage with various functions.Memorizer 104 in the embodiment of the present invention
The data of storage include the routine data that can call and run.In implementing, the memorizer 104 of the embodiment of the present invention can be
System storage, such as, volatile (such as RAM), non-volatile (such as ROM, flash memory etc.), or both combinations.
In implementing, the memorizer 104 of the embodiment of the present invention can also be the external memory storage outside system, such as, disk, light
Disk, tape etc..
The processor 105, for calling the routine data for storing in the memorizer 104, and executes following operation:
Destination network segment group is created in static route entry;At least one purpose is configured in the destination network segment group
IP address and at least one subnet mask corresponding with the purpose IP address;According to the purpose IP address and subnet mask
Next-hop group is accordingly created;At least one next-hop ip address is configured in the next-hop group;If receive turning
Transmit messages text, according to the next-hop ip address, described E-Packeting is forwarded.
Further, the processor 105 also executes following operation:
E-Packet described in obtaining;Corresponding next-hop group is determined according to the purpose IP address for E-Packeting;
E-Packet according to the next-hop ip address in the next-hop group is forwarded.
Further, the processor 105 also executes following operation:
According to the corresponding establishment forwarding interface group of the next-hop ip address;Configure at least in the forwarding interface group
One forwarding interface;If receive E-Packeting, according to the forwarding interface, described E-Packeting is forwarded.
Unit in all embodiments of the invention can pass through universal integrated circuit, such as CPU (Central
Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated
Circuit, special IC) realizing.
Step in present invention method can carry out order adjustment according to actual needs, merge and delete.
Unit in embodiment of the present invention terminal can be merged according to actual needs, divides and be deleted.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, it is permissible
Instruct related hardware to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any
Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced
Change, these modifications or replacement should all be included within the scope of the present invention.Therefore, protection scope of the present invention should be with right
The protection domain of requirement is defined.
Claims (10)
1. a kind of static routing collocation method, it is characterised in that methods described includes:
Destination network segment group is created in static route entry;
Configure in the destination network segment group at least one purpose IP address and corresponding with the purpose IP address at least
One subnet mask;
Next-hop group is accordingly created according to the purpose IP address and subnet mask;
At least one next-hop ip address is configured in the next-hop group;
If receive E-Packeting, according to the next-hop ip address, described E-Packeting is forwarded.
2. the method for claim 1, it is characterised in that if described receiving E-Packets, according to the next-hop IP
Described E-Packeting is forwarded by address, is specifically included:
E-Packet described in obtaining;
Corresponding next-hop group is determined according to the purpose IP address for E-Packeting;
E-Packet according to the next-hop ip address in the next-hop group is forwarded.
3. the method for claim 1, it is characterised in that if described receiving E-Packets, according to the next-hop IP
Described E-Packeting is forwarded by address, is also specifically included:
According to the corresponding establishment forwarding interface group of the next-hop ip address;
At least one forwarding interface is configured in the forwarding interface group;
If receive E-Packeting, according to the forwarding interface, described E-Packeting is forwarded.
4. method as claimed in claim 3, it is characterised in that the forwarding interface includes virtual local area network interface or winding
Interface.
5. the method as described in any one of claim 1-4, it is characterised in that described E-Packeting in the way of hash carries out turning
Send out.
6. a kind of terminal, it is characterised in that the terminal includes:
First creating unit, for creating destination network segment group in static route entry;
First dispensing unit, for configure in the destination network segment group at least one purpose IP address and with purpose IP
At least one corresponding subnet mask of address;
Second creating unit, for accordingly creating next-hop group according to the purpose IP address and subnet mask;
Second dispensing unit, for configuring at least one next-hop ip address in the next-hop group;
Described E-Packeting, if E-Packeting for receiving, is carried out by the first retransmission unit according to the next-hop ip address
Forward.
7. terminal as claimed in claim 6, it is characterised in that first retransmission unit, specifically includes:
Acquiring unit, for obtaining described E-Packeting;
Matching unit, for determining corresponding next-hop group according to the purpose IP address for E-Packeting;
Second retransmission unit, for E-Packeting according to the next-hop ip address forwarding in the next-hop group.
8. terminal as claimed in claim 6, it is characterised in that first retransmission unit, also specifically includes:
3rd creating unit, for the establishment forwarding interface group corresponding according to the next-hop ip address;
3rd dispensing unit, for configuring at least one forwarding interface in the forwarding interface group;
Described E-Packeting, if E-Packeting for receiving, is forwarded by the 3rd retransmission unit according to the forwarding interface.
9. terminal as claimed in claim 8, it is characterised in that the forwarding interface includes virtual local area network interface or winding
Interface.
10. the terminal as described in any one of claim 6-8, it is characterised in that described E-Packeting in the way of hash is carried out
Forward.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610858970.4A CN106453088B (en) | 2016-09-28 | 2016-09-28 | A kind of static routing configuration method and terminal |
PCT/CN2017/076519 WO2018058903A1 (en) | 2016-09-28 | 2017-03-14 | Static route configuration method, terminal and device, and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610858970.4A CN106453088B (en) | 2016-09-28 | 2016-09-28 | A kind of static routing configuration method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106453088A true CN106453088A (en) | 2017-02-22 |
CN106453088B CN106453088B (en) | 2019-06-25 |
Family
ID=58170664
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610858970.4A Active CN106453088B (en) | 2016-09-28 | 2016-09-28 | A kind of static routing configuration method and terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106453088B (en) |
WO (1) | WO2018058903A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018058903A1 (en) * | 2016-09-28 | 2018-04-05 | 平安科技(深圳)有限公司 | Static route configuration method, terminal and device, and computer-readable storage medium |
US20210329069A1 (en) * | 2020-04-20 | 2021-10-21 | Cisco Technology, Inc. | Distributed resilient load-balancing for multipath transport protocols |
CN114785725A (en) * | 2022-01-06 | 2022-07-22 | 新华三技术有限公司 | Micro-segmentation strategy routing learning method, message forwarding method and device |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112272145B (en) * | 2020-10-26 | 2022-05-24 | 新华三信息安全技术有限公司 | Message processing method, device, equipment and machine readable storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6721800B1 (en) * | 2000-04-10 | 2004-04-13 | International Business Machines Corporation | System using weighted next hop option in routing table to include probability of routing a packet for providing equal cost multipath forwarding packets |
US6839348B2 (en) * | 1999-04-30 | 2005-01-04 | Cisco Technology, Inc. | System and method for distributing multicasts in virtual local area networks |
CN1759568A (en) * | 2003-04-02 | 2006-04-12 | 思科技术公司 | Arrangement in a router for generating a route based on a pattern of a received packet |
CN1829189A (en) * | 2005-03-01 | 2006-09-06 | 杭州华为三康技术有限公司 | Method for partaking route next jump load |
CN101394342A (en) * | 2007-09-20 | 2009-03-25 | 华为技术有限公司 | Method and apparatus for implementing multicast authentication |
CN101605103A (en) * | 2009-07-16 | 2009-12-16 | 杭州华三通信技术有限公司 | A kind of method of static forwarding multicast data and device |
US20110087789A1 (en) * | 2009-10-13 | 2011-04-14 | Nokia Corporation | Subscription based network routing tables and enforcement for overlay networks |
CN102025644A (en) * | 2010-12-31 | 2011-04-20 | 华为技术有限公司 | Method and device for load sharing |
CN103560959A (en) * | 2013-10-25 | 2014-02-05 | 瑞斯康达科技发展股份有限公司 | Method and device for selecting static route |
CN104301229A (en) * | 2014-09-26 | 2015-01-21 | 深圳市腾讯计算机系统有限公司 | Data packet forwarding method and device and routing table generating method and device. |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060291444A1 (en) * | 2005-06-14 | 2006-12-28 | Alvarez Daniel A | Method and apparatus for automatically selecting an RP |
CN103973576B (en) * | 2014-05-22 | 2018-05-08 | 新华三技术有限公司 | A kind of processing method and the network equipment of link local multicast message |
CN106453088B (en) * | 2016-09-28 | 2019-06-25 | 平安科技(深圳)有限公司 | A kind of static routing configuration method and terminal |
-
2016
- 2016-09-28 CN CN201610858970.4A patent/CN106453088B/en active Active
-
2017
- 2017-03-14 WO PCT/CN2017/076519 patent/WO2018058903A1/en active Application Filing
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6839348B2 (en) * | 1999-04-30 | 2005-01-04 | Cisco Technology, Inc. | System and method for distributing multicasts in virtual local area networks |
US6721800B1 (en) * | 2000-04-10 | 2004-04-13 | International Business Machines Corporation | System using weighted next hop option in routing table to include probability of routing a packet for providing equal cost multipath forwarding packets |
CN1759568A (en) * | 2003-04-02 | 2006-04-12 | 思科技术公司 | Arrangement in a router for generating a route based on a pattern of a received packet |
CN1829189A (en) * | 2005-03-01 | 2006-09-06 | 杭州华为三康技术有限公司 | Method for partaking route next jump load |
CN101394342A (en) * | 2007-09-20 | 2009-03-25 | 华为技术有限公司 | Method and apparatus for implementing multicast authentication |
CN101605103A (en) * | 2009-07-16 | 2009-12-16 | 杭州华三通信技术有限公司 | A kind of method of static forwarding multicast data and device |
US20110087789A1 (en) * | 2009-10-13 | 2011-04-14 | Nokia Corporation | Subscription based network routing tables and enforcement for overlay networks |
CN102025644A (en) * | 2010-12-31 | 2011-04-20 | 华为技术有限公司 | Method and device for load sharing |
CN103560959A (en) * | 2013-10-25 | 2014-02-05 | 瑞斯康达科技发展股份有限公司 | Method and device for selecting static route |
CN104301229A (en) * | 2014-09-26 | 2015-01-21 | 深圳市腾讯计算机系统有限公司 | Data packet forwarding method and device and routing table generating method and device. |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018058903A1 (en) * | 2016-09-28 | 2018-04-05 | 平安科技(深圳)有限公司 | Static route configuration method, terminal and device, and computer-readable storage medium |
US20210329069A1 (en) * | 2020-04-20 | 2021-10-21 | Cisco Technology, Inc. | Distributed resilient load-balancing for multipath transport protocols |
US11570239B2 (en) * | 2020-04-20 | 2023-01-31 | Cisco Technology, Inc. | Distributed resilient load-balancing for multipath transport protocols |
CN114785725A (en) * | 2022-01-06 | 2022-07-22 | 新华三技术有限公司 | Micro-segmentation strategy routing learning method, message forwarding method and device |
CN114785725B (en) * | 2022-01-06 | 2023-10-20 | 新华三技术有限公司 | Micro-segmentation strategy route learning method, message forwarding method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106453088B (en) | 2019-06-25 |
WO2018058903A1 (en) | 2018-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8681658B2 (en) | System and method to provision an MPLS/VPN network | |
US20190266762A1 (en) | Enhanced user interface systems including dynamic context selection for cloud-based networks | |
CN102857491B (en) | Management schemes for filter sets | |
WO2020073685A1 (en) | Forwarding path determining method, apparatus and system, computer device, and storage medium | |
CN103023773B (en) | Method, device and system for forwarding message in multi-topology network | |
CN112087379B (en) | Service chain arranging method and device, storage medium and electronic device | |
CN106453088A (en) | Static routing configuration method and terminal | |
CN107404436A (en) | Communication means and device for virtual expansible LAN | |
US11444840B2 (en) | Virtualized networking application and infrastructure | |
CN113746760B (en) | Communication method, network controller, and computer-readable storage medium | |
CN104717081A (en) | Gateway function realization method and device | |
CN105162704A (en) | Multicast replication method and device in Overlay network | |
CN102447639B (en) | A kind of policy routing method and device | |
CN111556110B (en) | Automatic adaptation method for different physical service networks of private cloud system | |
CN105939267B (en) | Outband management method and device | |
CN106936680B (en) | System and method for intercommunication among heterogeneous networks of cloud computing platform | |
CN106817236A (en) | The collocation method and device of virtual network function | |
CN109041086B (en) | Configuration method and device of OpenFlow instance | |
CN101710864B (en) | Collocation method and device for multi-gateway Linux server | |
CN107360089A (en) | A kind of method for routing foundation, business datum conversion method and device | |
CN106921551A (en) | Virtual communication method, system and equipment | |
CN111464443A (en) | Message forwarding method, device, equipment and storage medium based on service function chain | |
CN101222408B (en) | VLAN topological generating method and device | |
CN109257372B (en) | Message forwarding method, device, storage medium and apparatus based on network convergence | |
CN113852536B (en) | Service deployment method and device |
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 |