CN1777151A - High-speed data link control data translation method - Google Patents

High-speed data link control data translation method Download PDF

Info

Publication number
CN1777151A
CN1777151A CN200510130573.7A CN200510130573A CN1777151A CN 1777151 A CN1777151 A CN 1777151A CN 200510130573 A CN200510130573 A CN 200510130573A CN 1777151 A CN1777151 A CN 1777151A
Authority
CN
China
Prior art keywords
front port
address
interface
data
hdlc
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
CN200510130573.7A
Other languages
Chinese (zh)
Other versions
CN100505690C (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.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou Huawei 3Com Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Huawei 3Com Technology Co Ltd filed Critical Hangzhou Huawei 3Com Technology Co Ltd
Priority to CN200510130573.7A priority Critical patent/CN100505690C/en
Publication of CN1777151A publication Critical patent/CN1777151A/en
Application granted granted Critical
Publication of CN100505690C publication Critical patent/CN100505690C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

After encapsulated type of data link layer of the current interface is configured as HDLC encapsulation, the method includes steps: binding current interface with network device for next hop; based on address of network device for next hop, generating address mapping list item of current interface; based on address mapping list item of each interface, assorting with static route configuration or algorithm of dynamic route protocol, generating hardware route list of this network devices; after receiving HDLC data packet to be forwarded, based on target address brought inside HDLC data packet and hardware route list of this network devices, looking up relevant interface for forwarding the data packet, then through the interface, the method forwards the HDLC data packet out. The invention solves issue of that network device based on hardware route list is incapable of forwarding HDLC data so as to ensure that HDLC protocol is normal used in network device based on hardware route list.

Description

The retransmission method of high speed data link control data
Technical field
The present invention relates to data communication technology, specially refer to a kind of method of carrying out network equipment forwarding high speed data link control (HDLC, High Level Data Link Control) data of data forwarding based on hardware routing table.
Background technology
Data communication system can be made up of three parts, i.e. transmitter, channel and receiver.In two-way communication, each side of communication has transmitter and receiver.Current use is more is the data communication system that adopts the conventional data circuit of seven parts to describe, as shown in Figure 1, wherein, data terminal equipment (DTE, Data Terminal Equipment) is meant the equipment that all link to each other with the network port, comprises simple terminal, intelligent terminal, synchronous terminal, asynchronous terminal or the like.Data circuit terminating equipment (DCE, Data Circuit-Terminating Equipment) is meant modulator-demodulator, multiplexer or digital device or the like equipment.
Important task of data communication system is to be responsible for data are accurately transmitted between two DTE with certain coded format, and the data that assurance receiving terminal DTE receives are identical with the data that transmitting terminal DTE sends.This error control function is normally realized by the data link layer protocol of International Organization for Standardization definition.
The HDLC agreement is a kind of bit-oriented data link control procedure by the ISO promulgation, be data terminal equipment (DTE, Data Terminal Equipment) with data circuit terminating equipment (DCE, Data Circuit-Terminating Equipment) between the data link layer protocol of interface.At present, the HDLC agreement extensively is used in the flexible exchanging network, in actual application, the employed data link layer of soft switch router that only needs to dispose in the flexible exchanging network is encapsulated as the HDLC encapsulation, described soft switch router just can directly generate software routing table by static routing configuration or dynamic routing protocol, handle thereby finish the HDLC forwarding of data, therefore, the configuration when using the soft switch router to transmit the HDLC data is very simple.But the shortcoming of using above-mentioned method of carrying out data forwarding according to software routing table to transmit the HDLC data is to expend time in longlyer, makes the data transmission performance of data communication system be subjected to influencing significantly.
For this reason, data forwarding method based on hardware routing table has been proposed.Owing to write down the mapping relations between destination network segment, next-hop network equipment and this end interface in the hardware routing table, the network equipment can be according to the destination network segment at the destination address place of received data, directly find the interface of transmitting current data, thereby can improve the forwarding speed of router greatly.At present, the high speed switching equipment of using always based on Ethernet exchange kernel just can be supported the data forwarding based on hardware routing table.Yet, because the HDLC agreement does not have the IP control protocol (IPCP) that can carry out two ends Internet protocol (IP) address negotiation functionality, thereby, when use is transmitted the HDLC data based on the network equipment of hardware routing table, the interface mappings of next-hop network equipment and local terminal can't be got up, thereby cause the described network equipment can't set up described hardware routing table based on hardware routing table, thereby can not carry out the HDLC forwarding of data handles, influence the HDLC agreement at the network equipment based on hardware routing table, for example based on the high speed switching equipment of Ethernet exchange kernel, in normal use.
Summary of the invention
In order to solve the problems of the technologies described above, the invention provides a kind of HDLC forwarding of data method, can effectively solve the problem that the network equipment that carries out data forwarding based on hardware routing table can not be transmitted the HDLC data.
HDLC forwarding of data method of the present invention comprises:
A, will work as the next-hop network apparatus bound of front port and this interface;
B, according to the address of described next-hop network equipment, generate map addresses list item when front port;
C, cooperate static routing configuration or dynamic routing protocol algorithm to generate the hardware routing table of present networks equipment according to the map addresses list item of each interface;
D, after receiving HDLC packet to be transmitted, according to described hardware routing table, search the corresponding interface of transmitting this packet, this HDLC packet is forwarded.
The network equipment of the present invention is the high speed switching equipment based on Ethernet exchange kernel.
The described next-hop network apparatus bound that will work as front port and this interface of steps A is: set up when the data-link layer address of front port and the corresponding relation between this interface next-hop network device network layer address.
Network layer address of the present invention is the IP address of next-hop network equipment.
The described map addresses list item of step B comprises: when the network layer address of the data-link layer address of front port and corresponding with it next-hop network equipment.
Step B carries out when current interface protocol state is startup.
Steps A is described will work as front port and next-hop network apparatus bound before, further comprise:
A1, judge when front port whether bind with certain network equipment, if, execution in step A2 then; Otherwise process ends continues execution in step A;
A2, judge with when the network appliance address of front port binding whether identical with the described next-hop network of steps A device address, if, process ends then, continuation execution in step C; Otherwise, execution in step A3;
A3, remove original binding, process ends continues execution in step A then.
Step D further comprises: when the data link layer of front port is removed the encapsulation of HDLC, if bound the next-hop network device address when front port, then remove original binding.
The original binding of removing of the present invention comprises: remove when the data-link layer address of front port and the corresponding relation between the described network appliance address; If when front port calculated address mapping item, then remove the map addresses list item that has generated when front port.
Step D further comprises: becoming when stopping by startup when the protocol status of front port, and according to when the binding relationship of front port, that removing has generated, when the map addresses list item of front port with this interface next-hop network equipment.
According to a further aspect in the invention, the present invention also provides a kind of high speed data link control HDLC forwarding of data method, comprising:
A, judge when front port whether bind with certain network equipment, if, execution in step b then; Otherwise, execution in step c;
B, judge whether identical with the network appliance address of binding when front port with the described next-hop network of steps A device address, if, execution in step d; Otherwise, remove original binding, then execution in step c;
C, at current interface protocol state when starting, will work as the next-hop network apparatus bound of front port and this interface, and according to the address of described next-hop network equipment, the map addresses list item of front port is worked as in generation;
D, cooperate static routing configuration or dynamic routing protocol algorithm to generate the hardware routing table of present networks equipment according to the map addresses list item of each interface;
E, after receiving HDLC packet to be transmitted, according to described hardware routing table, search the corresponding interface of transmitting this packet, this HDLC packet is forwarded.
This shows, HDLC forwarding of data method of the present invention, by working as the front port next-hop network apparatus bound corresponding, can generate map addresses list item, thereby can further generate the hardware routing table of the network equipment when front port with this interface.The network equipment based on hardware routing table can be finished the HDLC forwarding of data according to the hardware routing table that generates, solve the problem that to transmit the HDLC data based on the network equipment of hardware routing table effectively, guarantee that the HDLC agreement is based on the normal use in the network equipment of hardware routing table.
In addition, because the method for the invention realizes being interrupted, therefore be easy on the realization mechanism of original HDLC agreement, expand and realize.
Description of drawings
Fig. 1 is general data communication system structural representation;
Fig. 2 is the method flow diagram that carries out the network equipment forwarding HDLC data of data forwarding based on hardware routing table of the present invention;
Fig. 3 be before steps A shown in Figure 2, check when front port whether with the method flow diagram of other network equipments bindings;
Fig. 4 is the original binding method flow chart of removing of the present invention.
Embodiment
For the purpose, technical scheme and the advantage that make invention is clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in further detail.
In order to solve the problem that can't transmit the HDLC data based on the network equipment of hardware routing table, the invention provides a kind of HDLC forwarding of data method, as shown in Figure 2, this method mainly may further comprise the steps:
A, disposing after the data link layer encapsulated type of front port is HDLC, will work as the front port next-hop network apparatus bound corresponding with this interface.
Wherein, the described network equipment high speed switching equipment or the like that can be based on Ethernet exchange kernel carries out the network equipment of data forwarding based on hardware routing table.
This step is described will work as front port and the next-hop network apparatus bound is specially: set up when the data-link layer address of front port and the corresponding relation between the next-hop network device network layer address.Described network layer address can be IP address or other network layer address of next-hop network equipment.At present, can use opposite end map addresses order to set up when the data-link layer address of front port and the corresponding relation between the next-hop network device network layer address.For example, for high speed switching equipment based on Ethernet exchange kernel, if described network layer address is the IP address of the network equipment, the map addresses order of then described opposite end is: map ip X.X.X.X, wherein, on behalf of next, X.X.X.X jump the IP address that exchanges the high speed switching equipment of kernel based on Ethernet.In addition, in this process, do not need to be provided with address mask, the length that mask will be set automatically based on the high speed switching equipment of Ethernet exchange kernel is 32.
Need to prove that in order to guarantee the correctness of data forwarding, each interface of the described network equipment only allows to bind with a next-hop network equipment.
In addition, in order to realize data forwarding, in this steps A, except will also carrying out the local terminal address configuration with when the address binding of front port and next-hop network equipment.Described local terminal address configuration is meant the network layer address of configuration present networks equipment self.Described local terminal address configuration can steps A is described will work as front port and next-hop network apparatus bound before or carry out afterwards, and can not exceed protection scope of the present invention.
B, according to and when the address of the next-hop network equipment of front port binding, generate map addresses list item when front port.
Described map addresses list item comprises: when the network layer address of the data-link layer address of front port and corresponding with it next-hop network equipment.The map addresses list item of the total interface of each network equipment is formed the address mapping table of present networks equipment.
Need to prove, whenever step B can carry out after steps A, but it is just effective when only being " starting (UP) " at current interface protocol state, therefore, in order to save system resource, when can being chosen in current interface protocol state for " UP " according to the protocol status when front port, carries out step B.
C, according to the map addresses list item of each interface, cooperate static routing configuration or dynamic routing protocol algorithm to generate the hardware routing table of present networks equipment.
Described hardware routing table has write down the network layer address of the destination network segment at certain packet rs destination terminal place, the next-hop network equipment corresponding with this destination network segment and the data-link layer address of corresponding interface.
D, after receiving HDLC packet to be transmitted, according to the destination address that carries in this HDLC packet, and the hardware routing table of present networks equipment, search the corresponding interface of transmitting this packet, and this HDLC packet forwarded by interface.
In this step, the process of forwarding HDLC packet specifically comprises:
D1, according to the destination address that carries in this HDLC packet, obtain the destination network segment at this HDLC packet rs destination terminal place;
D2, search the hardware routing table of present networks equipment, obtain the next-hop network device address corresponding and the data-link layer address of corresponding interface with this destination network segment according to described destination network segment;
D3, according to the data-link layer address of corresponding interface, the HDLC packet that is received is forwarded to described next-hop network equipment by this interface.
This shows,, can solve the network equipment that carries out data forwarding based on hardware routing table and can not carry out the problem that the HDLC data forwarding is handled by HDLC data forwarding method of the present invention.
In order to simplify above-mentioned flow process, in the steps A, before will working as front port and next-hop network apparatus bound, can also further carry out check when front port whether with the process of other network equipments bindings.As shown in Figure 3, this process mainly comprises:
A1, judge when front port whether bind with certain network equipment, if, execution in step A2 then; Otherwise process ends continues execution in step A, is about to when front port and described next-hop network apparatus bound;
A2, judge whether identical with the network appliance address of binding when front port with the described next-hop network of steps A device address, if, process ends then, continue execution in step C, promptly, cooperate static routing configuration or dynamic routing protocol algorithm to generate the hardware routing table of present networks equipment according to the map addresses list item of each interface; Otherwise, execution in step A3;
A3, remove original binding, process ends continues execution in step A then, is about to when front port and the described next-hop network apparatus bound of steps A.
The original binding of the described removing of this step mainly comprises as shown in Figure 4:
A31, releasing are when the data-link layer address of front port and the corresponding relation between the described network appliance address;
Especially, for high speed switching equipment based on Ethernet exchange kernel, if described network layer address is the IP address of the network equipment, then can uses and remove opposite end map addresses UNDO MAP IP order and remove corresponding relation when the IP address of the data-link layer address of front port and next-hop network equipment;
If A32 when front port calculated address mapping item, then removes the map addresses list item that has generated when front port.
By above-mentioned steps, can under the situation that has the identical address mapping item, save the step of calculated address mapping item, the wasting of resources of avoiding repetition calculated address mapping item to cause effectively.
Because the described generation of step B is carried out when the map addresses list item of front port can become " UP " at the protocol status when front port, therefore, carry out in the process of HDLC data forwarding at step D, if when the protocol status of front port changes, for example, when being become " stopping (DOWN) " state by " UP ", the method for the invention also needs according to the mapping relations when front port and next-hop network device address, removes the map addresses list item when front port that has generated.
In addition, carry out in the process of HDLC data forwarding at step D, the method of the invention further comprises: if remove the encapsulation of HDLC when the data link layer of front port, when adopting other data link layer protocols, if bound the next-hop network device address when front port, then removed existing binding.Wherein, the method for unbind is identical with the method that steps A 3 is adopted, and promptly comprises following two steps:
A31, releasing are when the data-link layer address of front port and the corresponding relation of its next-hop network device address;
If A32 then removes the map addresses list item that has generated when front port when there is the map addresses list item in front port.

Claims (16)

1, a kind of high speed data link control HDLC forwarding of data method is characterized in that, comprising:
A, will work as the next-hop network apparatus bound of front port and this interface;
B, according to the address of described next-hop network equipment, generate map addresses list item when front port;
C, cooperate static routing configuration or dynamic routing protocol algorithm to generate the hardware routing table of present networks equipment according to the map addresses list item of each interface;
D, after receiving HDLC packet to be transmitted, according to described hardware routing table, search the corresponding interface of transmitting this packet, this HDLC packet is forwarded.
2, method according to claim 1 is characterized in that, the described network equipment is the high speed switching equipment based on Ethernet exchange kernel.
3, method according to claim 1, it is characterized in that the described next-hop network apparatus bound that will work as front port and this interface of steps A is: set up when the data-link layer address of front port and the corresponding relation between this interface next-hop network device network layer address.
4, method according to claim 3 is characterized in that, described network layer address is the IP address of next-hop network equipment.
5, method according to claim 1 is characterized in that, the described map addresses list item of step B comprises: when the network layer address of the data-link layer address of front port and corresponding with it next-hop network equipment.
6, method according to claim 1 is characterized in that, step B carries out when current interface protocol state is startup.
7, method according to claim 1 is characterized in that, steps A is described will work as front port and next-hop network apparatus bound before, further comprise:
A1, judge when front port whether bind with certain network equipment, if, execution in step A2 then; Otherwise process ends continues execution in step A;
A2, judge with when the network appliance address of front port binding whether identical with the described next-hop network of steps A device address, if, process ends then, continuation execution in step C; Otherwise, execution in step A3;
A3, remove original binding, process ends continues execution in step A then.
8, method according to claim 1 is characterized in that, step D further comprises: when the data link layer of front port is removed the encapsulation of HDLC, if bound the next-hop network device address when front port, then remove original binding.
According to claim 7 or 8 described methods, it is characterized in that 9, the original binding of described removing comprises: remove when the data-link layer address of front port and the corresponding relation between the described network appliance address; If when front port calculated address mapping item, then remove the map addresses list item that has generated when front port.
10, method according to claim 1, it is characterized in that, step D further comprises: becoming when stopping by startup when the protocol status of front port, and according to when the binding relationship of front port, that removing has generated, when the map addresses list item of front port with this interface next-hop network equipment.
11, a kind of high speed data link control HDLC forwarding of data method is characterized in that, comprising:
A, judge when front port whether bind with certain network equipment, if, execution in step b then; Otherwise, execution in step c;
B, judge whether identical with the network appliance address of binding when front port with the described next-hop network of steps A device address, if, execution in step d; Otherwise, remove original binding, then execution in step c;
C, at current interface protocol state when starting, will work as the next-hop network apparatus bound of front port and this interface, and according to the address of described next-hop network equipment, the map addresses list item of front port is worked as in generation;
D, cooperate static routing configuration or dynamic routing protocol algorithm to generate the hardware routing table of present networks equipment according to the map addresses list item of each interface;
E, after receiving HDLC packet to be transmitted, according to described hardware routing table, search the corresponding interface of transmitting this packet, this HDLC packet is forwarded.
12, method according to claim 11 is characterized in that, the described network equipment is the high speed switching equipment based on Ethernet exchange kernel.
13, method according to claim 11, it is characterized in that the described next-hop network apparatus bound that will work as front port and this interface of step c is: set up when the data-link layer address of front port and the corresponding relation between this interface next-hop network device network layer address.
14, method according to claim 11, it is characterized in that, step e further comprises: becoming when stopping by startup when the protocol status of front port, and according to when the binding relationship of front port, that removing has generated, when the map addresses list item of front port with this interface next-hop network equipment.
15, method according to claim 11 is characterized in that, step e further comprises: when the data link layer of front port is removed the encapsulation of HDLC, if bound the next-hop network device address when front port, then remove original binding.
16, method according to claim 15 is characterized in that, the original binding of described removing comprises: remove when the data-link layer address of front port and the corresponding relation between the described network appliance address; If when front port calculated address mapping item, then remove the map addresses list item that has generated when front port.
CN200510130573.7A 2005-12-14 2005-12-14 High-speed data link control data transmission method Active CN100505690C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200510130573.7A CN100505690C (en) 2005-12-14 2005-12-14 High-speed data link control data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200510130573.7A CN100505690C (en) 2005-12-14 2005-12-14 High-speed data link control data transmission method

Publications (2)

Publication Number Publication Date
CN1777151A true CN1777151A (en) 2006-05-24
CN100505690C CN100505690C (en) 2009-06-24

Family

ID=36766463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200510130573.7A Active CN100505690C (en) 2005-12-14 2005-12-14 High-speed data link control data transmission method

Country Status (1)

Country Link
CN (1) CN100505690C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552734B (en) * 2009-05-22 2012-06-13 迈普通信技术股份有限公司 Non-automatic multi-outlet routing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552734B (en) * 2009-05-22 2012-06-13 迈普通信技术股份有限公司 Non-automatic multi-outlet routing method

Also Published As

Publication number Publication date
CN100505690C (en) 2009-06-24

Similar Documents

Publication Publication Date Title
CN101035033A (en) Message mirroring method and network device for supporting the remote message mirror
CN1921440A (en) Method and system for detecting path maximal transmission unit
CN1949776A (en) 4 over 6 tunnel packing and depacking method for extending boundary gateway protocol
CN101060533A (en) A method, system and device for improving the reliability of VGMP protocol
CN1773993A (en) Session relay equipment and session relay method
CN1863141A (en) Method for transmission processing IP fragment message
CN1272724C (en) No.7 layer load equalization method based on socket butt joint in kernel
CN1287568C (en) Method for transfering data within local area network
CN1777148A (en) Routing table next-hop IP address to MAC address analytic method
CN101064667A (en) Method for monitoring and adjusting universal routing package tunnel state
CN1960316A (en) Network address conversion method for segmented messages
CN1863148A (en) Method for implementing interaction BPDU message between VLAN apparatus through two layer tunnel network
CN1744561A (en) Super-long message processing method during message conversion process
CN1816003A (en) Telecommunication method and apparatus of dissimilar chain protocol
CN1863140A (en) Method for improving network resource utilization ratio of wireless communication system
CN1728661A (en) Method for realizing backup and load shared equally based on proxy of address resolution protocol
CN1301607C (en) Method for implementing supporting virtual local network fire wall
CN1777151A (en) High-speed data link control data translation method
CN1665239A (en) A method for implementing information transmission between equipments of different communication protocols
US20100238930A1 (en) Router and method of forwarding ipv6 packets
CN1697445A (en) Implementation method for transferring data in virtual private network
CN108040132B (en) System for realizing conversion from RapidIO to gigabit gateway protocol
CN1713586A (en) Realization of virtual group redundancy
CN1878121A (en) Multicast group maintaining method
CN1878126A (en) Method for realizing signalling proxy in communication network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230625

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: No. 466 Changhe Road, Binjiang District

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.