CN101115001A - Host computer of ADSL router and PVC dynamic binding method - Google Patents

Host computer of ADSL router and PVC dynamic binding method Download PDF

Info

Publication number
CN101115001A
CN101115001A CNA2007100757990A CN200710075799A CN101115001A CN 101115001 A CN101115001 A CN 101115001A CN A2007100757990 A CNA2007100757990 A CN A2007100757990A CN 200710075799 A CN200710075799 A CN 200710075799A CN 101115001 A CN101115001 A CN 101115001A
Authority
CN
China
Prior art keywords
port
forwarding
table item
message
item
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
CNA2007100757990A
Other languages
Chinese (zh)
Other versions
CN101115001B (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.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics 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 Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN2007100757990A priority Critical patent/CN101115001B/en
Publication of CN101115001A publication Critical patent/CN101115001A/en
Application granted granted Critical
Publication of CN101115001B publication Critical patent/CN101115001B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

A method of dynamically binding a host of an ADSL router and PVC which comprises: a. a bridge port of the ADSL router is provided with a dynamic binding attribute to lead the bridge port of the ADSL router with the dynamic binding attribute to be bound by a given host and a plurality of bridges are formed by dividing the port to bind the given port to the given PVC; b. an item of binding port is arranged in a structure of list item transmission to indicate the port of the list item transmission. The invention is characterized in that: the method is not restricted by the physical group on the internet; all the hosts under the same port can be bound to different ports and the ports do not interfere with each other; the maintenance resource can be saved, etc.

Description

The method of the main frame of adsl router and PVC dynamic binding
[technical field]
The present invention relates to the network trunk technology in the communication technology, particularly relate to a kind of method of main frame and PVC dynamic binding of adsl router.
[background technology]
FOR ALL WE KNOW, router is a kind of equipment that packet is carried out relaying on network.As shown in Figure 1, general A DSL router interior all has the bridge model of a multiport, and its bridge joint port comprises the Ethernet interface of Ethernet interface, PVC (PVC), radio port and USB simulation.On these bridge joint ports, message forwarding is being followed the following principle of bridges forward:
1, the source MAC (media access control address) of study message, record source MAC and source port and upgrade the timestamp of forwarding-table item in transmit;
2, utilize the target MAC (Media Access Control) address of message to search and transmit, the destination interface that the port that writes down in the corresponding forwarding-table item is transmitted as message carries out message and transmits;
Be broadcast address, just this message broadcasted to all other ports if 3 utilize target MAC (Media Access Control) address to search less than corresponding forwarding-table item or destination address;
4, a period of time (for example 1 minute) does not have the forwarding-table item of renewal, can be because overtime being deleted by the system.
Wherein, both transmitted and can organize with chained list, and also can organize with HASH (Hash table) table, and used HASH to show to organize to improve seek rate usually, and used chained list to solve the HASH collision problem simultaneously, the structural representation of list item is as follows:
struct?fib_entry
{
List_entry list; // list structure
Byte mac[6]; //MAC Address
Int port_no; // have a port index that the main frame of this MAC Address connects
Time_t time_stamp; The timestamp of // forwarding-table item
};
According to mentioned above principle, the intercommunication mutually between each port is freely, is not subjected to any restriction.Carry out some restrictions but then need transmit message sometimes, for example, certain main frame that LAN interface inserts can only be communicated by letter with specific PVC, and perhaps its flow can only be forwarded on the PVC.Generally, adopt a kind of binding technology, by divide mode that port forms a plurality of bridges specific port binding to specific PVC.Under the situation of port binding, still there are a lot of defectives:
1, LAN/USB/VAP (Virtual Access Point the is virtual wireless access node) port that is bound to different PVC can not be visited mutually;
2, Bang Ding relation is fixed, and limits too dead;
3, binding realizes that in the port one-level All hosts under the same port is subjected to same restriction;
4, transmitting of each bridge model maintenance oneself, the waste resource.
[summary of the invention]
The present invention is intended to address the above problem, and provide a kind of online restriction of physical set that is not subjected to, All hosts under the same port can be tied to different port and each port does not disturb mutually, can save the main frame of adsl router of maintenance resources and the method for PVC dynamic binding.
For achieving the above object, the invention provides a kind of method of main frame and PVC dynamic binding of adsl router, this method comprises:
A, the dynamic binding attribute is set, makes bridge joint port, form a plurality of bridges by dividing port by specific host binding with dynamic binding attribute at the bridge joint port of adsl router, with specific port binding to specific PVC;
B, the bundling port item is set, in the forwarding-table item structure to indicate the bound port of this forwarding-table item.
Message forwarding is carried out as follows:
A, for the message that the port that never has the dynamic binding attribute receives, the application target MAC Address is searched forwarding-table item, if find forwarding-table item with target MAC (Media Access Control) address, then sends the corresponding port of message in the forwarding-table item;
If b search less than, then use source MAC to search forwarding-table item, if search less than create a new forwarding-table item; If find corresponding forwarding-table item, then upgrade the timestamp of forwarding-table item.No matter be the new list item of creating, still original list item all will be handled list item, if the bundling port in the forwarding-table item is non--1 value, then message is forwarded to bundling port; If the bundling port in the forwarding-table item is-1, then to all of the port broadcasting packet.
C, for the message that receives from port with dynamic binding attribute, the application target MAC Address is searched and is transmitted, transmit if find, upgrade bundling port in the forwarding-table item with regard to the port index that uses this port, stab update time simultaneously, then message is forwarded to the corresponding port in the forwarding-table item; Transmit if can not find, then message is transmitted to each port.
D, transmitting of not upgrading in a period of time will be deleted by the system because of overtime.
In step b, when creating forwarding-table item, an initialization list structure, MAC Address, source port and timestamp information.
Contribution of the present invention is that it efficiently solves the defective of the non-dynamic binding method of existing main frame and PVC.The present invention forms the mode of a plurality of bridges by dividing port, and specific port binding to specific PVC, thereby is had following distinguishing feature:
One, the LAN/USB/VAP port that dynamically is tied to different PVC is isolated, and does not disturb mutually;
Two, Bang Ding relation is dynamic, is not subjected to the online restriction of physical set;
Three, dynamic binding realizes that in the main frame one-level All hosts under the same port can be tied to different port;
Four, owing to do not divide VLAN, transmit, save resource so whole BRIDGE safeguards one.
[description of drawings]
Fig. 1 is existing adsl router bridge model structure schematic diagram.
Fig. 2 is an adsl router bridge model structure schematic diagram of the present invention.
[embodiment]
Consult Fig. 2, the method for the main frame of adsl router of the present invention and PVC dynamic binding comprises:
One, the bridge joint port at adsl router is provided with the dynamic binding attribute, makes the bridge joint port with dynamic binding attribute by specific host binding.As shown in Figure 2, the bridge model of adsl router is divided into a plurality of bridges (bridge), comprises four bridge bridge1~bridge4 in this example, each bridge, for example in the bridge2 with specific port, on the specific PVC2 that is tied to as Lan1, Lan2, PVC1, VAP1 etc.Like this, make that the LAN/USB/VAP port that dynamically is tied to different PVC is isolated, do not disturb mutually.
Two, the bundling port item is set in the forwarding-table item structure, to indicate the bound port of this forwarding-table item, the forwarding-table item structure that is provided with the bundling port item is as follows:
struct?fib_entry
{
List_entry list; // list structure
Byte mac[6]; //MAC Address
Int port_no; // have a port index that the main frame of this MAC Address connects
Int bind_port_no; // have a bound port index of main frame of this MAC Address
Time_t time_stamp; The timestamp of // forwarding-table item
};
Wherein, int bind_port_no is set bundling port item.
Message forwarding to bridge joint port with bundling port is divided following two kinds of situations:
One, never has the message forwarding that the port of dynamic binding attribute receives
Two, the message forwarding that receives from port with dynamic binding attribute
A, for the message that the port that never has the dynamic binding attribute receives, the application target MAC Address is searched forwarding-table item, if find forwarding-table item with target MAC (Media Access Control) address, then sends message port_no corresponding port in the forwarding-table item;
If b search less than, then use source MAC to search forwarding-table item, if search less than create a new forwarding-table item, an initialization list structure, MAC Address, source port and timestamp information; If find corresponding forwarding-table item, then upgrade the timestamp of forwarding-table item.No matter be the new list item of creating, still original list item all will be handled list item, if the bundling port in the forwarding-table item (bind_port_no) is the value of non--1 (effective value), then message is forwarded to bundling port; If the bundling port in the forwarding-table item is-1 (illegal value), then to all of the port broadcasting packet.
D, the message that receives from port with dynamic binding attribute (being called for short the D port), the application target MAC Address is searched and is transmitted, transmit if find, upgrade bundling port (bind_port_no) in the forwarding-table item with regard to the port index that uses the D port, stab (time_stamp) update time simultaneously, then message is forwarded to the port_no corresponding port in the forwarding-table item; Transmit if can not find, then message is transmitted to each port.
E, transmitting of not upgrading in a period of time will be deleted by the system because of overtime.
By said method, the present invention has realized the main frame and the PVC dynamic binding of adsl router.It is a kind of method by source MAC forwarding realization dynamic binding, and this method is when having the user to insert, and system can if PVC is all bound, then refuses new user and insert dynamically on user binding to a PVC who inserts.If there is PVC to free out, then can dynamically insert the user again, thereby reach a kind of dynamic equilibrium, can under situation about guaranteeing service quality, improve as far as possible and insert quantity, thereby maximally utilise resource.Avoided in broadband access terminal, if LAN side user shares the bandwidth on the PVC, along with increasing of user, service quality descends unavoidably, and if the LAN side ports is tied to different PVC, then too waste problems such as resource.

Claims (3)

1. the method for the main frame of an adsl router and PVC dynamic binding is characterized in that, this method comprises:
A, the dynamic binding attribute is set, makes bridge joint port, form a plurality of bridges by dividing port by specific host binding with dynamic binding attribute at the bridge joint port of adsl router, with specific port binding to specific PVC;
B, the bundling port item is set, in the forwarding-table item structure to indicate the bound port of this forwarding-table item.
2. the method for claim 1 is characterized in that, the message forwarding of bridge joint port with bundling port is carried out as follows:
A, for the message that the port that never has the dynamic binding attribute receives, the application target MAC Address is searched forwarding-table item, if find forwarding-table item with target MAC (Media Access Control) address, then sends the corresponding port of message in the forwarding-table item;
If b search less than, then use source MAC to search forwarding-table item, if search less than create a new forwarding-table item; If find corresponding forwarding-table item, then upgrade the timestamp of forwarding-table item.No matter be the new list item of creating, still original list item all will be handled list item, if the bundling port in the forwarding-table item is non--1 value, then message is forwarded to bundling port; If the bundling port in the forwarding-table item is-1, then to all of the port broadcasting packet.
C, for the message that receives from port with dynamic binding attribute, the application target MAC Address is searched and is transmitted, transmit if find, upgrade bundling port in the forwarding-table item with regard to the port index that uses this port, stab update time simultaneously, then message is forwarded to the corresponding port in the forwarding-table item; Transmit if can not find, then message is transmitted to each port.
D, transmitting of not upgrading in a period of time will be deleted by the system because of overtime.
3. method as claimed in claim 2 is characterized in that, in step (b), and when creating forwarding-table item, an initialization list structure, MAC Address, source port and timestamp information.
CN2007100757990A 2007-08-17 2007-08-17 Host computer of ADSL router and PVC dynamic binding method Active CN101115001B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007100757990A CN101115001B (en) 2007-08-17 2007-08-17 Host computer of ADSL router and PVC dynamic binding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100757990A CN101115001B (en) 2007-08-17 2007-08-17 Host computer of ADSL router and PVC dynamic binding method

Publications (2)

Publication Number Publication Date
CN101115001A true CN101115001A (en) 2008-01-30
CN101115001B CN101115001B (en) 2011-11-16

Family

ID=39023126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100757990A Active CN101115001B (en) 2007-08-17 2007-08-17 Host computer of ADSL router and PVC dynamic binding method

Country Status (1)

Country Link
CN (1) CN101115001B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808041A (en) * 2010-03-31 2010-08-18 迈普通信技术股份有限公司 Method for bridging and transmitting message and transmission router
CN102006375A (en) * 2010-11-15 2011-04-06 中兴通讯股份有限公司 Method and device for processing asymmetrical digital subscriber line ports
CN106656815A (en) * 2015-10-30 2017-05-10 阿里巴巴集团控股有限公司 Virtual network message processing method and device
CN109743137A (en) * 2019-01-10 2019-05-10 浙江小泰科技有限公司 A kind of Distributed Delay message queue processing system for supporting to update
CN112650702A (en) * 2020-12-22 2021-04-13 北京华大智宝电子系统有限公司 Port binding method and system of multi-port USB device
CN112650702B (en) * 2020-12-22 2024-05-28 北京华大智宝电子系统有限公司 Port binding method and system for multi-port USB device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8165156B1 (en) * 2003-12-16 2012-04-24 Telefonaktiebolaget Lm Ericsson (Publ) Ethernet DSL access multiplexer and method providing dynamic service selection and end-user configuration
CN100373882C (en) * 2005-07-19 2008-03-05 中兴通讯股份有限公司 Method for dynamic confugerating permanent virtual circuit and intel network address by radio network controller

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808041A (en) * 2010-03-31 2010-08-18 迈普通信技术股份有限公司 Method for bridging and transmitting message and transmission router
CN102006375A (en) * 2010-11-15 2011-04-06 中兴通讯股份有限公司 Method and device for processing asymmetrical digital subscriber line ports
CN102006375B (en) * 2010-11-15 2014-08-13 中兴通讯股份有限公司 Method and device for processing asymmetrical digital subscriber line ports
CN106656815A (en) * 2015-10-30 2017-05-10 阿里巴巴集团控股有限公司 Virtual network message processing method and device
CN109743137A (en) * 2019-01-10 2019-05-10 浙江小泰科技有限公司 A kind of Distributed Delay message queue processing system for supporting to update
CN109743137B (en) * 2019-01-10 2022-01-14 浙江小泰科技有限公司 Distributed delay message queue processing system supporting updating
CN112650702A (en) * 2020-12-22 2021-04-13 北京华大智宝电子系统有限公司 Port binding method and system of multi-port USB device
CN112650702B (en) * 2020-12-22 2024-05-28 北京华大智宝电子系统有限公司 Port binding method and system for multi-port USB device

Also Published As

Publication number Publication date
CN101115001B (en) 2011-11-16

Similar Documents

Publication Publication Date Title
CN102821022B (en) The method and system of link aggregation transmitted frame is utilized in distributed Ethernet bridge
EP2086178B1 (en) Link aggregation method and device, mac frame receiving/sending method and system
US7440415B2 (en) Virtual network addresses
US7385973B1 (en) Method and apparatus for VLAN ID discovery
CN101272291B (en) Network appliance testing method and system
CN105284080B (en) The virtual network management method and data center systems of data center
US9219698B2 (en) Providing a layer-3 interface
CN101702679B (en) Message processing method and exchange apparatus based on virtual local area network
CN104506408A (en) Data transmission method and device based on SDN
KR101995145B1 (en) Method operating in a fixed access network and ues
JP2009094832A (en) Multicast data distribution apparatus, distribution method therefor, and distribution control program thereof
CN102611634A (en) IP (Internet protocol) network access method and edge device
CN107579898B (en) Method and device for interconnection communication among multiple containers
US9461830B2 (en) Multicast technique managing multicast address
US20170180311A1 (en) Systems and methods for managing network address information
CN101115001B (en) Host computer of ADSL router and PVC dynamic binding method
CN103685032B (en) Message forwarding method and network address translation services device
CN104734930B (en) Method and device for realizing access of Virtual Local Area Network (VLAN) to Variable Frequency (VF) network and Fiber Channel Frequency (FCF)
JP5164744B2 (en) Communication network system and bandwidth control method for inter-base communication
CN100463426C (en) Sevice quality control/device and method based on virtual network marker
JP5251716B2 (en) Packet relay device
CN103986714A (en) Implementation method and device for connecting bus control network into agent of AVB network
CN108809795A (en) Transparent shunt method and device in a kind of LAN environment
JPWO2014170930A1 (en) Gateway device, network system including gateway device, air conditioning outdoor unit, and air conditioning network system
CN102480410A (en) Single board for centralized business processing and virtualized resource dividing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: 518067, Shenzhen, Guangdong province Nanshan District Shekou Nanhai Road 1019, 100 surplus medical instrument Park, two floor

Patentee after: Shenzhen Gongjin Electronics Co., Ltd.

Address before: 518067, Shenzhen, Guangdong province Nanshan District Shekou Nanhai Road 1019, 100 surplus medical instrument Park, two floor

Patentee before: Shenzhen Gongjin Electronics Co., Ltd.