WO2005101948A1 - A method for routing the concourse service - Google Patents

A method for routing the concourse service Download PDF

Info

Publication number
WO2005101948A1
WO2005101948A1 PCT/CN2005/000559 CN2005000559W WO2005101948A1 WO 2005101948 A1 WO2005101948 A1 WO 2005101948A1 CN 2005000559 W CN2005000559 W CN 2005000559W WO 2005101948 A1 WO2005101948 A1 WO 2005101948A1
Authority
WO
WIPO (PCT)
Prior art keywords
entry
access
feature information
access port
port number
Prior art date
Application number
PCT/CN2005/000559
Other languages
French (fr)
Chinese (zh)
Inventor
Jianfei He
Jianyun Zhu
Zhangzhen Jiang
Original Assignee
Huawei Technologies 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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2005101948A1 publication Critical patent/WO2005101948A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • H04L49/3009Header conversion, routing tables or routing tags

Definitions

  • the present invention relates to aggregation services, and in particular, to a routing method for aggregation services. Background of the invention
  • aggregation services include two types: one is the aggregation of service flows from several user network interfaces (UNI) to one network and network interface (NNI), which are mainly used for access nodes in the network; the other One is the aggregation of service flows from several I to one UNI, which is mainly used for the convergence nodes in the network.
  • U I mainly refers to the port where the network is connected to user equipment
  • NNI refers to the port where the network is connected to other network equipment.
  • SDH synchronous digital series
  • VLAN virtual local area network
  • MPLS multi-protocol label switching
  • MAC media access control
  • IP network protocol
  • a service aggregation mechanism generally used in the prior art is to configure a route based on each characteristic information value in an access node or an aggregation node. Take the aggregation of service flows from the UI to the NNI, and the feature information field is a VLAN tag as an example.
  • a VLAN tag (VLAN ID, VID for short) corresponding to the UNI service flow needs to be configured on each UNT, At the same time, it is also necessary to configure a corresponding VID on the NNI to pass the NI service flow.
  • the UM When the UM receives the service flow, it obtains the VID in the service flow, and then compares the obtained VID with the VID configured on the UNI to pass the service flow in advance and the VID configured on the NNI to pass the service flow. Determine whether to forward to NNI.
  • the VIDs of service flows to be passed through U I1 are configured on UNI1, which are 2, 3, and 4; the VIDs of service flows to be passed through UNI2 are configured on UNI2, which are 5, 6, and 7, respectively;
  • the VIDs of all service flows to be passed through the NI are configured as 2, 3, 4, 5, 6, and 7, respectively.
  • the service flow VIDs pre-configured on the NI to pass through the NNI are 2, 4, 6, and 7, then when the service flow VID received by UNI1 is 3, or the service flow VID received by UNI2 is 5, these service flows It will not be forwarded to this NI, but will treat the business flow as illegal data and discard the business flow. Therefore, the VID to be passed through the service flow must be configured on the UNI and the NNI in advance, and the VID to be passed through the service flow configured on the UNI must correspond to the VID to be passed through the service flow configured on the NNI, so that the service can be realized. Convergence. The same is true for the convergence of service flows from NNI to UNI.
  • VIDs need to be used to represent different user service flows. For example, if there are 4K VLANs, 4K is required. Each VID indicates the user service flow of these 4K VLANs. It is also necessary to configure 4K VIDs to pass through the service flow on the port of the access node or the aggregation node. At this time, the workload of network configuration management is very large. In addition, if the feature information value is changed on the user side, corresponding changes need to be made on the device side, so the subsequent maintenance workload will also be large. Summary of the invention
  • the main object of the present invention is to provide a routing method for aggregated services, so that it does not need to configure specific feature information values of the feature information fields to achieve service convergence, and reduce the workload of network configuration management. Can reduce the workload of subsequent maintenance.
  • the present invention provides a method for routing an aggregation service.
  • the method is for an aggregation service node to set an access / aggregation group including multiple access ports, an aggregation port, and a characteristic information field; corresponding to the establishment of the access / aggregation group.
  • a feature information table where the feature information table uses feature information values and corresponding access port numbers as entries; the method further includes the following steps:
  • An access port in the access / aggregation group that receives a service flow data packet, obtains a characteristic information value from the data packet according to a characteristic information field in the access / aggregation group, and sets the characteristic information value Searching the feature information table as an index;
  • the data packet is forwarded to all The aggregation port in the access / aggregation group; if an entry containing the characteristic information value is retrieved, when the access port number in the entry is the same as the access port number entered this time, the data packet Forwarding to the aggregation port, when the access port number in the entry is different from the access port number entered this time, rewriting the access port number of the entry to the access port number entered this time, The data packet is forwarded to the aggregation port.
  • the feature information table is initially set as an empty table.
  • step b of the foregoing solution when the access port number in the entry is different from the access port number entered this time, it may further include: judging whether the protection status attribute of the access port in the entry is protected If yes, the data packet is discarded; otherwise, performing the rewriting of the access port number of the entry to the access port number entered this time and forwarding the data packet to the aggregation port.
  • the method before using the feature information value as an index to retrieve the feature information table, the method may further include: determining whether the feature information value is a broadcast type feature information value, and if so, directly forwarding the data packet to all Otherwise, the feature information value is used as an index to retrieve the feature information table.
  • the establishment of the entry may further include: configuring the aging feature of the entry according to the aging feature of the access port input this time; if the entry has the aging feature, starting an aging timer for the entry start the timer;
  • the aging timer is stopped, and the aging timer is expired. Re-count after initialization; otherwise, when the aging time of the entry reaches, the aging timer stops counting and deletes the entry.
  • the method may further include: judging whether the entry has aging characteristics, and if the entry has aging characteristics, The aging timer corresponding to this entry is initialized; otherwise, it is not processed.
  • step b after the access port number of the entry is changed to the access port number entered this time, it may further include: updating the aging feature of the entry according to the aging characteristics of the access port entered this time; If the input access port has an aging feature, start an aging timer for the entry containing the access port number to start counting;
  • the aging timer is stopped, and the aging timer is expired. Re-count after initialization; otherwise, when the aging time of the entry reaches, the aging timer stops counting and deletes the entry.
  • the method may further include: after receiving a data packet at the aggregation port in the access / aggregation group, obtaining a characteristic information field in the access / aggregation group in the data packet
  • the feature information value is used as an index to retrieve the feature information table. If no entry containing the feature information value is retrieved, the data packet is dropped or sent to all accesses in the access / aggregation group. Inbound port broadcast; if an entry containing the characteristic information value is retrieved, the data packet is forwarded to the corresponding access port according to the entry port number of the entry.
  • the method may further include: determining whether the feature information value is a broadcast type feature information value, and if so, directly forwarding the data packet to All access ports; otherwise, the feature information value is used as an index to retrieve the feature information table.
  • the characteristic information field may be a VLAN tag, or an MPLS tag, or a MAC address, or an IP address.
  • the key of the present invention lies in: configuring a simple port aggregation relationship and a feature information field for determining a feature information value in an extracted data packet by configuring an access / aggregation group, and providing the configured access
  • the aggregation group establishes a corresponding feature information table
  • the access port extracts the characteristic information value of the received packet according to the specified feature information field, and forwards the service flow to the aggregation port according to the configured port aggregation relationship and feature information table.
  • the aggregation service routing method provided by the present invention does not need to configure specific feature information values of the feature information field in advance, and only needs to configure a simple port aggregation relationship and determine feature information for extracting feature information values in a data packet.
  • the access port forwards service flow data packets according to the entries in the feature information table, thereby simplifying the management of feature information values and reducing the workload of network configuration management.
  • the access port can automatically adapt to the change of the user-side characteristic information value to forward the service flow, which reduces the workload of subsequent maintenance.
  • FIG. 1 is a schematic diagram of a configuration method of service aggregation through a VLAN in the prior art
  • FIG. FIG. 2 is a schematic diagram of an access port and an aggregation port model
  • FIG. 3 is a flowchart of a routing method for an aggregation service according to the present invention. Mode of Carrying Out the Invention
  • the main idea of the present invention is: by configuring an access / aggregation group to configure a port aggregation relationship and defining a feature information field for extracting feature information values, and establishing a corresponding feature information table for the configured access / aggregation group, access
  • the ingress port extracts the characteristic information value of the received data packet according to the specified characteristic information field, and forwards the service flow data packet to the aggregation port according to the configured port aggregation relationship and characteristic information table to implement service aggregation.
  • the model includes one aggregation port and multiple access ports. Among them, the access port receives service flows, and forwards the service flows to the aggregation port or directly discards them according to certain judgment principles.
  • the aggregation port receives the service flows, and The judgment principle is to forward the service flow to the corresponding access port, or broadcast or discard it to all access ports.
  • the present invention specifically includes a configuration process of an access / aggregation group and a service process.
  • the configuration process of the access / aggregation group is to configure a simple port aggregation relationship and a characteristic information field for user service flow authentication. That is, the access / aggregation group includes: a characteristic information field for authentication, multiple access ports, and an aggregation port.
  • the function of configuring the characteristic information field in the access / aggregation group is to: The node extracts the characteristic information value of the characteristic information field from the received data packet according to the characteristic information field.
  • the attributes of the access port include protection status and aging characteristics.
  • multiple access / aggregation groups may be configured for the aggregation service node according to different characteristic information fields.
  • Business office The management process is to establish a correspondence table between the characteristic information value and the access port number based on the configured access / aggregation group, and then realize the automatic routing of the aggregation service according to the correspondence table.
  • the aggregation service node will extract the feature information field of the feature information field from the received data packet according to the feature information field.
  • the characteristic information field may correspond to any one or more pieces of data in the data packet, and the pieces of data may be continuous or discontinuous.
  • the characteristic information field may be an MPLS label, a VLAN label, a MAC address, an IP address, or the like.
  • the protection status and aging characteristics of the access port may adopt default settings.
  • the default setting of the protection status of the access port is determined according to the network information security requirements of each access port. If the security requirements are high, set the access port to be protected; otherwise, set the access port to be unprotected; whether the access port is aged is determined by the connection state between the access port and the node. If the access port is disconnected from the node, then The access port is old. Therefore, the aging characteristics of access ports are generally set to have aging characteristics by default.
  • a correspondence table between feature information values and access port numbers is established, hereinafter referred to as a feature information table (InfoTable). That is, the feature information table uses the feature information value and the corresponding access port number as entries.
  • the content of the feature information table in the initial state is empty, that is, the entries in the feature information table are automatically configured during the processing of the service.
  • the attributes of the feature information table include: feature information value, access port number, and aging characteristics of entries.
  • the aging characteristic of the entry is set according to the aging characteristic of the access port.
  • the entry's aging characteristic means that if no entry containing an entry is received from an access port within a preset time, If the data of the characteristic information indicates that the entry is aging, the entry is deleted. Therefore, an aging timer is usually required for each entry to time whether the entry is aging.
  • an aging timer is started to start counting after the entry is established; if the feature information value of the entry is received from an access port within a preset time, Data, the aging timer stops counting and restarts after the aging timer is initialized; otherwise, when the aging timer reaches a preset time, the aging timer stops counting, and the entry is deleted.
  • the preset time may be referred to as the aging time of the entry, and the aging time of the entry is equal to the aging time of the access port of the entry.
  • the aging timer is a counter that decreases with time.
  • the count value of the counter starts to decrease after the entry is established.
  • the count value decreases to 0, it means that 'the entry has aged, the The entry is deleted.
  • the entries in the feature information table can be updated automatically and timely when the network is re-arranged to save the entry storage space.
  • the following is the business process of an access / aggregation group.
  • Step 300 The access port receives a data packet, and obtains the characteristic information value of the characteristic information field specified by the access / convergence group in the data packet. .
  • Step 301 Use the feature information value as an index to retrieve a feature information table.
  • Step 302 Determine whether there is an entry containing the characteristic information value in the feature information table, and if not, perform step 303; otherwise, perform step 304.
  • Step 303 is performed.
  • the feature information value is bound to the input port input this time, added as a new entry to the feature information table, and the data packet is forwarded to the convergence terminal ⁇ .
  • Step 304 Determine whether the access port number in the entry is the same as the access port number entered this time. If they are not the same, go to step 305; if they are the same, go to step 308.
  • Step 305 Determine whether the protection status attribute of the access port in the entry is protected, If there is no protection, step 306 is performed: write the access port number entered this time as the access port number of the entry containing the characteristic information value into the characteristic information table, overwrite the original access port number, and send the data packet Forward to the aggregation port; if there is protection, go to step 307: the data packet is illegal data, and discard the data packet.
  • Step 308 Forward the data packet to the aggregation port, and then execute step 309.
  • Step 309 Determine whether the entry has aging characteristics. If the entry has aging characteristics, execute step 310: initialize the aging timer corresponding to the entry; if the entry does not have aging characteristics, proceed to step 311: The entry is not processed. Initializing the aging timer means resetting the count value in the aging timer to a preset value, and then counting down from the preset value again.
  • the aging feature of the entry is configured or updated according to the aging feature of the access port of the entry. If the entry has the aging feature, the table is updated. The corresponding aging timer is initialized.
  • the characteristic information value of the characteristic information field specified by the access / convergence group in the data packet is acquired; the characteristic information value is used as an index to retrieve the characteristic information table, and if no This entry can have two optional operations: Drop the data packet or broadcast it to all corresponding access ports.
  • the specific operation usually depends on the requirements of information security. For networks with high information requirements, a discarding policy is used. A broadcast strategy is adopted for a network with low information requirements; if the entry is retrieved, the data packet is forwarded to the corresponding access port according to the entry port number of the entry.
  • Groupl includes aggregation port U, access ports A, B, C, D, E, and F, and the feature information field is a VLAN tag.
  • the default settings of the protection status and aging characteristics of the access ports, B, C, D, E, and F are shown in Table 1: Access port number ABCDEF
  • an empty feature information table InfoTablel is created for Groupl.
  • the entries in the feature information table InfoTablel are automatically configured during the business process. Assume that the correspondence between the characteristic information value (VID) of the data packets to be received by the six access ports and the access port number is shown in Table 2.
  • VIP characteristic information value
  • InfoTablel Before the first data packet is received, InfoTablel is empty, and the VIDs of the first six data packets in Table 2 are different. Therefore, when the data packets are received from the six access ports, the six The VID is bound to the corresponding input access port number, added as an entry to the feature information table, and forwards the corresponding data packet to the aggregation port U. The aging characteristics of these entries are consistent with the aging characteristics of the access ports.
  • the characteristic information table InfoTablel is shown in Table 3.
  • access port B When access port B receives data packet 7 with VID 1, it obtains VID 1 and retrieves InfoTablel according to the VID. This entry is retrieved, and the access port number in the entry is A is different from the current access port number B. At the same time, it is found that the access port A is not protected, then the access port number B is overwritten to the access port number A, and the data packet 7 is forwarded to the aggregation port U.
  • the access port D When the access port D receives a data packet 8 with a VID of 4, it obtains a VID of 4, and retrieves InfoTablel according to the VID. This entry is retrieved, and the access port number 'D in the entry is connected to the current connection. If the incoming port number D is the same, the data packet 8 is forwarded to the aggregation port U. At the same time, because the entry has aging characteristics, the aging timer corresponding to the entry with the VID 4 is initialized.
  • access port E When access port E receives data packet 9 with VID 2, it obtains VID 2 and 'retrieves InfoTablel according to the VID, retrieves this entry, and the access port number B in the entry is connected to this connection. The incoming port number E is different, and at the same time, it is found that the access port B is protected, then the data packet 9 is dropped.
  • the characteristic information table InfoTablel is shown in Table 4:
  • the present invention does not need to configure specific feature information values, as long as a single port aggregation relationship is configured, automatic service aggregation can be achieved, reducing the workload of network configuration management, and the access port can automatically adapt to user-side feature information values. Changes, reducing the workload of subsequent maintenance.
  • broadcast type feature information values can be set.
  • a data packet with broadcast type feature information values is received from an access port, it is The data packet is forwarded to the aggregation port; when a data packet with broadcast type characteristic information values is received from the aggregation port, the data packet is not checked through the table Forward to all access ports.

Abstract

The invention discloses a method for routing the concourse service, which configures a node which make it have multi access ports, one trunk port and an access/concourse group for achieving the character information fields of the character information value from the data packet; and according to the access/concourse group establishes an character information table which takes the character information value and the access port number as items. The method further comprises: in access/concourse group the access port that receives data packets, achieves the character information value corresponding to character information field from the data packet, and takes the character information value as index to search for the character information table; if it doesn't find a corresponding item, it establishes an item comprising the character information value and the access port number, then it transmits the data packet to the trunk port; if it finds a corresponding item, it transmits the data packet to the trunk port when its access port number and the access port number in the item are same; and when the above two number are not same it updates the access port number in the item with the access port number, then it transmits the data packet to the trunk port.

Description

一种汇聚业务的路由方法 技术领域  TECHNICAL FIELD
本发明涉及汇聚业务, 特别是涉及一种汇聚业务的路由方法。 发明背景  The present invention relates to aggregation services, and in particular, to a routing method for aggregation services. Background of the invention
目前, 数据业务在通信网中所占比例越来越高, 而且这些业务大部 分为上网业务。 上网业务从业务流向来看, 属于汇聚型业务。 按照业务. 流的方向,汇聚业务包括两种:一种是业务流从几个用户网络接口(UNI ) 向一个网络与网络接口 (NNI )汇聚, 主要用于网络中的接入节点; 另 一种是业务流从几个 I向一个 UNI汇聚, 主要用于网络中的汇聚节 点。 这里的 U I主要是指网络与用户设备相连的端口, NNI是指网络与. 其他网络设备相连的端口。 例如, 当采用同步数字系列 (SDH )设备传 送以太网业务时, 对 SDH设备来说, 通常以太网端口就是 UNI, SDH 线路接口就是 NNI。  At present, the proportion of data services in communication networks is increasing, and most of these services are online services. From the perspective of business flows, the Internet access service is an aggregation service. According to the direction of services and flows, aggregation services include two types: one is the aggregation of service flows from several user network interfaces (UNI) to one network and network interface (NNI), which are mainly used for access nodes in the network; the other One is the aggregation of service flows from several I to one UNI, which is mainly used for the convergence nodes in the network. Here U I mainly refers to the port where the network is connected to user equipment, and NNI refers to the port where the network is connected to other network equipment. For example, when a synchronous digital series (SDH) device is used to transmit Ethernet services, for an SDH device, the Ethernet port is usually UNI and the SDH line interface is NNI.
一般来说, 需要对上网业务进行用户业务流认证、 计费等。 认证的. 依据可以是业务流数据包中的部分信息字段的不同取值。 以下称数据包 中的部分信息字段为特征信息字段, 比如虚拟局域网 (VLAN )标签、 多协议标记交换(MPLS )标签、 媒体访问控制 (MAC )地址、 网络协 议(IP )地址等都可以作为特征信息字段。 特征信息字段的取值, 称为. 特征信息值, 不同的特征信息值表示不同的用户业务流。  Generally speaking, user service flow authentication and billing are required for online services. Authentication. The basis can be different values of some information fields in the service flow data packet. Some information fields in a data packet are hereinafter referred to as characteristic information fields, such as a virtual local area network (VLAN) tag, a multi-protocol label switching (MPLS) tag, a media access control (MAC) address, a network protocol (IP) address, etc., can be used as characteristics. Information field. The value of the feature information field is called. Feature information value, and different feature information values represent different user service flows.
现有技术通常采用的业务汇聚机制, 就是在接入节点或汇聚节点中 配置基于每个特征信息值的路由。 以业务流从 U I向 NNI汇聚、 特征 信息字段为 VLAN标签为例, 为了实现业务汇聚, 就需要在每个 UNT 上配置要通过对应 UNI业务流的 VLAN标签( VLAN ID, 简称 VID ), 同时还需要在 NNI上配置相应的要通过该 N I业务流的 VID。 当 UM 接收到业务流时,获取业务流中的 VID, 然后将获得的 VID分别与预先 在 UNI上配置的要通过业务流的 VID和在 NNI上配置的要通过业务流. 的 VID进行比较, 判断是否转发到 NNI。 A service aggregation mechanism generally used in the prior art is to configure a route based on each characteristic information value in an access node or an aggregation node. Take the aggregation of service flows from the UI to the NNI, and the feature information field is a VLAN tag as an example. In order to achieve service aggregation, a VLAN tag (VLAN ID, VID for short) corresponding to the UNI service flow needs to be configured on each UNT, At the same time, it is also necessary to configure a corresponding VID on the NNI to pass the NI service flow. When the UM receives the service flow, it obtains the VID in the service flow, and then compares the obtained VID with the VID configured on the UNI to pass the service flow in advance and the VID configured on the NNI to pass the service flow. Determine whether to forward to NNI.
如图 1所示,在 UNI1配置要通过 U I1的业务流的 VID,分别为 2、 3和 4; 在 UNI2配置要通过 UNI2的业务流的 VID, 分别为 5、 6和 7; 同时在 NNI上配置要通过该 N I的所有业务流的 VID,分别为 2、 3、 4、 . 5、 6和 7。 这样, 当 UNI1接收到业务流 VID为 2、 3或 4时, 就将业 务流转发到 NNI; 当 UNI2接收到业务流 VID为 5、 6或 7时, 也将业 务流转发到 NNI; 如果 UNI1接收^的业务流 VID不是 2、 3或 4, 或如 果 UNI2接收到的业务流 VID不是 5、 6或 7, 则将该业务流视为违规数 · 据, 将该业务流丢弃。 如果 N I上预先配置的要通过该 NNI的业务流 VID是 2、 4、 6和 7, 则当 UNI1接收到的业务流 VID是 3, 或 UNI2 接收到的业务流 VID是 5时, 这些业务流不会被转发到该 N I, 而会将 该业务流视为违规数据, 将该业务流丟弃。 因此, 必须预先在 UNI和' NNI上配置要通过业务流的 VID,而且在 UNI上配置的要通过业务流的 VID必须与在 NNI上配置的要通过业务流的 VID相对应, 这样才能实 现业务的汇聚。 业务流从 NNI向 UNI汇聚也是同样道理。  As shown in Figure 1, the VIDs of service flows to be passed through U I1 are configured on UNI1, which are 2, 3, and 4; the VIDs of service flows to be passed through UNI2 are configured on UNI2, which are 5, 6, and 7, respectively; The VIDs of all service flows to be passed through the NI are configured as 2, 3, 4, 5, 6, and 7, respectively. In this way, when UNI1 receives the service flow VID of 2, 3, or 4, it forwards the service flow to the NNI; when UNI2 receives the service flow VID of 5, 6, or 7, it also forwards the service flow to the NNI; if UNI1 The received service flow VID is not 2, 3, or 4, or if the service flow VID received by UNI2 is not 5, 6, or 7, the service flow is regarded as illegal data and the service flow is discarded. If the service flow VIDs pre-configured on the NI to pass through the NNI are 2, 4, 6, and 7, then when the service flow VID received by UNI1 is 3, or the service flow VID received by UNI2 is 5, these service flows It will not be forwarded to this NI, but will treat the business flow as illegal data and discard the business flow. Therefore, the VID to be passed through the service flow must be configured on the UNI and the NNI in advance, and the VID to be passed through the service flow configured on the UNI must correspond to the VID to be passed through the service flow configured on the NNI, so that the service can be realized. Convergence. The same is true for the convergence of service flows from NNI to UNI.
由此可见, 当存在大量不同的用户业务流时, 如果采用现有技术的' 汇聚机制, 就需要用大量不同的 VID来表示不同的用户业务流, 例如, 如果有 4K个 VLAN, 就需要 4K个 VID表示这 4K个 VLAN的用户业 务流, 也需要在接入节点或汇聚节点的端口配置要通过业务流的 4K个 VID, 这时, 网络配置管理的工作量是非常大的。 而且, 如果在用户侧' 进行了特征信息值的更改, 在设备端也需要进行相应的改动, 因此, 后 续维护工作量也会很大。 发明内容 It can be seen that when there are a large number of different user service flows, if the existing technology 'convergence mechanism is used, a large number of different VIDs need to be used to represent different user service flows. For example, if there are 4K VLANs, 4K is required. Each VID indicates the user service flow of these 4K VLANs. It is also necessary to configure 4K VIDs to pass through the service flow on the port of the access node or the aggregation node. At this time, the workload of network configuration management is very large. In addition, if the feature information value is changed on the user side, corresponding changes need to be made on the device side, so the subsequent maintenance workload will also be large. Summary of the invention
由上述分析可以看出, 本发明的主要目的在于提供一种汇聚业务的 路由方法, 使其不必配置特征信息字段的具体特征信息值就能实现业务 的汇聚, 减少网络配置管理的工作量, 并能减少后续维护的工作量。  It can be seen from the above analysis that the main object of the present invention is to provide a routing method for aggregated services, so that it does not need to configure specific feature information values of the feature information fields to achieve service convergence, and reduce the workload of network configuration management. Can reduce the workload of subsequent maintenance.
为达到上述目的, 本发明的技术方案是这样实现的:  To achieve the above object, the technical solution of the present invention is implemented as follows:
本发明提供一种汇聚业务的路由方法, 该方法为汇聚业务节点^置 包含多个接入端口、 一个汇聚端口和特征信息字段的接入 /汇聚组; 对 应于所述接入 /汇聚组建立特征信息表, 所述特征信息表以特征信息值 与对应的接入端口号为表项; 该方法还包括以下步骤:  The present invention provides a method for routing an aggregation service. The method is for an aggregation service node to set an access / aggregation group including multiple access ports, an aggregation port, and a characteristic information field; corresponding to the establishment of the access / aggregation group. A feature information table, where the feature information table uses feature information values and corresponding access port numbers as entries; the method further includes the following steps:
a. 所述接入 /汇聚组中接收到业务流数据包的接入端口, 按照所述 接入 /汇聚组中的特征信息字段从该数据包中获取特征信息值,并将该特 征信息值作为索引检索所述特征信息表;  a. An access port in the access / aggregation group that receives a service flow data packet, obtains a characteristic information value from the data packet according to a characteristic information field in the access / aggregation group, and sets the characteristic information value Searching the feature information table as an index;
b. 如果没有检索到包含该特征信息值的表项,则在所述特征信息表 中建立包含该特征信息值和本次输入的接入端口号的表项 , 然后将该数 据包转发到所述接入 /汇聚组中的汇聚端口;如果检索到包含该特征信息 值的表项, 则当该表项中的接入端口号与本次输入的接入端口号相同 时,将该数据包转发到所述汇聚端口, 当该表项中的接入端口号与本次 输入的接入端口号不相同时,将该表项的接入端口号改写为本次输入 的接入端口号, 并将该数据包转发到所述汇聚端口。  b. If no entry containing the feature information value is retrieved, an entry containing the feature information value and the access port number entered this time is created in the feature information table, and then the data packet is forwarded to all The aggregation port in the access / aggregation group; if an entry containing the characteristic information value is retrieved, when the access port number in the entry is the same as the access port number entered this time, the data packet Forwarding to the aggregation port, when the access port number in the entry is different from the access port number entered this time, rewriting the access port number of the entry to the access port number entered this time, The data packet is forwarded to the aggregation port.
其中, 所述的特征信息表初始设置为空表。  Wherein, the feature information table is initially set as an empty table.
上述方案步骤 b中, 在所述表项中的接入端口号与本次输入的接 入端口号不相同时, 可以进一步包括: 判断该表项中接入端口的保护 状态属性是否为有保护, 如果是, 则将该数据包丟弃; 否则执行所述 将该表项的接入端口号改写为本次输入的接入端口号并所述将该数 据包转发到所述汇聚端口。 步骤 a 中, 在所述将该特征信息值作为索引检索特征信息表之 前, 可以进一步包括: 判断该特征信息值是否为广播类型的特征信息 值, 如果是, 则直接将该数据包转发到所述汇聚端口; 否则执行所述 将该特征信息值作为索引检索特征信息表。 In step b of the foregoing solution, when the access port number in the entry is different from the access port number entered this time, it may further include: judging whether the protection status attribute of the access port in the entry is protected If yes, the data packet is discarded; otherwise, performing the rewriting of the access port number of the entry to the access port number entered this time and forwarding the data packet to the aggregation port. In step a, before using the feature information value as an index to retrieve the feature information table, the method may further include: determining whether the feature information value is a broadcast type feature information value, and if so, directly forwarding the data packet to all Otherwise, the feature information value is used as an index to retrieve the feature information table.
步骤 b中, 所述建立表项可以进一步包括: 根据本次输入的接入 端口的老化特性配置该表项的老化特性; 如果该表项具有老化特性, 则为该表项启动一个老化计时器开始计时;  In step b, the establishment of the entry may further include: configuring the aging feature of the entry according to the aging feature of the access port input this time; if the entry has the aging feature, starting an aging timer for the entry start the timer;
如果在该表项老化时间到达之前从该表项的接入端口号对应的 接入端口接收到包含该表项的特征信息值的数据,则该老化计时器停 止计时, 并将该老化计时器初始化后重新计时; 否则当该表项的老化 时间到达时, 该老化计时器停止计时, 并删除该表项。  If before the entry aging time arrives, data containing characteristic information values of the entry is received from the access port corresponding to the entry port number of the entry, the aging timer is stopped, and the aging timer is expired. Re-count after initialization; otherwise, when the aging time of the entry reaches, the aging timer stops counting and deletes the entry.
步骤 b中,在该表项中的接入端口号与本次输入的接入端口号相 同时, 该方法可以进一步包括: 判断该表项是否具有老化特性, 如果 该表项具有老化特性, 将该表项对应的老化计时器初始化; 否则不处 理。  In step b, when the access port number in the entry is the same as the access port number entered this time, the method may further include: judging whether the entry has aging characteristics, and if the entry has aging characteristics, The aging timer corresponding to this entry is initialized; otherwise, it is not processed.
步骤 b中,在该表项的接入端口号改为本次输入的接入端口号后 可以进一步包括:根据本次输入的接入端口的老化特性更新该表项的 老化特性; 如果本次输入接入端口具有老化特性, 则为包含该接入端 口号的表项启动一个老化计时器开始计时;  In step b, after the access port number of the entry is changed to the access port number entered this time, it may further include: updating the aging feature of the entry according to the aging characteristics of the access port entered this time; If the input access port has an aging feature, start an aging timer for the entry containing the access port number to start counting;
如果在该表项老化时间到达之前从该表项的接入端口号对应的 接入端口接收到包含该表项的特征信息值的数据,则该老化计时器停 止计时, 并将该老化计时器初始化后重新计时; 否则当该表项的老化 时间到达时, 该老化计时器停止计时, 并删除该表项。  If before the entry aging time arrives, data containing characteristic information values of the entry is received from the access port corresponding to the entry port number of the entry, the aging timer is stopped, and the aging timer is expired. Re-count after initialization; otherwise, when the aging time of the entry reaches, the aging timer stops counting and deletes the entry.
另外, 该方法可以进一步包括: 所述接入 /汇聚组中的汇聚端口接 收到数据包后, 获取该数据包中所述接入 /汇聚组中的特征信息字段 的特征信息值; 将该特征信息值作为索引检索特征信息表, 如果没有 检索到包含该特征信息值的表项, 则将该数据包丟弃或向所述接入 / 汇聚组中所有的接入端口广播; 如果检索到包含该特征信息值的表 项, 则根据该表项的接入端口号将数据包转发到对应的接入端口。 In addition, the method may further include: after receiving a data packet at the aggregation port in the access / aggregation group, obtaining a characteristic information field in the access / aggregation group in the data packet The feature information value is used as an index to retrieve the feature information table. If no entry containing the feature information value is retrieved, the data packet is dropped or sent to all accesses in the access / aggregation group. Inbound port broadcast; if an entry containing the characteristic information value is retrieved, the data packet is forwarded to the corresponding access port according to the entry port number of the entry.
其中,在所述汇聚端口将该特征信息值作为索引检索特征信息表 之前, 该方法可以进一步包括: 判断特征信息值是否为广播类型的特 征信息值, 如果是, 则直接将该数据包转发到所有的接入端口; 否则 执行所述将该特征信息值作为索引检索特征信息表。  Before the convergence port uses the feature information value as an index to retrieve the feature information table, the method may further include: determining whether the feature information value is a broadcast type feature information value, and if so, directly forwarding the data packet to All access ports; otherwise, the feature information value is used as an index to retrieve the feature information table.
上述方案中,所述特征信息字段可以为 VLAN标签、或 MPLS标签、 或 MAC地址、 或 IP地址。  In the above solution, the characteristic information field may be a VLAN tag, or an MPLS tag, or a MAC address, or an IP address.
由上述方案可以看出, 本发明的关键在于: 通过配置接入 /汇聚组来 配置简单的端口汇聚关系和用于确定提取数据包中特征信息值的特征 信息字段, 并为所配置的接入 /汇聚组建立对应的特征信息表,接入端口 按照所规定的特征信息字段提取收到的数据包的特征信息值 , 根据所配 置的端口汇聚关系和特征信息表将业务流转发到汇聚端口实现业务汇 聚。 因此, 本发明所提供的这种汇聚业务路由方法, 不用预先配置特征 信息字段的具体的特征信息值, 只需配置筒单的端口汇聚关系和确定用 于提取数据包中特征信息值的特征信息字段, 接入端口根据特征信息表 的表项转发业务流数据包, 因而简化了特征信息值的管理, 减少了网络 配置管理的工作量。 而且, 在用户侧特征信息值发生变化时, 接入端口 可以自动适应用户侧特征信息值的变化来转发业务流, 减少了后续维护 的工作量。 附图简要说明  As can be seen from the above solution, the key of the present invention lies in: configuring a simple port aggregation relationship and a feature information field for determining a feature information value in an extracted data packet by configuring an access / aggregation group, and providing the configured access The aggregation group establishes a corresponding feature information table, and the access port extracts the characteristic information value of the received packet according to the specified feature information field, and forwards the service flow to the aggregation port according to the configured port aggregation relationship and feature information table. Business convergence. Therefore, the aggregation service routing method provided by the present invention does not need to configure specific feature information values of the feature information field in advance, and only needs to configure a simple port aggregation relationship and determine feature information for extracting feature information values in a data packet. Field, the access port forwards service flow data packets according to the entries in the feature information table, thereby simplifying the management of feature information values and reducing the workload of network configuration management. In addition, when the user-side characteristic information value changes, the access port can automatically adapt to the change of the user-side characteristic information value to forward the service flow, which reduces the workload of subsequent maintenance. Brief description of the drawings
图 1为现有技术通过 VLAN进行业务汇聚的配置方法示意图; 图 2为接入端口和汇聚端口模型示意图; FIG. 1 is a schematic diagram of a configuration method of service aggregation through a VLAN in the prior art; FIG. FIG. 2 is a schematic diagram of an access port and an aggregation port model;
图 3为本发明汇聚业务的路由方法的流程图。 实施本发明的方式  FIG. 3 is a flowchart of a routing method for an aggregation service according to the present invention. Mode of Carrying Out the Invention
为使本发明的目的、 技术方案和优点表达得更加清楚明白, 下面结 合附图及具体实施例对本发明再作进一步详细的说明。  In order to make the objectives, technical solutions, and advantages of the present invention clearer and clearer, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
本发明的主要思想是:通过配置接入 /汇聚組来配置端口汇聚关系和 规定用于提取特征信息值的特征信息字段,并为所配置的接入 /汇聚组建 立对应的特征信息表, 接入端口按照所规定的特征信息字段提取收到的 数据包的特征信息值, 根据所配置端口汇聚关系和特征信息表将业务流 数据包转发到汇聚端口实现业务汇聚。  The main idea of the present invention is: by configuring an access / aggregation group to configure a port aggregation relationship and defining a feature information field for extracting feature information values, and establishing a corresponding feature information table for the configured access / aggregation group, access The ingress port extracts the characteristic information value of the received data packet according to the specified characteristic information field, and forwards the service flow data packet to the aggregation port according to the configured port aggregation relationship and characteristic information table to implement service aggregation.
由于本发明对于业务流从 UNI向 NNI汇聚和从 NNI向 UNI汇聚的 两种网络实例的汇聚效果相同, 以下不再区分 UNI和 I, 只说明接入 端口和汇聚端口, 其模型如图 2所示。 该模型包括一个汇聚端口和多个 · 接入端口, 其中, 接入端口接收业务流, 并根据一定的判断原则将业务 流转发到汇聚端口或直接丟弃; 汇聚端口接收业务流, 并根据一定的判 断原则将业务流转发到对应接入端口、 或向所有接入端口广播或丢弃。  Since the present invention has the same convergence effect for the two network instances where service flows are aggregated from UNI to NNI and from NNI to UNI, the following does not distinguish between UNI and I, only the access port and the aggregation port are described. Show. The model includes one aggregation port and multiple access ports. Among them, the access port receives service flows, and forwards the service flows to the aggregation port or directly discards them according to certain judgment principles. The aggregation port receives the service flows, and The judgment principle is to forward the service flow to the corresponding access port, or broadcast or discard it to all access ports.
基于图 2所示模型,本发明具体包括接入 /汇聚组的配置过程和业务' 的处理过程。 其中,接入 /汇聚组的配置过程就是配置简单端口汇聚关系 和配置用于用户业务流认证的特征信息字段。也就是,接入 /汇聚组包括: 用于认证的特征信息字段、 多个接入端口和一个汇聚端口, 其中, 在接 入 /汇聚组配置特征信息字段的作用在于:收到业务流数据的节点按照该 · 特征信息字段从收到的数据包中提取该特征信息字段的特征信息值。 另 外, 接入端口的属性包括保护状态和老化特性。 在本发明中, 可以根据 不同的特征信息字段, 为汇聚业务节点配置多个接入 /汇聚组。 业务的处 理过程就是基于所配置的接入 /汇聚组建立特征信息值与接入端口号的 对应表, 然后根据该对应表实现汇聚业务的自动路由。 Based on the model shown in FIG. 2, the present invention specifically includes a configuration process of an access / aggregation group and a service process. The configuration process of the access / aggregation group is to configure a simple port aggregation relationship and a characteristic information field for user service flow authentication. That is, the access / aggregation group includes: a characteristic information field for authentication, multiple access ports, and an aggregation port. The function of configuring the characteristic information field in the access / aggregation group is to: The node extracts the characteristic information value of the characteristic information field from the received data packet according to the characteristic information field. In addition, the attributes of the access port include protection status and aging characteristics. In the present invention, multiple access / aggregation groups may be configured for the aggregation service node according to different characteristic information fields. Business office The management process is to establish a correspondence table between the characteristic information value and the access port number based on the configured access / aggregation group, and then realize the automatic routing of the aggregation service according to the correspondence table.
首先, 为汇聚业务节点配置接入 /汇聚组(Group ), 包括:  First, configure an access / aggregation group (Group) for the aggregation service node, including:
( 1 )配置该接入 /汇聚组用于用户业务流认证的特征信息字段。 如' 上所述, 汇聚业务节点将根据该特征信息字段从收到的数据包中提取该 特征信息字段的特征信息字段。 其中, 特征信息字段可以对应于数据包 中的任意一段或几段数据,几段数据可以是连续的,也可以是不连续的。 优选地, 特征信息字段可以是 MPLS标签、 VLAN标签、 MAC地址和' IP地址等。  (1) Configure a feature information field used by the access / aggregation group for user service flow authentication. As described above, the aggregation service node will extract the feature information field of the feature information field from the received data packet according to the feature information field. The characteristic information field may correspond to any one or more pieces of data in the data packet, and the pieces of data may be continuous or discontinuous. Preferably, the characteristic information field may be an MPLS label, a VLAN label, a MAC address, an IP address, or the like.
( 2 )将特定端口作为接入端口添加到该接入 /汇聚组中, 设置该接 入端口的保护状态和老化特性, 并给每个接入端口分配一个互斥的端口 号。 其中, 接入端口的保护状态和老化特性可以采用缺省设置, 接入端' 口的保护状态的缺省设置是根据各个接入端口的网络信息安全要求决 定的,如果该接入端口的信息安全要求高,则设置该接入端口具有保护, 否则设置该接入端口没有保护; 接入端口是否老化是由接入端口与节点 的连接状态决定的, 如果接入端口与节点脱离连接, 则该接入端口就老' 化了。 所以一般将接入端口的老化特性缺省设置为有老化特性。  (2) Add a specific port as an access port to the access / aggregation group, set the protection status and aging characteristics of the access port, and assign a mutually exclusive port number to each access port. Among them, the protection status and aging characteristics of the access port may adopt default settings. The default setting of the protection status of the access port is determined according to the network information security requirements of each access port. If the security requirements are high, set the access port to be protected; otherwise, set the access port to be unprotected; whether the access port is aged is determined by the connection state between the access port and the node. If the access port is disconnected from the node, then The access port is old. Therefore, the aging characteristics of access ports are generally set to have aging characteristics by default.
( 3 )将特定端口作为汇聚端口添加到该接入 /汇聚组中。  (3) Add a specific port as an aggregation port to the access / aggregation group.
其次,对应于该接入 /汇聚组, 建立特征信息值与接入端口号的对应 表, 以下简称为特征信息表(InfoTable )。 即, 特征信息表以特征信息值 与对应的接入端口号为表项。特征信息表在初始状态时的内容为空,即, 特征信息表中的表项是在业务的处理过程中自动配置的。  Secondly, corresponding to the access / aggregation group, a correspondence table between feature information values and access port numbers is established, hereinafter referred to as a feature information table (InfoTable). That is, the feature information table uses the feature information value and the corresponding access port number as entries. The content of the feature information table in the initial state is empty, that is, the entries in the feature information table are automatically configured during the processing of the service.
特征信息表的属性包括: 特征信息值、 接入端口号和表项的老化特 性。 其中, 表项的老化特性是根据接入端口的老化特性设置的。 表项的' 老化特性是指在预设时间内, 如果没有从某接入端口接收到包含表项的 特征信息值的数据, 表示该表项已经老化, 则将该表项删除。 因此, 通 常每个表项都需要一个老化计时器对表项是否老化进行计时。 也就是 ' 说, 如果某表项具有老化特性, 则在该表项建立之后就启动一个老化计 时器开始计时; 如果在预设时间内从某接入端口接收到包含表项的特征 信息值的数据, 则该老化计时器停止计时, 并将该老化计时器初始化后 重新计时; 否则当老化计时器到达预设时间时, 老化计时器停止计时, ' 并将该表项删除。 本实施例中, 可以称该预设时间为表项的老化时间, 而表项的老化时间就等于该表项的接入端口的老化时间。 The attributes of the feature information table include: feature information value, access port number, and aging characteristics of entries. The aging characteristic of the entry is set according to the aging characteristic of the access port. The entry's aging characteristic means that if no entry containing an entry is received from an access port within a preset time, If the data of the characteristic information indicates that the entry is aging, the entry is deleted. Therefore, an aging timer is usually required for each entry to time whether the entry is aging. That is to say, if an entry has aging characteristics, an aging timer is started to start counting after the entry is established; if the feature information value of the entry is received from an access port within a preset time, Data, the aging timer stops counting and restarts after the aging timer is initialized; otherwise, when the aging timer reaches a preset time, the aging timer stops counting, and the entry is deleted. In this embodiment, the preset time may be referred to as the aging time of the entry, and the aging time of the entry is equal to the aging time of the access port of the entry.
在本实施例中, 老化计时器是一个随着时间递减的计数器, 计数器 的计数值从表项建立之后就开始递减, 当计数值递减到 0的时候, 表示' 该表项已经老化, 则将该表项删除。 这样, 就可以在网络重新布置时自 动适时地更新特征信息表中的表项, 以节省表项存储空间。  In this embodiment, the aging timer is a counter that decreases with time. The count value of the counter starts to decrease after the entry is established. When the count value decreases to 0, it means that 'the entry has aged, the The entry is deleted. In this way, the entries in the feature information table can be updated automatically and timely when the network is re-arranged to save the entry storage space.
以下为某个接入 /汇聚组的业务处理过程。  The following is the business process of an access / aggregation group.
如图 3所示, 基于特征信息表进行业务汇聚的过程包括以下步骤: ' 步骤 300、 接入端口接收数据包, 获取该数据包中接入 /汇聚组所规 定 ^特征信息字段的特征信息值。  As shown in FIG. 3, the process of service aggregation based on the characteristic information table includes the following steps: Step 300: The access port receives a data packet, and obtains the characteristic information value of the characteristic information field specified by the access / convergence group in the data packet. .
步骤 301、 将该特征信息值作为索引检索特征信息表。  Step 301: Use the feature information value as an index to retrieve a feature information table.
步骤 302、 判断特征信息表中是否有包含该特征信息值的表项, 如 果没有, 则执行步骤 303 , 否则执行步骤 304。  Step 302: Determine whether there is an entry containing the characteristic information value in the feature information table, and if not, perform step 303; otherwise, perform step 304.
执行步骤 303、 将该特征信息值和本次输入的接入端口进行绑定, 作为一个新的表项添加到特征信息表中, 并将该数据包转发到汇聚端 π。  Step 303 is performed. The feature information value is bound to the input port input this time, added as a new entry to the feature information table, and the data packet is forwarded to the convergence terminal π.
步骤 304、 判断该表项中的接入端口号是否与本次输入的接入端口 号相同, 如果不相同, 则执行步骤 305; 如果相同, 则执行步骤 308。  Step 304: Determine whether the access port number in the entry is the same as the access port number entered this time. If they are not the same, go to step 305; if they are the same, go to step 308.
步骤 305、判断该表项中的接入端口的保护状态属性是否为有保护, 如果没有保护, 则执行步骤 306: 将本次输入接入端口号作为包含该特 征信息值的表项的接入端口号写入特征信息表, 覆盖原来的接入端口 号, 并将该数据包转发到汇聚端口; 如果有保护, 则执行步驟 307: 该 数据包为违规数据, 将该数据包丢弃。 Step 305: Determine whether the protection status attribute of the access port in the entry is protected, If there is no protection, step 306 is performed: write the access port number entered this time as the access port number of the entry containing the characteristic information value into the characteristic information table, overwrite the original access port number, and send the data packet Forward to the aggregation port; if there is protection, go to step 307: the data packet is illegal data, and discard the data packet.
步骤 308、 将该数据包转发到汇聚端口, 然后执行步骤 309。  Step 308: Forward the data packet to the aggregation port, and then execute step 309.
步骤 309、 判断该表项是否具有老化特性, 如果该表项具有老化特 性, 则执行步骤 310: 将该表项对应的老化计时器初始化; 如果该表项 不具有老化特性, 则进入步骤 311: 不处理该表项。 将老化计时器初始 化是指将老化计时器中的计数值复位到预设的值, 然后计数值重新从预 设值开始递减。  Step 309: Determine whether the entry has aging characteristics. If the entry has aging characteristics, execute step 310: initialize the aging timer corresponding to the entry; if the entry does not have aging characteristics, proceed to step 311: The entry is not processed. Initializing the aging timer means resetting the count value in the aging timer to a preset value, and then counting down from the preset value again.
其中, 当在特征信息表中添加或修改一个表项之后, 都会根据该表 项的接入端口的老化特性配置或更新该表项的老化特性, 如果该表项具 有老化特性, 则将该表项对应的老化计时器初始化。  When an entry is added or modified in the feature information table, the aging feature of the entry is configured or updated according to the aging feature of the access port of the entry. If the entry has the aging feature, the table is updated. The corresponding aging timer is initialized.
另外, 当从汇聚端口接收到一个数据包时, 获取该数据包中接入 / 汇聚组所规定的特征信息字段的特征信息值; 将该特征信息值作为索引 检索特征信息表, 如果没有检索到该表项, 则可以有两种可选的操作: 将该数据包丢弃或向所有对应的接入端口广播, 具体如何操作通常取决 于信息安全的要求, 对信息要求高的网络釆用丢弃策略, 对信息要求低 的网络采用广播策略; 如果检索到该表项, 则根据该表项的接入端口号 将数据包转发到对应的接入端口。  In addition, when a data packet is received from the aggregation port, the characteristic information value of the characteristic information field specified by the access / convergence group in the data packet is acquired; the characteristic information value is used as an index to retrieve the characteristic information table, and if no This entry can have two optional operations: Drop the data packet or broadcast it to all corresponding access ports. The specific operation usually depends on the requirements of information security. For networks with high information requirements, a discarding policy is used. A broadcast strategy is adopted for a network with low information requirements; if the entry is retrieved, the data packet is forwarded to the corresponding access port according to the entry port number of the entry.
以下举一个具体的例子来说明。  Here is a specific example to illustrate.
例如,首先配置一个接入 /汇聚组 Groupl , Groupl包括汇聚端口 U, 接入端口 A、 B、 C, D、 E和 F, 特征信息字段为 VLAN标签。 本实施 例中, 接入端口入、 B、 C、 D、 E和 F的保护状态和老化特性的缺省设 置如表 1所示: 接入端口号 A B C D E F For example, first configure an access / aggregation group Group1. Groupl includes aggregation port U, access ports A, B, C, D, E, and F, and the feature information field is a VLAN tag. In this embodiment, the default settings of the protection status and aging characteristics of the access ports, B, C, D, E, and F are shown in Table 1: Access port number ABCDEF
端口保护状态 无 有 无 无 有 无 端口老化特性 有 有 有 有 有 有  Port protection status No Yes No No Yes No No Port aging characteristics Yes Yes Yes Yes Yes Yes
表 1  Table 1
然后为 Groupl建立空的特征信息表 InfoTablel ,在业务处理过程中 特征信息表 InfoTablel中的表项是自动配置的。 假设六个接入端口将要 接收的数据包的特性信息值(VID )与接入端口号的对应关系如表 2所  Then, an empty feature information table InfoTablel is created for Groupl. The entries in the feature information table InfoTablel are automatically configured during the business process. Assume that the correspondence between the characteristic information value (VID) of the data packets to be received by the six access ports and the access port number is shown in Table 2.
Figure imgf000012_0001
Figure imgf000012_0001
表 2  Table 2
由于在接收到第一个数据包之前, InfoTablel为空, 而且表 2中前 六个数据包的 VID又各不相同, 所以, 当从六个接入端口分别接收到数 据包时, 这六个 VID都会和对应的输入接入端口号进行绑定,作为一个 表项添加到特征信息表中, 并将对应的数据包转发到汇聚端口 U。 这些 表项的老化特性与接入端口的老化特性是一致的。  Before the first data packet is received, InfoTablel is empty, and the VIDs of the first six data packets in Table 2 are different. Therefore, when the data packets are received from the six access ports, the six The VID is bound to the corresponding input access port number, added as an entry to the feature information table, and forwards the corresponding data packet to the aggregation port U. The aging characteristics of these entries are consistent with the aging characteristics of the access ports.
因此,在接入端口接收到前 6个数据包之后,特征信息表 InfoTablel 如表 3所示 ··  Therefore, after the first six data packets are received by the access port, the characteristic information table InfoTablel is shown in Table 3.
Figure imgf000012_0002
Figure imgf000012_0002
表 3  table 3
当接入端口 B接收到 VID为 1的数据包 7时, 获取其 VID为 1 , 并根据该 VID检索 InfoTablel , 检索到此表项, 且表项中的接入端口号 A与本次接入端口号 B不同, 同时发现接入端口 A没有保护, 则将接 入端口号 B覆盖接入端口号 A, 并将数据包 7转发到汇聚端口 U。 When access port B receives data packet 7 with VID 1, it obtains VID 1 and retrieves InfoTablel according to the VID. This entry is retrieved, and the access port number in the entry is A is different from the current access port number B. At the same time, it is found that the access port A is not protected, then the access port number B is overwritten to the access port number A, and the data packet 7 is forwarded to the aggregation port U.
当接入端口 D接收到 VID为 4的数据包 8时, 获取其 VID为 4, 并根据该 VID检索 InfoTablel , 检索到此表项, 且表项中的接入端口号 ' D与本次接入端口号 D相同, 则将数据包 8转发到汇聚端口 U, 同时, 由于该表项有老化特性,则将 VID为 4的表项所对应的老化计时器初始 化。  When the access port D receives a data packet 8 with a VID of 4, it obtains a VID of 4, and retrieves InfoTablel according to the VID. This entry is retrieved, and the access port number 'D in the entry is connected to the current connection. If the incoming port number D is the same, the data packet 8 is forwarded to the aggregation port U. At the same time, because the entry has aging characteristics, the aging timer corresponding to the entry with the VID 4 is initialized.
当接入端口 E接收到 VID为 2的数据包 9时,获取其 VID为 2,并' 根据该 VID检索 InfoTablel , 检索到此表项, 且表项中的接入端口号 B 与本次接入端口号 E不同, 同时发现接入端口 B有保护, 则将数据包 9 丢弃。  When access port E receives data packet 9 with VID 2, it obtains VID 2 and 'retrieves InfoTablel according to the VID, retrieves this entry, and the access port number B in the entry is connected to this connection. The incoming port number E is different, and at the same time, it is found that the access port B is protected, then the data packet 9 is dropped.
这样, 在接入端口接收到 9个数据包之后, 特征信息表 InfoTablel 如表 4所示:  In this way, after the access port receives 9 data packets, the characteristic information table InfoTablel is shown in Table 4:
Figure imgf000013_0001
Figure imgf000013_0001
表 4  Table 4
可见, 本发明无需配置具体的特征信息值, 只要配置筒单的端口汇 聚关系就可以实现业务的自动汇聚, 减少了网络配置管理的工作量, 而 且, 接入端口可以自动适应用户侧特征信息值的变化, 减少了后续维护 的工作量。  It can be seen that the present invention does not need to configure specific feature information values, as long as a single port aggregation relationship is configured, automatic service aggregation can be achieved, reducing the workload of network configuration management, and the access port can automatically adapt to user-side feature information values. Changes, reducing the workload of subsequent maintenance.
对于某些特定的特征信息字段, 如 MAC地址, 可以设置具有广播 类型的特征信息值, 当从接入端口接收到带有广播类型特征信息值的数 据包时, 则不经过查表就将该数据包转发到汇聚端口; 当从汇聚端口接 收到带有广播类型特征信息值的数据包时, 则不经过查表就将该数据包 转发到所有的接入端口。 For some specific feature information fields, such as MAC addresses, broadcast type feature information values can be set. When a data packet with broadcast type feature information values is received from an access port, it is The data packet is forwarded to the aggregation port; when a data packet with broadcast type characteristic information values is received from the aggregation port, the data packet is not checked through the table Forward to all access ports.
总之, 以上所述仅为本发明的较佳实施例而已, 并不用以限制本发' 明, 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进 等, 均应包含在本发明的保护范围之内。  In short, the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall include Within the scope of the present invention.

Claims

权利要求书 Claim
1、 一种汇聚业务的路由方法, 其特征在于, 为汇聚业务节点配置 包含多个接入端口、 一个汇聚端口和特征信息字段的接入 /汇聚组; 对 应于所述接入 /汇聚组建立特征信息表, 所述特征信息表以特征信息值 与对应的接入端口号为表项; 该方法还包括以下步骤:  1. A method for routing an aggregation service, comprising: configuring an access / aggregation group including a plurality of access ports, an aggregation port, and feature information fields for an aggregation service node; corresponding to the establishment of the access / aggregation group A feature information table, wherein the feature information table uses feature information values and corresponding access port numbers as entries; the method further includes the following steps:
a. 所述接入 /汇聚组中接收到业务流数据包的接入端口, 按照所述 接入 /汇聚组中的特征信息字段从该数据包中获取特征信息值,并将该特 征信息值作为索引检索所述特征信息表;  a. An access port in the access / aggregation group that receives a service flow data packet, obtains a characteristic information value from the data packet according to a characteristic information field in the access / aggregation group, and sets the characteristic information value Searching the feature information table as an index;
b. 如果没有检索到包含该特征信息值的表项,则在所述特征信息表 中建立包含该特征信息值和本次输入的接入端口号的表项, 然后将该数 据包转发到所述接入 /汇聚组中的汇聚端口;如果检索到包含该特征信息 值的表项, 则当该表项中的接入端口号与本次输入的接入端口号相同 时,将该数据包转发到所述汇聚端口, 当该表项中的接入端口号与本次 输入的接入端口号不相同时,将该表项的接入端口号改写为本次输入 的接入端口号, 并将该数据包转发到所述汇聚端口。  b. If no entry containing the feature information value is retrieved, an entry containing the feature information value and the access port number entered this time is created in the feature information table, and then the data packet is forwarded to all The aggregation port in the access / aggregation group; if an entry containing the characteristic information value is retrieved, when the access port number in the entry is the same as the access port number entered this time, the data packet Forwarding to the aggregation port, when the access port number in the entry is different from the access port number entered this time, rewriting the access port number of the entry to the access port number entered this time, The data packet is forwarded to the aggregation port.
2、 根据权利要求 1所述的方法, 其特征在于, 所述的特征信息 表初始设置为空表。  2. The method according to claim 1, wherein the characteristic information table is initially set to an empty table.
3、 根据权利要求 1所述的方法, 其特征在于, 步骤 b中, 在所 述表项中的接入端口号与本次输入的接入端口号不相同时, 进一步包 括: 判断该表项中接入端口的保护状态属性是否为有保护, 如果是, 则将该数据包丟弃;否则执行所述将该表项的接入端口号改写为本次 输入的接入端口号并所述将该数据包转发到所述汇聚端口。  3. The method according to claim 1, wherein in step b, when the access port number in the entry is different from the access port number entered this time, further comprising: judging the entry Whether the protection status attribute of the access port is protected, and if so, the packet is discarded; otherwise, the access port number of the entry is rewritten into the access port number entered this time and described The data packet is forwarded to the aggregation port.
4、 根据权利要求 1所述的方法, 其特征在于, 步骤 a中, 在所 述将该特征信息值作为索引检索特征信息表之前, 进一步包括: 判断 该特征信息值是否为广播类型的特征信息值, 如果是, 则直接将该数. 据包转发到所述汇聚端口;否则执行所述将该特征信息值作为索引检 索特征信息表。 4. The method according to claim 1, characterized in that, in step a, before the retrieving the feature information table using the feature information value as an index, the method further comprises: judging Whether the feature information value is a broadcast type feature information value, and if so, directly forward the data packet to the aggregation port; otherwise, execute the feature information value as an index to retrieve a feature information table.
5、 根据权利要求 1所述的方法, 其特征在于, 步骤 b中, 所述 建立表项进一步包括:根据本次输入的接入端口的老化特性配置该表. 项的老化特性; 如果该表项具有老化特性, 则为该表项启动一个老化 计时器开始计时;  5. The method according to claim 1, characterized in that, in step b, the establishment of the entry further comprises: configuring the table according to the aging characteristics of the access port input this time. The aging characteristics of the entry; if the table If the entry has aging characteristics, an aging timer is started for the entry to start counting;
如果在该表项老化时间到达之前从该表项的接入端口号对应的 接入端口接收到包含该表项的特征信息值的数据,则该老化计时器停 · 止计时, 并将该老化计时器初始化后重新计时; 否则当该表项的老化 时间到达时, 该老化计时器停止计时, 并删除该表项。  If before the entry aging time arrives, data containing the characteristic information value of the entry is received from the access port corresponding to the entry port number of the entry, the aging timer is stopped and stopped, and the aging is performed. The timer restarts after the timer is initialized; otherwise, when the aging time of the entry reaches, the aging timer stops counting and deletes the entry.
6、 .根据权利要求 5所述的方法, 其特征在于, 步骤 b中, 在该 表项中的接入端口号与本次输入的接入端口号相同时,该方法进一步 包括: 判断该表项是否具有老化特性, 如果该表项具有老化特性, 将 该表项对应的老化计时器初始化; 否则不处理。  6. The method according to claim 5, characterized in that in step b, when the access port number in the entry is the same as the access port number entered this time, the method further comprises: judging the table Whether the entry has aging characteristics. If the entry has aging characteristics, initialize the aging timer corresponding to the entry; otherwise, no processing is performed.
7、 根据权利要求 5所述的方法, 其特征在于, 步骤 b中, 在该 表项的接入端口号改为本次输入的接入端口号后进一步包括:根据本' 次输入的接入端口的老化特性更新该表项的老化特性;如果本次输入 接入端口具有老化特性,则为包含该接入端口号的表项启动一个老化 计时器开始计时;  7. The method according to claim 5, characterized in that, in step b, after the access port number of the entry is changed to the access port number entered this time, further comprising: The aging characteristics of the port update the aging characteristics of the entry; if the input access port has aging characteristics, start an aging timer for the entry containing the access port number to start counting;
如果在该表项老化时间到达之前从该表项的接入端口号对应的 ' 接入端口接收到包含该表项的特征信息值的数据,则该老化计时器停 止计时, 并将该老化计时器初始化后重新计时; 否则当该表项的老化 时间到达时, 该老化计时器停止计时, 并删除该表项。  If before the entry aging time arrives, data containing characteristic information values of the entry is received from the access port corresponding to the entry port number of the entry, the aging timer stops counting, and the aging timer The timer re-counts after initialization; otherwise, when the aging time of the entry reaches, the aging timer stops counting and deletes the entry.
8、 根据权利要求 1所述的方法, 其特征在于, 该方法进一步包' 括: 所述接入 /汇聚组中的汇聚端口接收到数据包后, 获取该数据包中 所述接入 /汇聚组中的特征信息字段的特征信息值; 将该特征信息值 作为索引检索特征信息表, 如果没有检索到包含该特征信息值的表 项, 则将该数据包丢弃或向所述接入 /汇聚组中所有的接入端口广播; 如果检索到包含该特征信息值的表项,则根据该表项的接入端口号将 数据包转发到对应的接入端口。 8. The method according to claim 1, further comprising: Including: after receiving the data packet, the convergence port in the access / aggregation group obtains the feature information value of the feature information field in the access / aggregation group in the data packet; and uses the feature information value as an index to retrieve the feature Information table, if no entry containing the characteristic information value is retrieved, the data packet is dropped or broadcast to all access ports in the access / aggregation group; if an entry containing the characteristic information value is retrieved , The data packet is forwarded to the corresponding access port according to the access port number of the entry.
9、 根据权利要求 8所述的方法, 其特征在于, 在所述汇聚端口 将该特征信息值作为索引检索特征信息表之前, 该方法进一步包括: 判断特征信息值是否为广播类型的特征信息值, 如果是, 则直接将该 数据包转发到所有的接入端口;否则执行所述将该特征信息值作为索 引检索特征信息表。  9. The method according to claim 8, wherein before the aggregation port searches the feature information table using the feature information value as an index, the method further comprises: determining whether the feature information value is a broadcast type feature information value. If yes, the data packet is directly forwarded to all access ports; otherwise, the feature information value is used as an index to retrieve the feature information table.
10、 根据权利要求 1或 8所述的方法, 其特征在于, 所述特征信 息字段为虚拟局域网 VLAN标签、 或多协议标记交换 MPLS标签、 或媒体访问控制 MAC地址、 或网络协议 IP地址。  10. The method according to claim 1 or 8, wherein the characteristic information field is a virtual local area network VLAN tag, or a multi-protocol label switching MPLS tag, or a media access control MAC address, or a network protocol IP address.
PCT/CN2005/000559 2004-04-23 2005-04-22 A method for routing the concourse service WO2005101948A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNB2004100341835A CN100531113C (en) 2004-04-23 2004-04-23 A routing method for convergence service
CN200410034183.5 2004-04-23

Publications (1)

Publication Number Publication Date
WO2005101948A1 true WO2005101948A1 (en) 2005-11-03

Family

ID=35196642

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2005/000559 WO2005101948A1 (en) 2004-04-23 2005-04-22 A method for routing the concourse service

Country Status (2)

Country Link
CN (1) CN100531113C (en)
WO (1) WO2005101948A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100544319C (en) * 2006-01-25 2009-09-23 华为技术有限公司 The system of selection of data service route and the distribution method of label
CN101184053B (en) * 2007-12-29 2010-10-27 杭州华三通信技术有限公司 LAN export link selecting method, device and routing device
CN101442547B (en) * 2008-12-12 2012-04-04 华为技术有限公司 Method, system and equipment for processing message
CN101969398A (en) * 2010-09-17 2011-02-09 中兴通讯股份有限公司 Aging method and system of MAC (Media Access Control) address
CN103856352A (en) * 2014-02-20 2014-06-11 福建升腾资讯有限公司 Method for achieving double-network cross-network-segment access based on single network card

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2334863A (en) * 1997-12-29 1999-09-01 3Com Corp Local area network media access controller layer bridge
US6122279A (en) * 1995-10-02 2000-09-19 Virata Limited Asynchronous transfer mode switch
WO2002093828A2 (en) * 2001-05-17 2002-11-21 Solidum Systems Corporation Distributed packet processing system with internal load distribution
EP1398920A2 (en) * 2002-08-27 2004-03-17 Alcatel Canada Inc. Stackable virtual local area network provisioning in bridged networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6122279A (en) * 1995-10-02 2000-09-19 Virata Limited Asynchronous transfer mode switch
GB2334863A (en) * 1997-12-29 1999-09-01 3Com Corp Local area network media access controller layer bridge
WO2002093828A2 (en) * 2001-05-17 2002-11-21 Solidum Systems Corporation Distributed packet processing system with internal load distribution
EP1398920A2 (en) * 2002-08-27 2004-03-17 Alcatel Canada Inc. Stackable virtual local area network provisioning in bridged networks

Also Published As

Publication number Publication date
CN1691635A (en) 2005-11-02
CN100531113C (en) 2009-08-19

Similar Documents

Publication Publication Date Title
US11057243B2 (en) Aliasing behavior for traffic to multihomed sites in ethernet virtual private network (EVPN) networks
US9071529B2 (en) Method and apparatus for accelerating forwarding in software-defined networks
EP2057796B1 (en) Point-to-multipoint functionality in a bridged network
US8675488B1 (en) Subscriber-based network traffic management
US7796593B1 (en) Router using internal flood groups for flooding VPLS traffic
US5946308A (en) Method for establishing restricted broadcast groups in a switched network
EP1942617B1 (en) Method, device and system for Ethernet-supported Source Specific Multicast forwarding
EP1589705A2 (en) Method and system configured for facilitating residential broadband service
WO2012167697A1 (en) Method and processor for suppressing network storm
US10505847B1 (en) Destination MAC validation per logical interface of a network device
WO2005119968A1 (en) A method for transmitting the policy information between the network devices
WO2009067871A1 (en) Method, system and device for user access security control
WO2020043200A1 (en) Establishment of fast forwarding table
WO2006108344A1 (en) Method for realizing vpn
WO2005101948A1 (en) A method for routing the concourse service
US9838337B1 (en) Automatic virtual local area network (VLAN) provisioning in data center switches
WO2012119372A1 (en) Message processing method, device and system
US10805202B1 (en) Control plane compression of next hop information
US7646713B1 (en) Method and access node configured for providing intelligent cross connection functionality
US20190007279A1 (en) Control apparatus, communication system, virtual network management method, and program
Cisco Cisco IOS AppleTalk and Novell IPX Configuration Guide Release 12.1
WO2005011198A1 (en) A method of expanding the number of virtual local area network supported by switch device
RU2319313C2 (en) Method for realization of protective isolation of ethernet network services
Sajassi et al. NVO3 Operational Requirements draft-ashwood-nvo3-operational-requirement-03
NV03 NV03 working group L. Dunbar Internet Draft D. Eastlake Category: Informational Huawei

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KM KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NA NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SM SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): GM KE LS MW MZ NA SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IS IT LT LU MC NL PL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

NENP Non-entry into the national phase

Ref country code: DE

WWW Wipo information: withdrawn in national office

Country of ref document: DE

122 Ep: pct application non-entry in european phase