CN102724061B - A kind of network interface management method - Google Patents

A kind of network interface management method Download PDF

Info

Publication number
CN102724061B
CN102724061B CN201210109934.XA CN201210109934A CN102724061B CN 102724061 B CN102724061 B CN 102724061B CN 201210109934 A CN201210109934 A CN 201210109934A CN 102724061 B CN102724061 B CN 102724061B
Authority
CN
China
Prior art keywords
interface
network interface
network
relation table
dynamic link
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.)
Expired - Fee Related
Application number
CN201210109934.XA
Other languages
Chinese (zh)
Other versions
CN102724061A (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 New Network 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 Chengdu Guangda New Network Technology Co Ltd filed Critical Chengdu Guangda New Network Technology 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

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a kind of network interface management method, the method comprises the following steps: A, establishment network interface dynamic link table, and this chained list comprises interface ID, interface name and Interface status; B, the network interface quantity establishment network interface relation table supported according to system, 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, network interface to be created, index and deletion.There is the advantage in conjunction with the convenient expansion of dynamic link table and relation table fast access, while keeping once-through operation to realize network interface establishment, deletion, present invention achieves the scheme once comparing and add and once access and can obtain network interface structure, greatly improve the outstanding advantages of the efficiency of network interface management.

Description

A kind of network interface management method
Technical field
The present invention relates to network communication technology field, especially relate to a kind of network interface management method.
Background technology
In data communication network, router plays important data retransmission function, three layer data be responsible in ISO seven layer network forward, realize data retransmission between different two-layer protocol, as data are forwarded to atm network from Ethernet, and the various Extended Protocol forwarded based on three layers, as IP tunnel etc.Therefore the interface management function for various heterogeneous networks in router always is router software key problem in technology, 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 router, dynamically delete feature, in conventional router software simulating, the general dynamic link table that adopts realizes network interface management (as shown in Fig. 1 ~ 4, respectively describe the structure of legacy network interfaces management, constructive process, Index process and delete procedure), instead of efficiency is higher but not easily expand array organizational form.But be limited to dynamic link table composition, in chained list member Index process, efficiency is lower, generally be chained list traversal mode and carry out member's index, worst case may need traversal complete chained list to obtain network interface structure, although can solve by introducing HASH technology in double linked list the low efficiency problem traveling through index and bring, but still there is the port members caused because of HASH conflict in theory and travel through the lower problem of efficiency, when showing that router device supports that network interface up to ten thousand manages simultaneously especially, and this port members to travel through efficiency low by direct routing device device data forwarding performance.
Summary of the invention
The object of the invention is to: in order to solve the degraded performance problem that legacy network interfaces Managed Solution runs in practice, the invention provides a kind of network interface management method, this invention is while maintenance conventional dynamic chained list hoc interfaces flexible structure augmented features, increase newly and achieve network interface member quick indexing relation table, relation table realizes the high-efficiency network interface structure Managed Solution that similar array member once accesses whereby.
Object of the present invention is achieved through the following technical solutions:
A kind of network interface management method, it is characterized in that, the method comprises the following steps:
A, establishment network interface dynamic link table, this chained list comprises interface ID, interface name and Interface status;
B, the network interface quantity establishment network interface relation table supported according to system, 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, network interface to be created, index and deletion.
Described step D is specially:
When system creation network interface, first create network interface structure and this structure is added network interface dynamic link table; Then the mode bit revising corresponding element in network interface relation table according to interface ID be effective, and is kept at by interface IP address in network interface relation table;
When system index network interface, according to element corresponding in interface ID Network Search interface relationship table, first confirm that whether Interface status is effective, if for invalid, returning index error represents that map network interface does not also create, otherwise, directly return interface IP address in network interface relation table;
When system-kill network interface, according to element corresponding in interface ID Network Search interface relationship table, first confirm that whether Interface status is effective, if for invalid, return deletion error display map network interface and also do not create, otherwise, network interface structure pointer is obtained according to interface IP address in network interface relation table, first network interface structure is deleted from network interface dynamic link table, releasing network interface structure, then it is invalid to be set to by the Interface status of corresponding element in network interface relation table, and revision corresponding interface address is invalid.
Compared with prior art, the present invention technically increases newly at traditional dynamic link table and establishes network interface relation table, relation table realizes the high-efficiency network interface structure Managed Solution that similar array member once accesses whereby, thus make the present invention not only have the convenient expansion of dynamic link table and relation table fast access, keep once-through operation to realize network interface to create, the advantage of deleting, compare legacy network interfaces management may need when managing interface up to ten thousand compare and access the mode that could obtain network interface structure for up to ten thousand times simultaneously, greatly improve the efficiency of network interface management.
Accompanying drawing explanation
Fig. 1 is legacy network interfaces managerial structure schematic diagram;
Fig. 2 is legacy network interfaces constructive process schematic diagram;
Fig. 3 is legacy network interfaces Index process schematic diagram;
Fig. 4 is legacy network interfaces delete procedure schematic diagram;
Fig. 5 is network interface management structural representation of the present invention;
Fig. 6 is network interface constructive process schematic diagram of the present invention;
Fig. 7 is network interface Index process schematic diagram of the present invention;
Fig. 8 is network interface constructive process schematic diagram of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
embodimenta kind of network interface management method, this method continues to use conventional dynamic chained list network interface structure way to manage, uses dynamic table hoc interfaces structure member, realizes that network interface structure increases fast, deleting technique; Create network interface ID-network interface structure address-network interface significance bit relation table (hereinafter referred to as network interface relation table) simultaneously, this relation table adopts network interface ID to be index, Coutinuous store spatial data structure tissue, realize once being accessed by network interface ID obtaining network interface structure scheme, in relation table, network interface significance bit is used for representing that whether corresponding relation table element is legal, synchronized update state when network interface establishment, deletion time.The method comprises the following steps:
Step 1, as shown in Figure 5, create network interface dynamic link table, this chained list comprises interface ID, interface name and Interface status, each element representation network interface structure of this chained list, supports dynamic creation, delete interface.Create network interface relation table according to the network interface quantity that system is supported, this relation table comprises interface ID: with interface ID in network interface structure always, as relation table index; Interface status: on the contrary be set to effectively for invalid when network interface creates; Interface IP address: storage networking interface structure address, realizes fast access; Each element of this network interface relation table manages an interface, according to the relation table of system interface quantity initialization n element.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, network interface to be created, index and deletion.
As shown in Figure 6, in figure, chained list comprises A, B, C tri-interfaces, as system creation network interface D, first creates interface D network interface structure, and this structure is added network interface dynamic link table; Then the mode bit revising corresponding element in network interface relation table according to interface ID be effective, and is kept in network interface relation table by interface IP address.
As shown in Figure 7, in figure, chained list comprises A, B, C, D tetra-interfaces, as system index network interface D, the ID of this network interface D is 4, be then 4 according to interface ID() in Network Search interface relationship table be 4 element, first confirm that whether Interface status is effective, if for invalid, returning index error represents that map network interface does not also create, otherwise, directly return interface IP address in network interface relation table, thus achieve once compare add once access can obtain network interface structure, compare traditional network configuration Managed Solution and greatly improve the network configuration efficiency of management,
As shown in Figure 8, in figure, chained list comprises A, B, C, D tetra-interfaces, as system-kill network interface C, be 3 according to interface ID(), element 3 corresponding in Network Search interface relationship table, first confirm that whether Interface status is effective, if for invalid, return deletion error display map network interface and also do not create, otherwise, network interface structure pointer is obtained according to interface IP address in network interface relation table, first the network interface structure of interface C is deleted from network interface dynamic link table, releasing network interface structure, then it is invalid to be set to by the Interface status of corresponding element in network interface relation table (i.e. interface ID3), revision corresponding interface address is invalid, thus achieve once compare add once access can obtain network interface structure, compare traditional network configuration Managed Solution and greatly improve the network configuration efficiency of management.
Expand and relation table fast access advantage in conjunction with dynamic link table is convenient, keep once-through operation to realize network interface to create, delete simultaneously, present invention achieves once to compare to add once to access and can obtain the efficient Managed Solution of network interface structure, comparing legacy network interfaces management may need when managing interface up to ten thousand compare and access the efficiency that the mode that could obtain network interface structure improves network interface management greatly for up to ten thousand times.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, it should be pointed out that all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (1)

1. a network interface management method, is characterized in that, the method comprises the following steps:
A, establishment network interface dynamic link table, this chained list comprises interface ID, interface name and Interface status;
B, the network interface quantity establishment network interface relation table supported according to system, this relation table comprises interface ID, Interface status and 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, network interface to be created, index and deletion;
Described step D is specially:
When system creation network interface, first create network interface structure and this structure is added network interface dynamic link table; Then the mode bit revising corresponding element in network interface relation table according to interface ID be effective, and is kept at by interface IP address in network interface relation table;
When system index network interface, according to element corresponding in interface ID Network Search interface relationship table, first confirm that whether Interface status is effective, if for invalid, return index error, represent that map network interface does not also create, otherwise, directly return the interface IP address in network interface relation table;
When system-kill network interface, according to element corresponding in interface ID Network Search interface relationship table, first confirm that whether Interface status is effective, if for invalid, return deletion error, display map network interface does not also create, otherwise, network interface structure pointer is obtained according to the interface IP address in network interface relation table, first network interface structure is deleted from network interface dynamic link table, releasing network interface structure, then it is invalid to be set to by the Interface status of corresponding element in network interface relation table, 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 CN102724061A (en) 2012-10-10
CN102724061B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN107562420B (en) * 2017-08-31 2019-12-06 杭州迪普科技股份有限公司 Linux environment network interface structure memory processing method and device
CN113259271B (en) * 2021-07-15 2021-09-24 武汉绿色网络信息服务有限责任公司 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

Also Published As

Publication number Publication date
CN102724061A (en) 2012-10-10

Similar Documents

Publication Publication Date Title
Mayer et al. Fogstore: Toward a distributed data store for fog computing
CN103139037B (en) For realizing the method and apparatus of VLAN flexibly
US20170111450A1 (en) Data Storage Method, SDN Controller, and Distributed Network Storage System
EP3361387A1 (en) Data transmission method, equipment and system
CN103430499B (en) The method and apparatus of multicast packet Path Setup in network virtualization system
CN102724061B (en) A kind of network interface management method
KR101268440B1 (en) Management system for global network slice and method thereof
WO2019109970A1 (en) Network management method and apparatus, electronic device and storage medium
CN104823405A (en) IP multicast service leave process for MPLS-based virtual private cloud networking
CN104871483A (en) IP multicast service join process for MPLS-based virtual private cloud networking
CN104077239B (en) IP hard disk, and memory system and data operation method thereof
CN104462549A (en) Data processing method and device
CN103546380B (en) A kind of message forwarding method based on policybased routing and device
CN102195815B (en) Network management method and device
CN107104824A (en) A kind of network topology determines method and apparatus
CN108683523B (en) SDN framework based on network virtualization
CN103118148A (en) Method and device for updating ARP (address resolution protocol) cache
CN107291876A (en) A kind of DDM method
JP6884891B2 (en) Route synchronization
CN105812264A (en) Multi-way parallel MAC address learning and address lookup device and method
CN105704033A (en) Realization method of passive optical network (PON)device route forwarding table management
EP3086512B1 (en) Implementation method and apparatus for vlan to access vf network and fcf
EP1924033B1 (en) Method and apparatus for implementing a layer1 virtual private network l1 vpn
EP2736201A1 (en) Routing table management method and system
CN115865844B (en) Virtual-real combined dynamic flow scheduling method and device based on SDN (software defined network) and NDN (non-dynamic network)

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

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.

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

Granted publication date: 20160217

Termination date: 20210416

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