CN106453088B - A kind of static routing configuration method and terminal - Google Patents

A kind of static routing configuration method and terminal Download PDF

Info

Publication number
CN106453088B
CN106453088B CN201610858970.4A CN201610858970A CN106453088B CN 106453088 B CN106453088 B CN 106453088B CN 201610858970 A CN201610858970 A CN 201610858970A CN 106453088 B CN106453088 B CN 106453088B
Authority
CN
China
Prior art keywords
address
hop
group
forwarding
network segment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610858970.4A
Other languages
Chinese (zh)
Other versions
CN106453088A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201610858970.4A priority Critical patent/CN106453088B/en
Publication of CN106453088A publication Critical patent/CN106453088A/en
Priority to PCT/CN2017/076519 priority patent/WO2018058903A1/en
Application granted granted Critical
Publication of CN106453088B publication Critical patent/CN106453088B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of static routing configuration method and terminals, which comprises destination network segment group is created in static route entry;At least one purpose IP address and at least one subnet mask corresponding with the destination IP address are configured in the destination network segment group;Next-hop group is correspondingly created according to the destination IP address and subnet mask;At least one next-hop ip address is configured in the next-hop group;It E-Packets if receiving, is forwarded described E-Packet according to the next-hop ip address.The present invention realizes the configuration of static routing, wherein the configuration process that can simplify static routing table in a manner of creating group can reduce the memory source of static routing list item in message repeating process.

Description

A kind of static routing configuration method and terminal
Technical field
The present invention relates to field of communication technology more particularly to a kind of static routing configuration methods and terminal.
Background technique
Currently, traditional static routing configuration method needs in sequence successively with inserting destination IP in static routing table Location, next-hop ip address and forwarding interface, the configuration when the message resource quantity being forwarded is huge, in static routing table Process can become extremely complex, while a large amount of static routing information can occupy sizable static routing list item resource.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of static routing configuration method and terminal, it can be achieved that static routing Configuration, the embodiment of the present invention can simplify the configuration process of static routing table in a manner of creating group, in message repeating process In, the memory source of static routing list item can be reduced.
A kind of static routing configuration method, which comprises
Destination network segment group is created in static route entry;
At least one purpose IP address and corresponding with the destination IP address is configured in the destination network segment group At least one subnet mask;
Next-hop group is correspondingly created according to the destination IP address and subnet mask;
At least one next-hop ip address is configured in the next-hop group;
It E-Packets if receiving, is forwarded described E-Packet according to the next-hop ip address.
If being E-Packeted according to the next-hop ip address by described specifically, described receive E-Packets Hair, specifically includes:
It E-Packets described in acquisition;
Corresponding next-hop group is determined according to the purpose IP address to E-Packet;
It E-Packets according to the next-hop ip address forwarding in the next-hop group.
If being E-Packeted according to the next-hop ip address by described specifically, described receive E-Packets Hair, also specifically includes:
According to the corresponding creation forwarding interface group of the next-hop ip address;
At least one forwarding interface is configured in the forwarding interface group;
It E-Packets if receiving, is forwarded described E-Packet according to the forwarding interface.
Specifically, the forwarding interface includes virtual local area network interface or loopback interface.
Specifically, described E-Packet is forwarded in a manner of hash.
A kind of terminal, the terminal include:
First creating unit, for creating destination network segment group in static route entry;
First configuration unit, for configured in the destination network segment group at least one purpose IP address and with the mesh At least one corresponding subnet mask of IP address;
Second creating unit, for correspondingly creating next-hop group according to the destination IP address and subnet mask;
Second configuration unit, for configuring at least one next-hop ip address in the next-hop group;
First retransmission unit E-Packets according to the next-hop ip address by described if E-Packeting for receiving It is forwarded.
Specifically, first retransmission unit, specifically includes:
Acquiring unit, for obtaining described E-Packet;
Matching unit, the purpose IP address for E-Packeting according to determine corresponding next-hop group;
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:
Third creating unit, for according to the corresponding creation forwarding interface group of the next-hop ip address;
Third configuration unit, for configuring at least one forwarding interface in the forwarding interface group;
Third retransmission unit, if E-Packeting for receiving, according to the forwarding interface by the progress that E-Packets Forwarding.
Specifically, the forwarding interface includes virtual local area network interface or loopback interface.
Specifically, described E-Packet is forwarded in a manner of hash.
In conclusion the invention has the following advantages: the present invention in static route entry by creating purpose net Fragment group, and according to destination network segment group creating next-hop group, next-hop ip address is configured in next-hop group, is realized The configuration of static routing, wherein the configuration process that static routing table can be simplified in a manner of creating group, it is forwarded in message Cheng Zhong can reduce the memory source of static routing list item.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of static routing configuration 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 configuration 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 configuration 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 configuration method provided in an embodiment of the present invention was demonstrated Journey schematic diagram.
Fig. 5 is another flow diagram in a kind of static routing configuration method provided in an embodiment of the present invention.
Fig. 6 is another flow diagram in a kind of static routing configuration 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
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
As shown in Figure 1, a kind of flow diagram of the static routing configuration method provided 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 forms a static routing table, when needing to carry out message forwarding, according to the purpose IP address of message Each static route entry in matched static routing table, if it exists the purpose IP address phase of static route entry and message Match, is then E-Packeted by the forwarding logic of the static route entry;Preferably, one is created in a static route entry Destination network segment group, each destination network segment group are made of one or more destination network segment.For example, with reference to Fig. 2, on static road By creating destination network segment group B in entry A, destination network segment group B is made of four destination network segment B1-B4.
It should be noted that in embodiments of the present invention, being correspondingly arranged destination network segment in each static route entry The creation mode of group, and each destination network segment group is respectively provided with the function of adding multiple destination network segments.For example, 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 clicking is the first configuration menu of pop-up display.In order to the mesh created Network segment group configured, need to insert the configuration information of current destination network segment in configuration menu, which can wrap Include purpose IP address and subnet mask.
S102, configured in destination network segment group at least one purpose IP address and it is corresponding with purpose IP address at least One subnet mask.
Specifically, a static route entry generally consists 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 one destination network segment group Or multiple purpose IP address, subnet mask is set according to the purpose IP address that is configured, by the purpose IP address that is configured and Corresponding subnet mask forms the destination network segment, is just made 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 form destination network segment B1, purpose IP address a2 and Subnet mask b2 forms destination network segment B2, purpose IP address a3 and subnet mask b3 and forms destination network segment B3, purpose IP address a4 Destination network segment B4 is formed with subnet mask b4.
S103 correspondingly creates next-hop group according to purpose IP address and subnet mask.
Specifically, if it is desired to realize effective forwarding, it is necessary to which gateway is set in static route entry, that is, next It jumps.Therefore, after configuration purpose network segment group, according in the destination network segment configured purpose IP address and subnet mask set Fixed corresponding next-hop ip address can create next-hop group, by multiple according to forwarding needs in embodiments of the present invention Next-hop ip address forms 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 Creation mode, and each next-hop group is provided with the function of adding multiple next-hop ip address.For example, making 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 clicking is the second configuration menu of pop-up display.In order to be carried out to the next-hop group created Configuration needs to insert the configuration information of current next-hop group in the second configuration menu, and the configuration information is including one or more A next-hop ip address.
S104 configures at least one next-hop ip address in next-hop group.
Specifically, a static routing list item only corresponds to a next-hop ip address in traditional static routing configuration, Message data can only specify a forwarding port, multichannel forward-path can not be selected according to actual needs to E-Packet;The present invention Embodiment realizes the multichannel forwarding of message by way of next-hop group is arranged, such as when message needs to carry out multichannel forwarding, It can realize that multichannel forward-path E-Packets according to multiple next-hop ip address in next-hop group.Referring to fig. 4, by purpose Network segment B1 correspondingly creates next-hop group C1, and the next-hop ip address configured in the next-hop group C1 has: next Jump IP1, next-hop IP 2, next-hop IP 3 etc., the phase of the creation rule and destination network segment B1 of other destination network segment B2-B4 Together, this will not be detailed here.
S105 E-Packets if receiving, and is forwarded described E-Packet according to next-hop ip address.
Specifically, described E-Packet, can be any message for needing to forward in network, it should be noted that into When row routing forwarding, E-Packeting can be forwarded in a manner of hash, exactly, more when needing the message forwarded to correspond to When a next-hop ip address, during routing forwarding, message can select different paths to be forwarded in a manner of hash, So as to which flow to be distributed to different chain roads, to achieve the purpose that load balancing.
Above-described embodiment provided by the invention in static route entry by creating destination network segment group, and according to purpose Network segment group creating next-hop group, configures next-hop ip address in next-hop group, realizes the configuration of static routing, In, the configuration process of static routing table can be simplified in a manner 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, E-Packeting in step S105 if receiving, according to Described E-Packet is forwarded by next-hop ip address, specifically includes step S201~S203.
S201 E-Packets described in acquisition.
S202 determines corresponding next-hop group according to the purpose IP address to E-Packet.
Specifically, after an IP data packet is come in, router receives the IP data packet, root by taking IP data packet as an example It searches and matches in all purposes network segment group in local static routing table according to the purpose IP address carried in IP data packet Destination network segment matches if finding, according to the destination network segment determines corresponding next-hop group.For example, IP data packet Purpose IP address find the destination network segment B1 to match, because of the purpose of the purpose IP address of IP data 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 forwarding in next-hop group.
Specifically, only set a next-hop ip address in the next-hop group, then according to the next-hop ip address by IP Data forward a packet to destination port;When being set with multiple next-hop ip address in next-hop group, in the mistake of IP data packet forwarding Cheng Zhong can select different next-hop ip address that IP data are forwarded a packet to different destination ports in a manner 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 into destination port 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, E-Packeting in step S105 if receiving, root Described E-Packet is forwarded according to next-hop ip address, also specifically includes step S301~S303.
S301, according to the corresponding creation forwarding interface group of next-hop ip address.
Specifically, in actual use, all destination network segments all must clear next-hop ip address.It is E-Packeting When, destination network segment matching in destination network segment group, the only described purpose are searched according to the purpose IP address of message first Network segment specifies next-hop ip address, and link layer could be found corresponding link layer address by next-hop ip address, then be pressed It E-Packets according to the address;When E-Packeting, it is possible to specify forwarding interface can not also specify forwarding interface, for not referring to Determine forwarding interface, then router can automatically select optimal path and be forwarded, and for specifying forwarding interface, the embodiment of the present invention is logical The specified forwarding that creation forwarding interface group realizes message is crossed, multiple forwarding interfaces can be configured in the forwarding interface group, according to The type of forwarding interface is different, and the mode of setting is also different.For example, for non-broadcast multipath access network interface, such as with Too network interface, VLAN (Virtual Local Area Network, virtual LAN) interface, loopback interface etc. are reported in forwarding Wen Shi needs to establish secondary routing, the i.e. mapping of IP address to link layer address in link layer, carries out configuring in this case quiet When state routes, 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, belong to non-broadcasting for such Multiple-access network interface can prevent from establishing in link layer secondary by configuring next-hop ip address and forwarding interface simultaneously When routing, the case where confirming next-hop is led to not because there are multiple next-hops.
S303 E-Packets if receiving, and is forwarded described E-Packet according to forwarding interface.
Specifically, described E-Packet, can be any message for needing to forward in network, it should be noted that into When row routing forwarding, E-Packeting can be forwarded in a manner of hash, exactly, more when needing the message forwarded to correspond to When a forwarding interface, during routing forwarding, message can select different paths to be forwarded in a manner of hash, that is, Message can select different forwarding interfaces to be forwarded in a manner of hash, so as to which flow to be distributed to different links On, to achieve the purpose that load balancing;In practical applications, message is carried out by configuring next-hop ip address and forwarding interface Forwarding, can promote the optimization performance of router.
Above-described embodiment provided by the invention is forwarded message by configuring next-hop ip address and forwarding interface, with And different forwarding interfaces is selected to be forwarded in a manner of hash, the optimization performance of router can be promoted, and can incite somebody to action Flow is distributed to different chain roads, to achieve the purpose that load balancing.
As shown in fig. 7, a kind of corresponding above-mentioned static routing configuration method, the embodiment of the present invention also propose a kind of terminal, it should Terminal 100 includes: the first creating unit 10, the first configuration unit 20, the second creating unit 30, the second configuration unit 40, first Retransmission unit 50.
Wherein the first creating unit 10, for creating destination network segment group in static route entry.Specifically, in this hair 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 Static route entry, the purpose IP address of static route entry and message matches if it exists, then by the static routing item 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 of one or more destination network segment.
It should be noted that in embodiments of the present invention, being correspondingly arranged destination network segment in each static route entry The creation mode of group, and each destination network segment group is respectively provided with the function of adding multiple destination network segments.For example, 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 clicking is the first configuration menu of pop-up display.In order to the mesh created Network segment group configured, need to insert the configuration information of current destination network segment in configuration menu, which can wrap Include purpose IP address and subnet mask.
First configuration unit 20, for configured in the destination network segment group at least one purpose IP address and with it is described At least one corresponding subnet mask of purpose IP address.Specifically, a static route entry generally consists of three parts, packet Include 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, one One or more purpose IP address is configured in a destination network segment group, is covered according to the purpose IP address setting subnet configured Code, forms the destination network segment by the purpose IP address and corresponding subnet mask that are configured, by multiple purpose IP address and right The multiple subnet masks answered just form multiple destination network segments.
Second creating unit 30, for correspondingly creating next-hop group according to the destination IP address and subnet mask Group.Specifically, if it is desired to which realize effective forwarding, it is necessary to which gateway, that is, next-hop are set in static route entry.Cause This, after configuration purpose network segment group, according to the purpose IP address and subnet mask setting pair in the destination network segment configured The next-hop ip address answered can create next-hop group, by multiple next according to forwarding needs in embodiments of the present invention Hop IP address forms 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 Creation mode, and each next-hop group is provided with the function of adding multiple next-hop ip address.For example, making 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 clicking is the second configuration menu of pop-up display.In order to be carried out to the next-hop group created Configuration needs to insert the configuration information of current next-hop group in the second configuration menu, and the configuration information is including one or more A next-hop ip address.
Second configuration 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 A fixed forwarding port, can not select according to actual needs multichannel forward-path to E-Packet;The embodiment of the present invention passes through setting The mode of next-hop group realizes the multichannel forwarding of message, such as when message needs to carry out multichannel forwarding, can be according to next-hop Multiple next-hop ip address in group realize that multichannel forward-path E-Packets.
First retransmission unit 50 reports the forwarding according to the next-hop ip address if E-Packeting for receiving Text is forwarded.Specifically, described E-Packet, any message for needing to forward in network can be, it should be noted that When carrying out routing forwarding, E-Packeting can be forwarded in a manner of hash, exactly, when the message that needs forward corresponds to When multiple next-hop ip address, during routing forwarding, message can select different paths to be turned in a manner of hash Hair, so as to which flow to be distributed to different chain roads, to achieve the purpose that load balancing.
Further, as shown in figure 8, first retransmission unit 50, specifically includes:
Acquiring unit 501, for obtaining described E-Packet.
Matching unit 502, the purpose IP address for E-Packeting according to determine corresponding next-hop group.Tool Body, by taking IP data packet as an example, after an IP data packet is come in, router receives the IP data packet, according to IP data packet The destination network segment in all purposes network segment group is searched in local static routing table and matched to the purpose IP address of middle carrying, if It finds and matches, then corresponding next-hop group is determined according to the destination network segment.For example, the purpose IP address of IP data packet The destination network segment B1 to match is found, because of the purpose IP address a1 phase of the purpose IP address of IP data packet and destination network segment B1 Match, then next-hop group C1 corresponding thereto is determined by destination network segment B1.
Second retransmission unit 503, for forwarding the forwarding to report according to the next-hop ip address in the next-hop group Text.Specifically, only set a next-hop ip address in the next-hop group, then according to the next-hop ip address by IP data packet It is forwarded to destination port;When being set with multiple next-hop ip address in next-hop group, during the forwarding of IP data packet, meeting Select different next-hop ip address that IP data are forwarded a packet to different destination ports in a manner of hash.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 a manner of hash The IP data are forwarded a packet into destination port 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:
Third creating unit 504, for according to the corresponding creation forwarding interface group of the next-hop ip address.Specifically , in actual use, all destination network segments all must clear next-hop ip address.When E-Packeting, first according to report The purpose IP address of text searches destination network segment matching in destination network segment group, and the only described destination network segment specifies next Hop IP address, link layer could find corresponding link layer address by next-hop ip address, then forward and report according to the address Text;When E-Packeting, it is possible to specify forwarding interface can not also specify forwarding interface, for not specifying forwarding interface, then road Optimal path can be automatically selected by device to be forwarded, for specifying forwarding interface, the embodiment of the present invention passes through creation forwarding interface Group realizes the specified forwarding of message, multiple forwarding interfaces can be configured in the forwarding interface group, according to the type of forwarding interface The mode of difference, setting is also different.For example, for non-broadcast multipath access network interface, such as Ethernet interface, VLAN (Virtual Local Area Network, virtual LAN) interface, loopback interface etc., when E-Packeting, needs in chain Road floor establishes secondary routing, the i.e. mapping of IP address to link layer address, when carrying out configuration static routing in this case, needs same When configuration next-hop ip address and specified interface.
Third configuration 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 configuring next-hop ip address and forwarding interface simultaneously, can prevent when link layer establishes secondary routing, because appearance is multiple Next-hop and lead to not confirm next-hop the case where.
Third retransmission unit 506, if E-Packeting for receiving, according to the forwarding interface by it is described E-Packet into Row forwarding.Specifically, described E-Packet, any message for needing to forward in network can be, it should be noted that carrying out When routing forwarding, E-Packeting can be forwarded in a manner of hash, exactly, multiple when needing the message forwarded to correspond to When forwarding interface, during routing forwarding, message can select different paths to be forwarded in a manner of hash, that is, report Text can select different forwarding interfaces to be forwarded in a manner of hash, so as to which flow to be distributed to different chain roads, To achieve the purpose that load balancing;In practical applications, message is turned by configuring next-hop ip address and forwarding interface Hair, can promote the optimization performance of router.
Figure 10 is the structure composition schematic diagram of another embodiment of terminal of the invention.As shown in Figure 10, can include: defeated Enter device 101, output device 102, R-T unit 103, memory 104 and processor 105, in which:
The input unit 101, for receiving the input data of outside access control equipment.In the specific implementation, of the invention Input unit 101 described in embodiment may include keyboard, mouse, photoelectricity input unit, acoustic input dephonoprojectoscope, touch input dress It sets, scanner etc..
The output device 102, the output data for external output access control equipment.In the specific implementation, of the invention Output device 102 described in embodiment may include display, loudspeaker, printer etc..
The R-T unit 103, for sending data to other equipment by communication link or being received from other equipment Data.In the specific implementation, the R-T unit 103 of the embodiment of the present invention may include the transceiving devices such as radio-frequency antenna.
The memory 104, for storing the program data for having various functions.Memory 104 in the embodiment of the present invention The data of storage include the program data that can be called and run.In the specific implementation, the memory 104 of the embodiment of the present invention can be System storage, for example, volatile (such as RAM), the combination of non-volatile (such as ROM, flash memory etc.), or both. In the specific implementation, the memory 104 of the embodiment of the present invention can also be the external memory except system, for example, disk, light Disk, tape etc..
The processor 105 for calling the program data stored in the memory 104, and performs the following operations:
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 destination IP address;According to the destination IP address and subnet mask Correspondingly create next-hop group;At least one next-hop ip address is configured in the next-hop group;Turn if receiving It transmits messages text, is forwarded described E-Packet according to the next-hop ip address.
Further, the processor 105 also performs the following operations:
It E-Packets described in acquisition;Corresponding next-hop group is determined according to the purpose IP address to E-Packet; It E-Packets according to the next-hop ip address forwarding in the next-hop group.
Further, the processor 105 also performs the following operations:
According to the corresponding creation forwarding interface group of the next-hop ip address;It is configured at least in the forwarding interface group One forwarding interface;It E-Packets if receiving, is forwarded described E-Packet according to the forwarding interface.
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, specific integrated circuit) Lai Shixian.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Unit in the terminal of that embodiment of the invention can be combined, divided and deleted according to actual needs.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the 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 description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (10)

1. a kind of static routing configuration method, which is characterized in that the described method includes:
A destination network segment group, the corresponding destination network segment of every static route entry are created in a static route entry Group;
Configuration purpose IP address and subnet mask corresponding with the destination IP address in the destination network segment group, each Purpose IP address corresponds to a subnet mask;
Next-hop group is correspondingly created according to the destination IP address and subnet mask;
At least one next-hop ip address is configured in the next-hop group;
It E-Packets if receiving, is forwarded described E-Packet according to the next-hop ip address.
2. the method as described in claim 1, which is characterized in that if described receive E-Packets, according to the next-hop IP Described E-Packet is forwarded by address, specifically includes:
It E-Packets described in acquisition;
Corresponding next-hop group is determined according to the purpose IP address to E-Packet;
It E-Packets according to the next-hop ip address forwarding in the next-hop group.
3. the method as described in claim 1, which is characterized in that if described receive E-Packets, according to the next-hop IP Described E-Packet is forwarded by address, also specifically includes:
According to the corresponding creation forwarding interface group of the next-hop ip address;
At least one forwarding interface is configured in the forwarding interface group;
It E-Packets if receiving, is forwarded described E-Packet according to the forwarding interface.
4. method as claimed in claim 3, which is characterized in that the forwarding interface includes virtual local area network interface or winding Interface.
5. method according to any of claims 1-4, which is characterized in that described E-Packet is turned in a manner of hash Hair.
6. a kind of terminal, which is characterized in that the terminal includes:
First creating unit, for creating a destination network segment group, every static routing item in a static route entry Mesh corresponds to a destination network segment group;
First configuration unit, for the configuration purpose IP address and opposite with the destination IP address in the destination network segment group The subnet mask answered, the corresponding subnet mask of each purpose IP address;
Second creating unit, for correspondingly creating next-hop group according to the destination IP address and subnet mask;
Second configuration unit, for configuring at least one next-hop ip address in the next-hop group;
First retransmission unit, if E-Packeting for receiving, according to the next-hop ip address by the progress that E-Packets Forwarding.
7. terminal as claimed in claim 6, which is characterized in that first retransmission unit specifically includes:
Acquiring unit, for obtaining described E-Packet;
Matching unit, the purpose IP address for E-Packeting according to determine corresponding next-hop group;
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, which is characterized in that first retransmission unit also specifically includes:
Third creating unit, for according to the corresponding creation forwarding interface group of the next-hop ip address;
Third configuration unit, for configuring at least one forwarding interface in the forwarding interface group;
Described E-Packet is forwarded if E-Packeting for receiving according to the forwarding interface by third retransmission unit.
9. terminal as claimed in claim 8, which is characterized in that the forwarding interface includes virtual local area network interface or winding Interface.
10. such as the described in any item terminals of claim 6-8, which is characterized in that described E-Packet is carried out in a manner of hash Forwarding.
CN201610858970.4A 2016-09-28 2016-09-28 A kind of static routing configuration method and terminal Active CN106453088B (en)

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 CN106453088A (en) 2017-02-22
CN106453088B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453088B (en) * 2016-09-28 2019-06-25 平安科技(深圳)有限公司 A kind of static routing configuration method and terminal
US11570239B2 (en) * 2020-04-20 2023-01-31 Cisco Technology, Inc. Distributed resilient load-balancing for multipath transport protocols
CN112272145B (en) * 2020-10-26 2022-05-24 新华三信息安全技术有限公司 Message processing method, device, equipment and machine readable storage medium
CN114785725B (en) * 2022-01-06 2023-10-20 新华三技术有限公司 Micro-segmentation strategy route learning method, message forwarding method and device

Citations (9)

* Cited by examiner, † Cited by third party
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
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 (4)

* Cited by examiner, † Cited by third party
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
US20110087789A1 (en) * 2009-10-13 2011-04-14 Nokia Corporation Subscription based network routing tables and enforcement for overlay networks
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

Patent Citations (9)

* Cited by examiner, † Cited by third party
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
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.

Also Published As

Publication number Publication date
CN106453088A (en) 2017-02-22
WO2018058903A1 (en) 2018-04-05

Similar Documents

Publication Publication Date Title
US9755971B2 (en) Traffic flow redirection between border routers using routing encapsulation
CN113055290B (en) Message forwarding method, device and system based on Service Function Chain (SFC)
CN101888334B (en) Scalable routing policy construction using dynamic redefinition of routing preference value
EP3070895B1 (en) Encapsulation method and system for flow identifier
CN106453088B (en) A kind of static routing configuration method and terminal
EP2880826B1 (en) Label distribution and route installation in a loop-free routing topology using routing arcs
CN109039919B (en) Forwarding path determining method, device, system, computer equipment and storage medium
CN103023773B (en) Method, device and system for forwarding message in multi-topology network
CN110324159B (en) Link configuration method, controller and storage medium
EP3920476A1 (en) Fault protection method, node, and storage medium
EP0774195A1 (en) Loose source routing over disparate networks
CN105450529B (en) Method, equipment and the system of across two-layer virtual network transmission multicast message
WO2008033618A1 (en) Method and apparatus for passing routing information among mobile routers
CN102752205B (en) A kind of method of route iteration and device
CN101789949B (en) Method and router equipment for realizing load sharing
US20120124238A1 (en) Prioritization of routing information updates
CN105162704A (en) Multicast replication method and device in Overlay network
CN111147372A (en) Downlink message sending and forwarding method and device
CN111355674A (en) Routing message processing method and device, storage medium and electronic device
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
CN106209671A (en) A kind of method and device determining that routing overhead is shared
CN100479457C (en) Implementation method for transferring data in virtual private network
CN105991428B (en) Method and device for processing switch routing conflict
CN109861908A (en) A kind of routing conversion and equipment

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