CN107612751A - Acquisition methods, device, the network equipment and the storage medium of gateway - Google Patents

Acquisition methods, device, the network equipment and the storage medium of gateway Download PDF

Info

Publication number
CN107612751A
CN107612751A CN201711026667.9A CN201711026667A CN107612751A CN 107612751 A CN107612751 A CN 107612751A CN 201711026667 A CN201711026667 A CN 201711026667A CN 107612751 A CN107612751 A CN 107612751A
Authority
CN
China
Prior art keywords
subnet
gateway
network equipment
list item
route
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.)
Withdrawn
Application number
CN201711026667.9A
Other languages
Chinese (zh)
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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201711026667.9A priority Critical patent/CN107612751A/en
Publication of CN107612751A publication Critical patent/CN107612751A/en
Withdrawn legal-status Critical Current

Links

Abstract

The invention provides a kind of acquisition methods of gateway, device, the network equipment and storage medium, it is related to field of computer technology.The acquisition methods of the gateway include:Obtain the indirect route list item in the routing table information of the network equipment;Subnet is determined based on the subnet mask of destination address and destination corresponding to the indirect route list item;The gateway of the subnet is determined based on next hop router address corresponding to the indirect route list item.Acquisition methods, device, the network equipment and the storage medium of the gateway can realize the acquisition of the gateway of subnet.

Description

Acquisition methods, device, the network equipment and the storage medium of gateway
Technical field
The present invention relates to field of computer technology, is set in particular to a kind of acquisition methods of gateway, device, network Standby and storage medium.
Background technology
NMS is the system to be adjusted to network state by software and hardware, with Logistics networks system System can normally, efficiently be run.The discovery of network is very important in NMS, it is found that new network can be protected Card NMS can well be monitored to the state of network, managed, and the discovery of network is it needs to be determined that subnet Gateway.Using interchanger FDB (Forwarding DataBase) information, i.e., the MAC Address that port is acquired with it, can analyze Annexation between interchanger and between interchanger and main frame, but it needs to be determined that the gateway of subnet.With gateway in its son The MAC Address of interface in net is mark MAC, and the MAC learnt port is uplink port, the mark MAC's not learnt Port is downlink port, can be obtained between interchanger using direct-connected theorem and the annexation of interchanger and main frame.Therefore, The determination of the gateway of subnet is extremely important in the Network finding of NMS.
In NMS, the determination method of existing subnet gateway includes determining by hand, and is taken using webmaster Business device determines.Determine the problem of easily error be present by hand;And traceroute is based on by NM server and obtained in subnet The network equipment information, the last two jump or final jump are then gateway, in real network environment, because network condition is asked Topic may lead to not the information for obtaining the network equipment in subnet, so as to obtain the gateway of subnet.
The content of the invention
In view of this, the embodiments of the invention provide a kind of acquisition methods of gateway, device, the network equipment and storage to be situated between Matter, to solve the above problems.
To achieve these goals, the technical solution adopted by the present invention is as follows:
A kind of acquisition methods of gateway, methods described include:Obtain the indirect route in the routing table information of the network equipment List item;Subnet is determined based on the subnet mask of destination address and destination corresponding to the indirect route list item;Based on described Next hop router address determines the gateway of the subnet corresponding to indirect route list item.
A kind of acquisition device of gateway, described device include:Route acquisition module, subnet determining module and gateway determine Module, wherein, the route acquisition module is used to obtain the indirect route list item in the routing table information of the network equipment;The son Net determining module is used to determine subnet based on the subnet mask of destination address and destination corresponding to the indirect route list item; The gateway determining module is used to determine the subnet based on next hop router address corresponding to the indirect route list item Gateway.
A kind of network equipment, the network equipment include memory and processor, and the memory is connected to the processing Device, the memory store instruction, make the above-mentioned gateway of the computing device when executed by the processor Acquisition methods.
A kind of storage medium, computer instruction is stored with the storage medium, wherein, the computer instruction is being transported The acquisition methods of above-mentioned gateway are performed during row.
Acquisition methods, device, the network equipment and the storage medium of gateway provided in an embodiment of the present invention, by obtaining network Indirect route list item in the routing table information of equipment, it is then based on destination address and mesh corresponding to the indirect route list item The subnet mask on ground determine subnet, the next hop router address for being finally based on indirect route list item determines the gateway of subnet. It is thus possible to which the routing table information based on the network equipment can get the gateway of subnet, solve to determine by hand in the prior art The problem of gateway of subnet easily malfunctions and possibly can not obtain the gateway of subnet by server.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.
Brief description of the drawings
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 shows the block diagram of the network equipment provided in an embodiment of the present invention;
Fig. 2 shows the flow chart of the acquisition methods of gateway provided in an embodiment of the present invention;
Fig. 3 shows the module map of the acquisition device of gateway provided in an embodiment of the present invention;
Fig. 4 shows the module map of the route acquisition module of the acquisition device of gateway provided in an embodiment of the present invention;
Fig. 5 shows the module map of the gateway determining module of the acquisition device of gateway provided in an embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Generally exist The component of the embodiment of the present invention described and illustrated in accompanying drawing can be configured to arrange and design with a variety of herein.Cause This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below Scope, but it is merely representative of the selected embodiment of the present invention.Based on embodiments of the invention, those skilled in the art are not doing The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent accompanying drawing in individual accompanying drawing.Meanwhile the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that instruction or hint relative importance.
Fig. 1 shows a kind of structured flowchart for the network equipment that can be applied in the embodiment of the present invention.As shown in figure 1, net Network equipment 100 includes memory 101, one or more these components of (one is only shown in figure) processor 102 by one or A plurality of communication bus/signal wire mutually communicates.
Memory 101 can be used for storage software program and module, such as the acquisition methods of the gateway in the embodiment of the present invention And programmed instruction/module corresponding to device, processor 102 are stored in software program and mould in memory 101 by operation Block, so as to perform various function application and data processing, such as acquisition device of gateway provided in an embodiment of the present invention.
Memory 101 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic Property storage device, flash memory or other non-volatile solid state memories.Processor 102 and other possible components are to storage The access of device 101 can be carried out under the control of storage control 104.
It is appreciated that structure shown in Fig. 1 is only to illustrate, the network equipment 100 may also include it is more more than shown in Fig. 1 or Less component, or there is the configuration different from shown in Fig. 1.Each component shown in Fig. 1 can use hardware, software or its Combination is realized.
First embodiment
The flow chart of the acquisition methods of gateway provided in an embodiment of the present invention as shown in Figure 2.Refer to Fig. 2, this method Including:
Step S110:Obtain the indirect route list item in the routing table information of the network equipment.
In NMS, it is found that the related information of network must determine the gateway of subnet.The embodiment of the present invention carries The acquisition methods of the gateway of confession carry out the acquisition of subnet gateway according to the routing table information of the network equipment.Due to routing table information Direct routing list item represents to be routed directly to connected subnet in route table items, i.e., destination address directly with the network equipment phase Even, it is understood that be the interface IP that destination address is the network equipment, therefore the subnet be known to subnet, the subnet Information be also known state, for example, as it is known that the gateway of the subnet.And indirect route list item represent be routed to non-local main frame, Subnet where network or subnet, i.e. destination address is not directly to be connected with the router, it is necessary at least passes through a road again By device, therefore the information of the subnet where destination address is unknown, and the gateway of subnet is unknown.And it is possible to pass through indirect route List item obtains subnet corresponding to destination address, and determines the gateway of the subnet.
It is possible, firstly, to obtain the routing table information of the network equipment.Therefore, before step S110, the acquisition side of the gateway Method also includes:
Step S100:Routing table information is obtained based on default NMP.
There is NMP in NMS, NMP is as most heavy in network of network system The part wanted, define the communication means between network manager and network management agent.Such as SNMP (Simple Network Management Protocol, Simple Network Management Protocol), CMIP (Common Management Information Protocol, CMIP) etc..
In embodiments of the present invention, default NMP can be snmp protocol, and snmp protocol is used for network node, Such as router, interchanger etc..The routing table information of the network equipment can be obtained by snmp protocol.Certainly, network is preset The specific agreement of management agreement is not intended as limiting in embodiments of the present invention.
Further, in the routing table information of the network equipment obtained by snmp protocol, including multiple route table items. There is the routing information for reaching specific destination in routing table information, multiple route table items have corresponded to the phase for reaching specific destination Close information.Also, include direct routing list item and indirect route list item in route table items.
After the routing table information of the network equipment is got, then obtain the indirect route list item in routing table information.
Specifically, the indirect route list item in obtaining the routing table information of the network equipment can include:
When judging the value of the route-type of a route table items in the routing table information of the network equipment for preset value, then really The fixed route table items are indirect route list item.
In the route-type value of the route table items in judging the routing table information of the network equipment, road should be first obtained By the route-type value of the route table items in table information.
Specifically, the route table items in routing table information can be traveled through, MIB node is pRouteType value is obtained, i.e., should The value of route-type corresponding to route table items.
In snmp protocol, when ipRouteType value is 3, it is direct routing list item to represent the route table items;When When ipRouteType value is 4, it is indirect route list item to represent the route table items.
Therefore, in embodiments of the present invention, preset value can be corresponding with the indirect route types value in snmp protocol Value, i.e., preset value could be arranged to 4.
It is then possible to whether the route-type value of a route table items is the pre- of setting in the routing table information for judging to obtain again If value.
When the route-type value for judging the route table items is preset value, then it is indirect road that can determine the route table items By list item.
Step S120:Son is determined based on the subnet mask of destination address and destination corresponding to the indirect route list item Net.
After the indirect route list item in getting routing table information, then obtain destination corresponding to indirect route list item Subnet where location.
In embodiments of the present invention, destination address and the route table items pair corresponding to the indirect route list item can be based on The subnet mask for the destination answered determines subnet.
Specifically, MIB node i pRouteDest are obtained, to obtain destination address corresponding to the indirect route list item;Obtain MIB node i pRouteMask, to obtain the subnet mask of destination corresponding to the indirect route list item.
Then the son by the destination corresponding with the indirect route list item of destination address corresponding to the indirect route list item then, Net mask phase is with determining the subnet where destination address corresponding to the indirect route list item.
Specifically by the subnet of the destination corresponding with the indirect route list item of destination address corresponding to the indirect route list item Mask phase with can respectively be indicated destination address and subnet mask with binary system, then by same position number mutually with that is, According to 1 with 1 phase with 1,1 with 0 phase with 0,0 with 0 phase with 0 regular work and computing, to obtain the indirect route list item pair Subnet where the destination address answered.
For example, destination address corresponding to the indirect route list item is 192.9.200.13, corresponding to the indirect route list item The subnet mask of destination is 255.255.255.0.By destination address 192.9.200.13 and subnet mask 255.255.255.0 Mutually with that can be, destination address 192.9.200.13 be converted into binary system, obtains 11,000,000 00001001 1100100000001101, subnet mask is converted into binary system, obtains 11,111,111 1111111111111111 00000000, then by 11,000,000 00,001,001 11,001,000 00001101, with 11,111,111 11111111 11111111 00000000 phases with, obtain 1,100,000,000,001,001 11,001,000 00000000, i.e. 192.9.200.0, this Address is the network address of subnet where destination address.
It is thus possible to obtain based on purpose corresponding to destination address corresponding to the indirect route list item and the route table items Ground subnet mask phase and the network address of the subnet, i.e. subnet corresponding to the indirect route list item where destination address that determine.
Step S130:The net of the subnet is determined based on next hop router address corresponding to the indirect route list item Close.
After the subnet where obtaining destination address corresponding to the indirect route list item, due under the indirect route list item One hop router address illustrates the path for reaching the destination address, that is, reaches the path of subnet corresponding with destination address, such as The IP that fruit has equipment corresponding to the router address belongs to the subnet, then it represents that the connection of subnet corresponding with the destination address needs To pass through the equipment.Therefore, can the next hop router address according to corresponding to the indirect route list item determine the net of the subnet Close.
Specifically, step S130 can include:
Judge the IP category of the network equipment to be determined corresponding to next hop router address corresponding to the indirect route list item When the subnet, it is determined that the network equipment to be determined is the gateway of the subnet.
First, MIB node i pRouteNextHop are obtained, to obtain next hop router corresponding to the indirect route list item Address.
Then, it is to be determined to obtain corresponding to next hop router address corresponding to the indirect route list item one or more The IP of the network equipment.
Finally, judge whether the IP of one or more network equipment to be determined corresponding to next hop router address belongs to The subnet obtained in step S120.
Specifically, can treat whether the IP for judging the network equipment to be determined belongs to the subnet that is obtained in step 120 Determine the subnet mask phase of the IP of the network equipment and the subnet with, obtain mutually with result, wherein, the subnet mask of the subnet is The subnet mask of destination corresponding to the indirect route list item obtained in step S120;Then judge again obtain phase with knot Whether the network address of subnet of the fruit with being obtained in step S120 is identical, if identical, then it represents that the IP of the network equipment to be determined Belong in step S120 the subnet obtained.
For example, using in step 120 for example, the IP of the network equipment to be determined is converted to two as 192.9.200.14 After system, 11,000,000 00,001,001 1100100000010001, then the subnet mask with being illustrated in step S120 are obtained 255.255.255.0 corresponding 11,111,111 11,111,111 11,111,111 00000000 phase is with obtaining 11000000 0000100111001000 00000000, i.e. 192.9.200.0, mutually with result 192.9.200.0 with being illustrated in step S120 The network address of the subnet of acquisition is identical, and therefore, the IP of the network equipment to be determined belongs to mesh corresponding to the indirect route list item Address where subnet.
When judged result for when being, i.e., one or more corresponding to next hop router address corresponding to indirect route list item In the individual network equipment to be determined, the IP for having the network equipment to be determined belongs to where destination address corresponding to the indirect route list item Subnet, it may be determined that the gateway of the network equipment to be determined as the subnet.
It is thus possible to the routing table information obtained based on the NMP utilized in NMS, between acquisition Connect the gateway of the subnet where destination address corresponding to route table items.Solve and determine that the gateway of subnet holds by hand in the prior art It is error-prone and by server possibly can not obtain the gateway of subnet the problem of.
It is applied to by the acquisition methods of gateway provided in an embodiment of the present invention in NMS, it is necessary to obtain all Gateway existing for subnet corresponding to indirect route list item where destination address, to determine all-ones subnet net that may be present Close, be easy to implement the discovery of network in NMS.Therefore, after step s 130, the acquisition methods of the gateway may be used also With including:
The step of repeating the indirect route list item in the routing table information for obtaining the network equipment, described in The step of gateway of the subnet is determined according to next hop router address corresponding to the indirect route list item, until determining The gateway of subnet corresponding to all indirect route list items in the routing table information of the network equipment.
It is understood that determine subnet corresponding to all indirect route list items in the routing table information of the network equipment Gateway, can be that the ergodic process of route table items in traversal routing table information terminate, and determine in routing table information Gateway existing for subnet corresponding to all indirect route list items where destination address.So as to realize and determine all-ones subnet Gateway that may be present, to ensure in NMS on other algorithm realizabilitys of discovery of network and accurate Property.
Second embodiment
Second embodiment of the invention provides a kind of acquisition device 200 of gateway, refers to Fig. 3, the acquisition dress of the gateway Putting 200 includes routing information acquisition module 210, route acquisition module 220, subnet determining module 230 and gateway determining module 240.Wherein, routing information acquisition module 210 is used to obtain routing table information based on default NMP;Route acquisition mould Block 220 is used to obtain the indirect route list item in the routing table information of the network equipment;Subnet determining module 230 is used for based on described The subnet mask of destination address and destination corresponding to indirect route list item determines subnet;Gateway determining module 240 is used for base The gateway of the subnet is determined in next hop router address corresponding to the indirect route list item.
In embodiments of the present invention, refer to Fig. 4, route acquisition module 210 include route-type judging unit 211 and Indirect route determining unit 212.In routing table information of the route-type judging unit 211 for judging the network equipment all the way Whether the value by the route-type of list item is preset value;Indirect route determining unit is with 212 in the network equipment as described in judging When the value of the route-type of a route table items is preset value in routing table information, it is determined that the route table items are indirect route table .
In embodiments of the present invention, Fig. 5 is referred to, gateway determining module 230 includes address judging unit 231 and performed Unit 232.Address judging unit 231 is used to judge to treat corresponding to next hop router address corresponding to the indirect route list item Determine whether the IP of the network equipment belongs to the subnet;Execution unit 232 is used under judging corresponding to the indirect route list item When the IP of the network equipment to be determined belongs to the subnet corresponding to one hop router address, it is determined that the network equipment to be determined For the gateway of the subnet.
3rd embodiment
Third embodiment of the invention provides a kind of network equipment 100, refers to Fig. 1, and the network equipment includes memory 101 and processor 102.Wherein, the memory 101 is connected to the processor 102, the store instruction of memory 101, when The instruction makes the processor 102 perform the gateway that first embodiment of the invention provides when being performed by the processor 102 Acquisition methods.
Fourth embodiment
Fourth embodiment of the invention provides a kind of storage medium, and the storage medium includes the program of storage, wherein, institute State the acquisition methods that the gateway that first embodiment of the invention provides is performed during program operation.
In summary, the acquisition methods of gateway provided in an embodiment of the present invention, device, the network equipment and storage medium, lead to Cross default NMP and obtain routing table information, it is true further according to the value of the route-type of the route table items in routing table information Fixed indirect route list item, then the subnet mask of destination address and destination determines according to corresponding to the indirect route list item Subnet, it finally may determine that the IP of the network equipment to be determined corresponding to next hop router address corresponding to the indirect route list item Whether belong to the subnet, when to be, determine the gateway that the network equipment to be determined is the subnet.It is thus possible to utilize network The routing table information that NMP in management system obtains, gets net existing for subnet corresponding to indirect route list item Close, realize the acquisition of the gateway of subnet, solve in the prior art by determining that the gateway of subnet easily malfunctions and passed through by hand The problem of NM server possibly can not obtain the gateway of subnet.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to. For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is joined See the part explanation of embodiment of the method.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can also be passed through Its mode is realized.Device embodiment described above is only schematical, for example, the flow chart and block diagram in accompanying drawing show Device, architectural framework in the cards, the work(of method and computer program product of multiple embodiments according to the present invention are shown Can and it operate.At this point, each square frame in flow chart or block diagram can represent one of a module, program segment or code Point, a part for the module, program segment or code includes one or more and is used to realize the executable of defined logic function Instruction.It should also be noted that at some as in the implementation replaced, the function of being marked in square frame can also be with different from attached The order marked in figure occurs.For example, two continuous square frames can essentially perform substantially in parallel, they also may be used sometimes To perform in the opposite order, this is depending on involved function.It is it is also noted that each in block diagram and/or flow chart The combination of square frame and the square frame in block diagram and/or flow chart, can use function or action as defined in performing it is special based on The system of hardware is realized, or can be realized with the combination of specialized hardware and computer instruction.
In addition, each functional module in each embodiment of the present invention can integrate to form an independent portion Point or modules individualism, can also two or more modules be integrated to form an independent part.
If the function is realized in the form of software function module and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.Need Illustrate, herein, such as first and second or the like relational terms be used merely to by an entity or operation with Another entity or operation make a distinction, and not necessarily require or imply between these entities or operation any this reality be present The relation or order on border.Moreover, term " comprising ", "comprising" or its any other variant are intended to the bag of nonexcludability Contain, so that process, method, article or equipment including a series of elements not only include those key elements, but also including The other element being not expressly set out, or also include for this process, method, article or the intrinsic key element of equipment. In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including the key element Process, method, other identical element also be present in article or equipment.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.It should be noted that:Similar label and letter exists Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, is then not required in subsequent accompanying drawing It is further defined and explained.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (10)

1. a kind of acquisition methods of gateway, it is characterised in that methods described includes:
Obtain the indirect route list item in the routing table information of the network equipment;
Subnet is determined based on the subnet mask of destination address and destination corresponding to the indirect route list item;
The gateway of the subnet is determined based on next hop router address corresponding to the indirect route list item.
2. according to the method for claim 1, it is characterised in that indirect in the routing table information for obtaining the network equipment Before route table items, methods described also includes:
The routing table information is obtained based on default NMP.
3. method according to claim 1 or 2, it is characterised in that in the routing table information for obtaining the network equipment Indirect route list item, including:
When judging the value of the route-type of the route table items in the routing table information of the network equipment for preset value, it is determined that institute It is indirect route list item to state route table items.
4. according to the method for claim 3, it is characterised in that described to be based on next-hop corresponding to the indirect route list item Router address determines the gateway of the subnet, including:
Judge that the IP of the network equipment to be determined corresponding to next hop router address corresponding to the indirect route list item belongs to institute When stating subnet, it is determined that the network equipment to be determined is the gateway of the subnet.
5. a kind of acquisition device of gateway, it is characterised in that described device includes:Route acquisition module, subnet determining module with And gateway determining module, wherein,
The route acquisition module, the indirect route list item in routing table information for obtaining the network equipment;
The subnet determining module, for being covered based on destination address and the subnet of destination corresponding to the indirect route list item Code determines subnet;
The gateway determining module, for determining the son based on next hop router address corresponding to the indirect route list item The gateway of net.
6. device according to claim 5, it is characterised in that described device also includes routing information acquisition module, described Routing information acquisition module is used to obtain the routing table information based on default NMP.
7. the device according to claim 5 or 6, it is characterised in that the route acquisition module judges including route-type Unit and indirect route determining unit, wherein,
The route-type judging unit, the route class of a route table items in the routing table information for judging the network equipment Whether the value of type is preset value;
The indirect route determining unit, the route for a route table items in the routing table information of the network equipment as described in judging When the value of type is preset value, it is determined that the route table items are indirect route list item.
8. device according to claim 7, it is characterised in that the gateway determining module include address judging unit and Execution unit, wherein,
The address judging unit, for judging to treat corresponding to next hop router address corresponding to the indirect route list item really Whether the IP for determining the network equipment belongs to the subnet;
The execution unit is used for, judge it is to be determined corresponding to next hop router address corresponding to the indirect route list item When the IP of the network equipment belongs to the subnet, it is determined that the network equipment to be determined is the gateway of the subnet.
9. a kind of network equipment, it is characterised in that the network equipment includes memory and processor, and the memory is connected to The processor, the memory store instruction, make the computing device when executed by the processor such as Method in claim 1-4 described in any claim.
A kind of 10. storage medium, it is characterised in that computer instruction is stored with the storage medium, wherein, the computer Instruct the method performed when being run as described in any claim in claim 1-4.
CN201711026667.9A 2017-10-27 2017-10-27 Acquisition methods, device, the network equipment and the storage medium of gateway Withdrawn CN107612751A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711026667.9A CN107612751A (en) 2017-10-27 2017-10-27 Acquisition methods, device, the network equipment and the storage medium of gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711026667.9A CN107612751A (en) 2017-10-27 2017-10-27 Acquisition methods, device, the network equipment and the storage medium of gateway

Publications (1)

Publication Number Publication Date
CN107612751A true CN107612751A (en) 2018-01-19

Family

ID=61080545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711026667.9A Withdrawn CN107612751A (en) 2017-10-27 2017-10-27 Acquisition methods, device, the network equipment and the storage medium of gateway

Country Status (1)

Country Link
CN (1) CN107612751A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472911A (en) * 2021-06-10 2021-10-01 新华三信息安全技术有限公司 Subnet dividing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756189A (en) * 2004-09-30 2006-04-05 北京航空航天大学 IP network topology discovering method based on SNMP
CN101141308A (en) * 2007-10-15 2008-03-12 清华大学 Topology discovering method of IP backbone network
CN102045190A (en) * 2009-10-21 2011-05-04 杭州华三通信技术有限公司 Network topology discovery method and device
CN102143007A (en) * 2011-05-03 2011-08-03 中国南方电网有限责任公司 Distribution-based hierarchical network topology discovery method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756189A (en) * 2004-09-30 2006-04-05 北京航空航天大学 IP network topology discovering method based on SNMP
CN101141308A (en) * 2007-10-15 2008-03-12 清华大学 Topology discovering method of IP backbone network
CN102045190A (en) * 2009-10-21 2011-05-04 杭州华三通信技术有限公司 Network topology discovery method and device
CN102143007A (en) * 2011-05-03 2011-08-03 中国南方电网有限责任公司 Distribution-based hierarchical network topology discovery method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472911A (en) * 2021-06-10 2021-10-01 新华三信息安全技术有限公司 Subnet dividing method and device
CN113472911B (en) * 2021-06-10 2023-05-16 新华三信息安全技术有限公司 Subnet dividing method and device

Similar Documents

Publication Publication Date Title
US11824719B2 (en) Discovering and grouping application endpoints in a network environment
US10200279B1 (en) Tracer of traffic trajectories in data center networks
US9438512B2 (en) Stacking metadata contexts for service chains
US11777966B2 (en) Systems and methods for causation analysis of network traffic anomalies and security threats
CN109845200A (en) It detects and prevents network loop
CN104350467A (en) Elastic enforcement layer for cloud security using SDN
DE102015013946A1 (en) Network-based service Function Chaining
CN108632235B (en) Network packet classification decision tree establishment method and device
CN107315690A (en) The record repaired after analyzing and packaging and the method and system used
CN106664261A (en) Method, device, and system for configuring flow entries
DE102014117460A1 (en) Programmable distributed networking
CN109672562B (en) Data processing method and device, electronic equipment and storage medium
US11296964B2 (en) Technologies for dynamically generating network topology-based and location-based insights
US11716250B2 (en) Network scale emulator
CN107919973B (en) Method and apparatus for configuring network device parameters
US11750463B2 (en) Automatically determining an optimal amount of time for analyzing a distributed network environment
CN104836738A (en) Router hardware item resource management method and device, and network equipment
CN107896188A (en) Data forwarding method and device
TWI636679B (en) Virtual local area network configuration system and method, and computer program product thereof
EP4207699A1 (en) Service packet forwarding method, sr policy sending method, device, and system
US7733800B2 (en) Method and mechanism for identifying an unmanaged switch in a network
CN107612751A (en) Acquisition methods, device, the network equipment and the storage medium of gateway
CN109756411B (en) Message forwarding method and device, first VTEP device and storage medium
CN108989311A (en) Generate the method and apparatus of input parameter
US8665752B2 (en) Network modeling, service provisioning, and service management

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20180119