CN102724061A - Network interface management method - Google Patents

Network interface management method Download PDF

Info

Publication number
CN102724061A
CN102724061A CN201210109934XA CN201210109934A CN102724061A CN 102724061 A CN102724061 A CN 102724061A CN 201210109934X A CN201210109934X A CN 201210109934XA CN 201210109934 A CN201210109934 A CN 201210109934A CN 102724061 A CN102724061 A CN 102724061A
Authority
CN
China
Prior art keywords
interface
network interface
network
relation table
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210109934XA
Other languages
Chinese (zh)
Other versions
CN102724061B (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.)
Chengdu Guangda Hengji Communication Technology Co., Ltd
Original Assignee
CHENGDU GUANGDA ELECTRONIC & TELECOM TECHNOLOGY DEVELOPMENT 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 CHENGDU GUANGDA ELECTRONIC & TELECOM TECHNOLOGY DEVELOPMENT Co Ltd filed Critical CHENGDU GUANGDA ELECTRONIC & TELECOM TECHNOLOGY DEVELOPMENT Co Ltd
Priority to CN201210109934.XA priority Critical patent/CN102724061B/en
Publication of CN102724061A publication Critical patent/CN102724061A/en
Application granted granted Critical
Publication of CN102724061B publication Critical patent/CN102724061B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a network interface management method. The method comprises the following steps: A, creating a network interface dynamic linked list, wherein the linked list comprises an interface ID, an interface identifier, and an interface state; B, creating a network interface relation table according to the number of network interfaces supported by a system, wherein the relation table comprises the interface ID, the interface state, and an interface address; C, carrying out initialization on all interface states of the network interface relation table to make the interface states ineffective, and carrying out initialization on the network interface dynamic linked list to make the network interface dynamic linked list empty; and D, carrying out creating, indexing and deleting on the network interfaces according to a system requirement. The method has the advantages that the dynamic linked list can be conveniently expanded and the relation table can be immediately accessed. The realization of the creating and deleting of the network interfaces in one operation is maintained, meanwhile the method of the invention realizes a scheme that a network interface structure can be acquired with one comparison plus one access, and has the outstanding advantage of greatly improving the efficiency of the network interface management.

Description

A kind of network interface management method
Technical field
The present invention relates to network communications technology field, especially relate to a kind of network interface management method.
Background technology
In data communication network; Router is being played the part of important data forwarding function; Three layer data of being responsible in ISO seven layer networks are transmitted, and realize data forwarding between the different two-layer protocols, are forwarded to atm network like data from Ethernet; And various Extended Protocols based on three layers of forwarding, like IP tunnel etc.Therefore the interface management function to various heterogeneous networks always is the router software key problem in technology in the router, and correlation technique comprises network interface establishment, network interface deletion, network interface index, network interface configuration change etc.In order to support network interface dynamic creation in the router, dynamically to delete characteristic; The general dynamic link table that adopts realized that network interface management is (shown in Fig. 1 ~ 4 during conventional router software was realized; Structure, constructive process, index process and the delete procedure of legacy network interface management have been described respectively), rather than the higher but difficult expansion array organizational form of efficient.Yet being subject to dynamic link table forms; Efficient is lower in chained list member index process; Generally be chained list traversal mode and carry out member's index; Worst case possibly need complete chained list of traversal just can obtain the network interface structure, though can solve the low efficiency problem that the traversal index brings through in double linked list, introducing the HASH technology, still exists the port member who causes because of the HASH conflict to travel through the low problem of efficient in theory; Show especially when router device supports that network interfaces up to ten thousand are managed simultaneously, and that this port member travels through efficient is low with direct router device data forwarding performance.
Summary of the invention
The objective of the invention is to: in order to solve the low problem of performance that legacy network interface management scheme runs in reality; The invention provides a kind of network interface management method; This invention is when keeping the flexible augmented features of conventional dynamic chained list organization network interface structure; Increase newly and realized network interface member quick indexing relation table, relation table is realized the high-efficiency network interface structure Managed Solution that similar array member once visits whereby.
The object of the invention is realized through following technical scheme:
A kind of network interface management method is characterized in that, this method may further comprise the steps:
A, establishment network interface dynamic link table, this chained list comprises interface ID, interface name and Interface status;
B, the network interface quantity of supporting according to system are created the network interface relation table, and this relation table comprises interface ID, Interface status, interface IP address;
The total interface state of C, initialization network interface relation table is invalid, and initialization network interface dynamic link table is empty;
D, according to system requirements, to network interface create, index and deletion.
Described step D is specially:
When the system creation network interface, create the network interface structure earlier and this structure is added the network interface dynamic link table; Mode bit according to corresponding element in the interface ID revision network interface relation table is effectively then, and interface IP address is kept in the network interface relation table;
When the system index network interface; According to element corresponding in the interface ID Network Search interface relationship table, confirm earlier whether Interface status is effective, if for invalid then return index error and represent that the map network interface also creates; Otherwise, directly return interface IP address in the network interface relation table;
When the system-kill network interface; According to element corresponding in the interface ID Network Search interface relationship table, confirm earlier whether Interface status is effective, if for invalid then return deletion error and show that the map network interface also creates; Otherwise; Obtain the network interface structured fingers according to interface IP address in the network interface relation table, the network interface structure is deleted the releasing network interface structure earlier from the network interface dynamic link table; It is invalid then the Interface status of corresponding element in the network interface relation table to be made as, and revision corresponding interface address is invalid.
Compared with prior art; The present invention is at the technical newly-increased network interface relation table of having set up of conventional dynamic chained list; Relation table is realized the high-efficiency network interface structure Managed Solution that similar array member once visits whereby; Thereby make the present invention not only have convenient expansion of dynamic link table and relation table fast access; Keep once-through operation to realize that network interface is created, the advantage of deletion, compare simultaneously the legacy network interface management when management interface up to ten thousand, possibly need up to ten thousand times relatively and visit just can obtain the mode of network interface structure, promoted the efficient of network interface management greatly.
 
Description of drawings
Fig. 1 is a legacy network interface management structural representation;
Fig. 2 is a legacy network interface constructive process sketch map;
Fig. 3 is a legacy network interface index process sketch map;
Fig. 4 is a legacy network interface delete procedure sketch map;
Fig. 5 is a network interface management structural representation of the present invention;
Fig. 6 is a network interface constructive process sketch map of the present invention;
Fig. 7 is a network interface index process sketch map of the present invention;
Fig. 8 is a network interface constructive process sketch map of the present invention.
Embodiment
Below in conjunction with accompanying drawing and specific embodiment the present invention is elaborated.
EmbodimentA kind of network interface management method, this method are continued to use conventional dynamic chained list network interface structure management mode, use dynamic table organization network interface structure member, realize that the network interface structure increases fast, deleting technique; Create network interface ID-network interface structure address-network interface significance bit relation table (to call the network interface relation table in the following text) simultaneously; It is index that this relation table adopts network interface ID; Continuous memory space data structure organization; Realization is once visited through networking interface ID can obtain the network interface organization plan, and the network interface significance bit is used for representing whether the corresponding relation table element is legal in the relation table, when network interface is created, synchronous update mode when deleting.This method may further comprise the steps:
Step 1, as shown in Figure 5 is created the network interface dynamic link table, and this chained list comprises interface ID, interface name and Interface status, and network interface structure of each element representation of this chained list is supported dynamic creation, delete interface.Network interface quantity according to system supports is created the network interface relation table, and this relation table comprises interface ID: with interface ID in the network interface structure always, as the relation table index; Interface status: on the contrary network interface is changed to when creating effectively for invalid; Interface IP address: storage networking interface structure address, realize fast access; Interface of each element management of this network interface relation table is according to the relation table of n element of system interface quantity initialization.The total interface state of initialization network interface relation table is invalid, and initialization network interface dynamic link table is empty;
Step 2, according to system requirements, to network interface create, index and deletion.
As shown in Figure 6, chained list comprises A, B, three interfaces of C among the figure, when system creation network interface D, creates interface D network interface structure earlier, and this structure is added the network interface dynamic link table; Mode bit according to corresponding element in the interface ID revision network interface relation table is effectively then, and interface IP address is kept in the network interface relation table.
As shown in Figure 7, chained list comprises A, B, C, four interfaces of D among the figure, when system index network interface D; The ID of this network interface D is 4; Then according to the element that in interface ID (being 4) the Network Search interface relationship table is 4, confirm earlier whether Interface status is effective, if for invalid then return index error and represent that the map network interface also creates; Otherwise; Directly return interface IP address in the network interface relation table, can obtain the network interface structure, compare traditional network configuration Managed Solution and promoted the network configuration efficiency of management greatly thereby realized once relatively adding once visit;
As shown in Figure 8, chained list comprises A, B, C, four interfaces of D among the figure, when system-kill network interface C; According to interface ID (being 3), the element 3 of correspondence in the Network Search interface relationship table confirms earlier whether Interface status is effective; If for invalid then return deletion error and show that the map network interface also creates, otherwise, the network interface structured fingers obtained according to interface IP address in the network interface relation table; Earlier the network interface structure of interface C is deleted from the network interface dynamic link table; The releasing network interface structure, it is invalid then the Interface status of corresponding element in the network interface relation table (being interface ID3) to be made as, and revision corresponding interface address is invalid; Thereby realized once relatively adding once visit and can obtain the network interface structure, compared traditional network configuration Managed Solution and promoted the network configuration efficiency of management greatly.
Expand and relation table fast access advantage in conjunction with dynamic link table is convenient; Keep once-through operation to realize that network interface is created, the deletion while; The present invention has realized once relatively adding once visiting and can obtain network interface structure high-efficiency management scheme, and comparing the legacy network interface management possibly need up to ten thousand times to compare and visit the efficient that the mode that just can obtain the network interface structure has promoted network interface management greatly when management interface up to ten thousand.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, should be pointed out that all any modifications of within spirit of the present invention and principle, being done, is equal to replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (2)

1. a network interface management method is characterized in that, this method may further comprise the steps:
A, establishment network interface dynamic link table, this chained list comprises interface ID, interface name and Interface status;
B, the network interface quantity of supporting according to system are created the network interface relation table, and this relation table comprises interface ID, Interface status, interface IP address;
The total interface state of C, initialization network interface relation table is invalid, and initialization network interface dynamic link table is empty;
D, according to system requirements, to network interface create, index and deletion.
2. a kind of network interface management method according to claim 1 is characterized in that described step D is specially:
When the system creation network interface, create the network interface structure earlier and this structure is added the network interface dynamic link table; Mode bit according to corresponding element in the interface ID revision network interface relation table is effectively then, and interface IP address is kept in the network interface relation table;
When the system index network interface; According to element corresponding in the interface ID Network Search interface relationship table, confirm earlier whether Interface status is effective, if for invalid then return index error and represent that the map network interface also creates; Otherwise, directly return interface IP address in the network interface relation table;
When the system-kill network interface; According to element corresponding in the interface ID Network Search interface relationship table, confirm earlier whether Interface status is effective, if for invalid then return deletion error and show that the map network interface also creates; Otherwise; Obtain the network interface structured fingers according to interface IP address in the network interface relation table, the network interface structure is deleted the releasing network interface structure earlier from the network interface dynamic link table; It is invalid then the Interface status of corresponding element in the network interface relation table to be made as, and revision corresponding interface address is invalid.
CN201210109934.XA 2012-04-16 2012-04-16 A kind of network interface management method Expired - Fee Related CN102724061B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210109934.XA CN102724061B (en) 2012-04-16 2012-04-16 A kind of network interface management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210109934.XA CN102724061B (en) 2012-04-16 2012-04-16 A kind of network interface management method

Publications (2)

Publication Number Publication Date
CN102724061A true CN102724061A (en) 2012-10-10
CN102724061B CN102724061B (en) 2016-02-17

Family

ID=46949730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210109934.XA Expired - Fee Related CN102724061B (en) 2012-04-16 2012-04-16 A kind of network interface management method

Country Status (1)

Country Link
CN (1) CN102724061B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103701726A (en) * 2013-12-31 2014-04-02 上海斐讯数据通信技术有限公司 Interface index managing method and system of core switch
CN107196936A (en) * 2017-05-19 2017-09-22 广东万丈金数信息技术股份有限公司 Interface retransmission method, system, computer equipment and storage medium
CN107562420A (en) * 2017-08-31 2018-01-09 杭州迪普科技股份有限公司 Processing method and processing device is deposited in a kind of Linux environment network interface structure body
CN113259271A (en) * 2021-07-15 2021-08-13 武汉绿色网络信息服务有限责任公司 Message switching method and message switching system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047649A (en) * 2007-04-05 2007-10-03 华为技术有限公司 Method and equipment for transmitting data flow
CN101192944A (en) * 2006-11-21 2008-06-04 中兴通讯股份有限公司 A management method and system for communication device port information
EP2053780A1 (en) * 2006-07-28 2009-04-29 ZTE Corporation A distributed master and standby managing method and system based on the network element
CN101551807A (en) * 2009-05-07 2009-10-07 山东中创软件商用中间件股份有限公司 Multilevel index technology for file database

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2053780A1 (en) * 2006-07-28 2009-04-29 ZTE Corporation A distributed master and standby managing method and system based on the network element
CN101192944A (en) * 2006-11-21 2008-06-04 中兴通讯股份有限公司 A management method and system for communication device port information
CN101047649A (en) * 2007-04-05 2007-10-03 华为技术有限公司 Method and equipment for transmitting data flow
CN101551807A (en) * 2009-05-07 2009-10-07 山东中创软件商用中间件股份有限公司 Multilevel index technology for file database

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103701726A (en) * 2013-12-31 2014-04-02 上海斐讯数据通信技术有限公司 Interface index managing method and system of core switch
CN103701726B (en) * 2013-12-31 2018-02-06 上海斐讯数据通信技术有限公司 The interface index management method and system of a kind of core switch
CN107196936A (en) * 2017-05-19 2017-09-22 广东万丈金数信息技术股份有限公司 Interface retransmission method, system, computer equipment and storage medium
CN107562420A (en) * 2017-08-31 2018-01-09 杭州迪普科技股份有限公司 Processing method and processing device is deposited in a kind of Linux environment network interface structure body
CN107562420B (en) * 2017-08-31 2019-12-06 杭州迪普科技股份有限公司 Linux environment network interface structure memory processing method and device
CN113259271A (en) * 2021-07-15 2021-08-13 武汉绿色网络信息服务有限责任公司 Message switching method and message switching system

Also Published As

Publication number Publication date
CN102724061B (en) 2016-02-17

Similar Documents

Publication Publication Date Title
Mayer et al. Fogstore: Toward a distributed data store for fog computing
CN103067433B (en) A kind of data migration method of distributed memory system, equipment and system
CN103139037B (en) For realizing the method and apparatus of VLAN flexibly
US20100246446A1 (en) Tree-based node insertion method and memory device
CN103559032B (en) The device and method of embedded system Object Management group
CN102857414A (en) Forwarding table writing method and device and message forwarding method and device
CN104462549A (en) Data processing method and device
CN103324763B (en) Presenting method for tree-form data structure of mobile phone terminal
CN101594319A (en) List item lookup method and device
CN102724061A (en) Network interface management method
CN103560959B (en) Method and device for selecting static route
CN107291876A (en) A kind of DDM method
CN103226591B (en) A kind of support multiple key quick access method and device
CN108199967A (en) Route processing method and device
CN103336782A (en) Relational distributed database system
CN107786669A (en) A kind of method of load balance process, server, device and storage medium
CN104601471B (en) The reading/writing method and network processing unit of a kind of forwarding information table
CN103605728A (en) Method and system for hierarchically storing data
CN105591872B (en) A kind of method and apparatus for realizing multiple data centers interconnection
CN107612702A (en) A kind of method for configuring routers and device
CN114513530A (en) Cross-domain storage space bidirectional supply method and system
CN103530067B (en) A kind of method and apparatus of data manipulation
WO2009059476A1 (en) A method for distributing the device number in a stacking system
CN113055448B (en) Metadata management method and device
CN103457855A (en) Method and device for establishing classless inter-domain routing table and forwarding messages

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: High tech Zone Shiyang street Chengdu city Sichuan Province, Qingyun 610041 village five group No. fifty-five Shiyang Industrial Park No. two building four floor

Applicant after: Chengdu Guangda Electronic Corporation Co., Ltd.

Address before: High tech Zone Shiyang street Chengdu city Sichuan Province, Qingyun 610041 village five group No. fifty-five Shiyang Industrial Park No. two building four floor

Applicant before: Chengdu Guangda Electronic Telecommunications Technology Development Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: CHENGDU GUANGDA ELECTRONIC + TELECOM TECHNOLOGY DEVELOPMENT CO., LTD. TO: CHENGDU GUANGDA ELECTRONIC CORPORATION CO., LTD.

CB02 Change of applicant information

Address after: High tech Zone Shiyang street Chengdu city Sichuan Province, Qingyun 610041 village five group No. fifty-five Shiyang Industrial Park No. two building four floor

Applicant after: CHENGDU GUANGDA NEW NETWORK TECHNOLOGY CO., LTD.

Address before: High tech Zone Shiyang street Chengdu city Sichuan Province, Qingyun 610041 village five group No. fifty-five Shiyang Industrial Park No. two building four floor

Applicant before: Chengdu Guangda Electronic Corporation Co., Ltd.

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200730

Address after: Floor 2, No.16, Gaopeng Avenue, high tech Zone, Chengdu, Sichuan 610000

Patentee after: Chengdu Guangda Hengji Communication Technology Co., Ltd

Address before: 610041 building four, building two, Shiyang Industrial Park, five village, Shiyang village, fifty-five village, Chengdu hi tech Zone, Sichuan, Qingyun

Patentee before: CHENGDU GUANGDA NEW NETWORK TECHNOLOGY Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160217

Termination date: 20210416