CN115150476A - EIGRP protocol message compression method, system, equipment and medium - Google Patents

EIGRP protocol message compression method, system, equipment and medium Download PDF

Info

Publication number
CN115150476A
CN115150476A CN202210697430.8A CN202210697430A CN115150476A CN 115150476 A CN115150476 A CN 115150476A CN 202210697430 A CN202210697430 A CN 202210697430A CN 115150476 A CN115150476 A CN 115150476A
Authority
CN
China
Prior art keywords
protocol message
eigrp
eigrp protocol
header
compressed
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
CN202210697430.8A
Other languages
Chinese (zh)
Other versions
CN115150476B (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.)
Inspur Cisco Networking Technology Co Ltd
Original Assignee
Inspur Cisco Networking 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 Inspur Cisco Networking Technology Co Ltd filed Critical Inspur Cisco Networking Technology Co Ltd
Priority to CN202210697430.8A priority Critical patent/CN115150476B/en
Publication of CN115150476A publication Critical patent/CN115150476A/en
Application granted granted Critical
Publication of CN115150476B publication Critical patent/CN115150476B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/66Layer 2 routing, e.g. in Ethernet based MAN's
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses an EIGRP protocol message compression system, method, device and medium, wherein a first routing device and a second routing switching device carry out networking through an EIGRP protocol message, and the method comprises the following steps: the first routing equipment processes the EIGRP protocol message to generate a first standard EIGRP protocol message; processing the standard EIGRP protocol message to generate an EIGRP protocol message with a double-layer IP header; the double-layer IP header comprises an outer layer IP header and an inner layer IP header; compressing the EIGRP protocol message with the double-layer IP header by a preset LZW compression algorithm to generate a compressed EIGRP protocol message, and sending the compressed EIGRP protocol message to second routing equipment; and the second routing equipment decompresses the compressed EIGRP protocol message by a preset LZW compression algorithm to generate a second standard EIGRP protocol message. The high efficiency of EIGRP protocol message compression is improved.

Description

EIGRP protocol message compression method, system, equipment and medium
Technical Field
The present application relates to the field of routing protocol technologies, and in particular, to a method, a system, a device, and a medium for compressing an EIGRP protocol packet.
Background
An Enhanced Interior Gateway Routing Protocol (EIGRP) is a proprietary Protocol of Cisco corporation (which has been publicized in 2013), the EIGRP combines a Cisco-specific Protocol of a link state and a distance vector type Routing Protocol, a dispersion correction algorithm (DUAL) is adopted to realize rapid convergence, regular Routing update information can not be sent to reduce the occupation of bandwidth, and various network layer protocols such as Appletalk, IP, novell, netWare and the like are supported.
At present, in the existing large-scale park, school, office network, the EIGRP protocol is used between the switching routing devices for large-scale networking, when the network scale is large or the number of routing tables is large, a large number of EIGRP protocol messages are generated inside the network, which results in excessive network bandwidth consumption, and the content repetition degree of the standard EIGRP protocol messages is high, and the data volume is large, therefore, the network needs to perform fragment transmission, but the transmission of the fragment messages cannot be effectively ensured, in addition, the EIGRP protocol messages are generally transmitted in a plaintext mode, even if MD5 verification is adopted, the reliability and confidentiality of information exchange can only be ensured, and an intruder can obtain network topology information according to the routing information exchanged between the routers as long as the intruder can receive the EIGRP packets.
Therefore, a more reliable technical solution for lossless compression of the message content of the EIGRP protocol is needed.
Disclosure of Invention
The embodiment of the application provides an EIGRP protocol message compression method, system, equipment and medium, which are used for solving the problem that a more reliable technical scheme for lossless compression of EIGRP protocol message contents is needed.
The embodiment of the application adopts the following technical scheme:
in one aspect, an embodiment of the present application provides a method for compressing an EIGRP protocol packet, where a first routing device and a second routing switch device perform networking through an EIGRP protocol packet, and the method includes: the first routing equipment processes the EIGRP protocol message to generate a first standard EIGRP protocol message; processing the standard EIGRP protocol message to generate a double-layer IP header EIGRP protocol message; the double-layer IP header comprises an outer layer IP header and an inner layer IP header; compressing the EIGRP protocol message of the double-layer IP header by a preset LZW compression algorithm to generate a compressed EIGRP protocol message, and sending the compressed EIGRP protocol message to second routing equipment; and the second routing equipment decompresses the compressed EIGRP protocol message through the preset LZW compression algorithm to generate a second standard EIGRP protocol message.
In an example, the processing the standard EIGRP protocol packet to generate the dual-layer IP header EIGRP protocol packet specifically includes: determining a source IP and a destination IP of the outer IP header, wherein the source IP and the destination IP of the outer IP header are the same as the source IP and the destination IP of the inner IP header; the length of the EIGRP protocol message is stored according to the length of the field of the inner IP header; generating a fragmentation zone bit of the inner IP header; wherein, the fragment flag bit is used for identifying whether the double-layer IP header EIGRP protocol message is compressed or not; and processing the standard EIGRP protocol message according to the outer layer IP header and the inner layer IP header to generate the double-layer IP header EIGRP protocol message.
In one example, the dual-layer IP header EIGRP protocol packet is compressed by the preset LZW compression algorithm; and exchanging the block positions of the compressed contents in the double-layer IP header EIGRP protocol message according to a data exchange rule to generate the compressed EIGRP protocol message.
In one example, the decompressing the compressed EIGRP protocol packet by using the preset LZW compression algorithm to generate a second standard EIGRP protocol packet specifically includes: stripping off the outer IP head; judging whether the compressed EIGRP protocol message is compressed or not according to the fragment flag bit of the inner IP header; if so, recovering the compressed content in the compressed EIGRP protocol message through the data exchange rule, and obtaining a decompressed EIGRP protocol message through the preset LZW compression algorithm; and generating the second standard EIGRP protocol message according to the decompressed EIGRP protocol message.
In one example, the length of the decompressed EIGRP protocol packet is compared with the length of the field of the inner IP header to determine whether the decompressed EIGRP protocol packet is correct; and if the decompressed EIGRP protocol message is correct, generating the second standard EIGRP protocol message.
In one example, the comparing the field length of the decompressed EIGRP protocol packet with the field length of the inner IP header to determine whether the decompressed EIGRP protocol packet is correct specifically includes: comparing the field length of the decompressed EIGRP protocol message with the field length of the inner IP header, and determining whether the field length of the decompressed EIGRP protocol message is consistent with the field length of the inner IP header; if yes, determining that the decompressed EIGRP protocol message is correct; and if not, determining that the decompressed EIGRP protocol message is wrong.
In an example, after determining whether the compressed EIGRP protocol packet is compressed according to the fragment flag bit of the inner IP header, the method further includes: and discarding the compressed EIGRP protocol message, and feeding back the compression failure of the compressed EIGRP protocol message to a user.
On the other hand, an embodiment of the present application provides an EIGRP protocol packet compression system, where the system includes a first routing device and a second routing device, where the first routing device and the second routing switching device perform networking through an EIGRP protocol packet; the first routing equipment comprises a first EIGRP message processing module, a first LWZ processing module and a bottom layer message sending module; the second routing equipment comprises a second EIGRP message processing module, a second LWZ processing module and a bottom layer message receiving module; the first EIGRP message processing module is used for processing an EIGRP protocol message to generate a first standard EIGRP protocol message; processing the standard EIGRP protocol message to generate a double-layer IP header EIGRP protocol message; the double-layer IP header comprises an outer layer IP header and an inner layer IP header; calling the first LWZ processing module, compressing the EIGRP protocol message at the double-layer IP header by a preset LZW compression algorithm to generate a compressed EIGRP protocol message, and sending the compressed EIGRP protocol message to a bottom layer message sending module; the bottom layer message receiving module is used for sending the compressed EIGRP protocol message to the second EIGRP message processing module; and the second EIGRP message processing module calls the second LWZ processing module, decompresses the compressed EIGRP protocol message through the preset LZW compression algorithm and generates a second standard EIGRP protocol message.
On the other hand, an embodiment of the present application provides an EIGRP protocol packet compression device, which is applied to a first routing device, where the first routing device and a second routing switch device perform networking through an EIGRP protocol packet, and the method includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to: processing the EIGRP protocol message to generate a first standard EIGRP protocol message; processing the standard EIGRP protocol message to generate a double-layer IP header EIGRP protocol message; the double-layer IP header comprises an outer layer IP header and an inner layer IP header; compressing the EIGRP protocol message of the double-layer IP header by a preset LZW compression algorithm to generate a compressed EIGRP protocol message, and sending the compressed EIGRP protocol message to second routing equipment, so that the second routing equipment decompresses the compressed EIGRP protocol message by the preset LZW compression algorithm to generate a second standard EIGRP protocol message.
On the other hand, an embodiment of the present application provides a non-volatile computer storage medium for EIGRP protocol packet compression, which stores computer-executable instructions and is applied to a first routing device, where the first routing device and a second routing switch device perform networking through an EIGRP protocol packet, and the computer-executable instructions are set to: processing the EIGRP protocol message to generate a first standard EIGRP protocol message; processing the standard EIGRP protocol message to generate a double-layer IP header EIGRP protocol message; the double-layer IP header comprises an outer layer IP header and an inner layer IP header; compressing the EIGRP protocol message of the double-layer IP header by a preset LZW compression algorithm to generate a compressed EIGRP protocol message, and sending the compressed EIGRP protocol message to second routing equipment, so that the second routing equipment decompresses the compressed EIGRP protocol message by the preset LZW compression algorithm to generate a second standard EIGRP protocol message.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects:
through LZW compression and decompression algorithm, EIGRP messages can be encrypted, compatibility between the conventional implementation mode and the frame design is realized, after the EIGRP messages are compressed through the LZW, a new IP head is added on the basis of the original messages, double-layer IP head EIGRP protocol messages are generated, content definition of the IP head does not need to be changed, priority scheduling can be carried out on the messages, the ID field value of the newly added IP head is reserved, and normal transmission of the fragment messages is guaranteed.
Drawings
In order to more clearly explain the technical solutions of the present application, some embodiments of the present application will be described in detail below with reference to the accompanying drawings, in which:
fig. 1 is a schematic diagram of a framework of an EIGRP protocol packet system applied to a first routing device according to an embodiment of the present application;
fig. 2 is a schematic diagram of a framework of an EIGRP protocol packet system applied to a second routing device according to the embodiment of the present application;
fig. 3 is a schematic flowchart of an EIGRP protocol packet method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an EIGRP protocol packet device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following embodiments and accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings.
In the prior art, the TOS field of the IP header is occupied, and the priority and the service level of the data packet cannot be guaranteed, because 0 is defaulted, if a large number of packets with high priority exist in the network, the EIGRP packet is discarded. The configuration strategy about QOS on the equipment can not be applied, and the service quality can not be ensured. For a large-scale EIGRP networking, an EIGRP update message carries routing information, and one piece of routing information is 28 bytes, so if 53 pieces of internal routing information are carried, the whole EIGRP message exceeds 1500 bytes, and the network needs to perform fragment transmission. Therefore, the embodiment of the application provides a more reliable technical scheme for compressing the EIGRP protocol message.
The EIGRP protocol message compression system comprises a first routing device and a second routing device, wherein the first routing device and the second routing switching device carry out networking through an EIGRP protocol message.
Fig. 1 is a schematic diagram of a framework of an EIGRP protocol packet system applied to a first routing device according to an embodiment of the present application.
As shown in fig. 1, the first routing device includes a first EIGRP main module, a first EIGRP message processing module, a first LWZ processing module, and a bottom layer message sending module. The first EIGRP main module comprises a first EIGRP protocol processing module and an EIGRP protocol sending module.
Specifically, the first EIGRP protocol processing module sends the EIGRP protocol packet to the EIGRP protocol sending module, and the EIGRP protocol sending module sends the EIGRP protocol packet to the first EIGRP packet processing module through the EIGRP protocol.
The first EIGRP message processing module processes the EIGRP protocol message to generate a first standard EIGRP protocol message. Then, the standard EIGRP protocol message is processed to generate the EIGRP protocol message with the double-layer IP header. Wherein, the double-layer IP header comprises an outer layer IP header and an inner layer IP header. That is, the double-layer IP header EIGRP protocol packet is composed of an outer IP header + an inner IP header + an EIGRP protocol packet.
And then, calling a first LZW processing module, compressing the EIGRP protocol message with the double-layer IP header by a preset LZW compression algorithm to generate a compressed EIGRP protocol message, and sending the compressed EIGRP protocol message to a bottom layer message sending module in the second routing equipment. The LZW compression algorithm is a well-known dictionary-based lossless compression algorithm, and dictionaries are automatically generated in compression and decompression stages of the LZW, so that a data source does not need to be analyzed or extra information is not transmitted to a decompressor, and a large amount of calculation cost is not generated for compression and decompression.
Next, the processing procedure after the second routing device receives the compressed EIGRP protocol packet will be described with reference to fig. 2.
Fig. 2 is a schematic diagram of a framework of an EIGRP protocol packet system applied to a second routing device according to the embodiment of the present application.
As shown in fig. 2, the second routing device includes a second EIGRP main module, a second EIGRP packet processing module, a second LWZ processing module, and a bottom packet receiving module. The second EIGRP main module comprises a second EIGRP protocol processing module and an EIGRP protocol sending module.
Specifically, the bottom layer message receiving module receives a compressed EIGRP protocol message and sends the compressed EIGRP protocol message to the second EIGRP message processing module. And the second EIGRP message processing module calls the second LZW processing module, decompresses the compressed EIGRP protocol message by a preset LZW compression algorithm to generate a second standard EIGRP protocol message, sends the second standard EIGRP protocol message to the second EIGRP protocol receiving module, and sends the second standard EIGRP protocol message to the second EIGRP protocol processing module.
Next, the detailed procedure of EIGRP protocol packet compression will be explained by continuing with fig. 3.
Fig. 3 is a flowchart illustrating an EIGRP protocol packet compression method according to an embodiment of the present application. The method is applied to an EIGRP protocol message compression system, and can be applied to different business fields, such as the field of Internet financial business, the field of electric business, the field of instant messaging business, the field of game business, the field of business and the like. Certain input parameters or intermediate results in the flow allow for manual intervention adjustments to help improve accuracy.
The flow in fig. 3 may include the following steps:
s302: the first routing equipment processes the EIGRP protocol message to generate a first standard EIGRP protocol message.
As can be seen from the description of fig. 1, the first EIGRP message processing module processes an EIGRP protocol message.
S304: and processing the standard EIGRP protocol message to generate an EIGRP protocol message with a double-layer IP header.
Wherein the bi-layer IP header comprises an outer IP header and an inner IP header.
In some embodiments of the present application, the first EIGRP message processing module determines the source IP and the destination IP of the outer IP header to be the same as the source IP and the destination IP of the inner IP header. That is, the source IP and the destination IP of the outer IP header are the same as those of the inner IP header.
In addition, the field length of the EIGRP protocol message is stored according to the field length of the inner IP header. And generating a fragment flag bit of the inner IP header. The fragment flag bit is used for identifying whether the double-layer IP header EIGRP protocol message is compressed or not. That is, the use of the fragmentation flag bit is used to indicate whether the packet is compressed.
S306: and compressing the EIGRP protocol message with the double-layer IP header by a preset LZW compression algorithm to generate a compressed EIGRP protocol message, and sending the compressed EIGRP protocol message to second routing equipment.
In some embodiments of the present application, the first EIGRP message processing module compresses the dual-layer IP header EIGRP protocol message by using a preset LZW compression algorithm. Then, according to the data exchange rule, the block positions of the compressed content in the double-layer IP header EIGRP protocol message are exchanged to generate a compressed EIGRP protocol message.
S308: and the second routing equipment decompresses the compressed EIGRP protocol message through the preset LZW compression algorithm to generate a second standard EIGRP protocol message.
In some embodiments of the present application, as can be seen from the description of fig. 2, the second EIGRP message processing module invokes the second LZW processing module, and then decompresses the compressed EIGRP protocol message to generate the second standard EIGRP protocol message.
Specifically, the second EIGRP message processing module strips off the outer IP header and determines whether the compressed EIGRP protocol message is compressed according to the fragmentation flag bit of the inner IP header.
If not, the compression failure of the compressed EIGRP protocol message is fed back to the user, and the compressed EIGRP protocol message is discarded.
If so, recovering the compression content in the compressed EIGRP protocol message through a data exchange rule, obtaining a decompressed EIGRP protocol message through a preset LZW compression algorithm, and generating a second standard EIGRP protocol message according to the decompressed EIGRP protocol message.
The length of the field of the decompressed EIGRP protocol message is compared with the length of the field of the inner IP header to judge whether the decompressed EIGRP protocol message is correct or not, and if the decompressed EIGRP protocol message is incorrect, the message is fed back to the user.
And if the decompressed EIGRP protocol message is correct, generating a second standard EIGRP protocol message. For example, whether the field length of the decompressed EIGRP protocol message is consistent with the field length of the inner IP header, if so, the decompressed EIGRP protocol message is determined to be correct. If not, determining that the decompressed EIGRP protocol message is wrong, and feeding back to the user.
Through the method of FIG. 3, the EIGRP message can be encrypted through LZW compression and decompression algorithms, the compatibility of the conventional implementation mode and the frame design is realized, after the EIGRP message is compressed through the LZW, a new IP head is added on the basis of the original message to generate a double-layer IP head EIGRP protocol message, the content definition of the IP head does not need to be changed, the message can be subjected to priority scheduling, the newly added IP head keeps the numerical value of an ID field, and the normal transmission of the fragment message is ensured.
It should be noted that, although the embodiment of the present application describes steps S302 to S308 sequentially with reference to fig. 3, this does not mean that steps S302 to S308 must be executed in strict sequence. The embodiment of the present application sequentially describes steps S302 to S308 according to the sequence shown in fig. 3, so as to facilitate those skilled in the art to understand the technical solutions of the embodiment of the present application. In other words, in the embodiment of the present application, the sequence between step S302 and step S308 may be appropriately adjusted according to actual needs.
Based on the same idea, some embodiments of the present application further provide a device and a non-volatile computer storage medium corresponding to the above method.
Fig. 4 is a schematic structural diagram of an EIGRP protocol packet compression device provided in this embodiment, which is applied to a first routing device, where the first routing device and a second routing switch device perform networking through an EIGRP protocol packet, and the method includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
processing the EIGRP protocol message to generate a first standard EIGRP protocol message;
processing the standard EIGRP protocol message to generate a double-layer IP header EIGRP protocol message; the double-layer IP header comprises an outer layer IP header and an inner layer IP header;
compressing the EIGRP protocol message with the double-layer IP header by a preset LZW compression algorithm to generate a compressed EIGRP protocol message, and sending the compressed EIGRP protocol message to second routing equipment, so that the second routing equipment decompresses the compressed EIGRP protocol message by the preset LZW compression algorithm to generate a second standard EIGRP protocol message.
Some embodiments of the present application provide a non-volatile computer storage medium for EIGRP protocol packet compression, which stores computer-executable instructions and is applied to a first routing device, where the first routing device and a second routing switch device perform networking through an EIGRP protocol packet, and the computer-executable instructions are set as: processing the EIGRP protocol message to generate a first standard EIGRP protocol message; processing the standard EIGRP protocol message to generate a double-layer IP header EIGRP protocol message; the double-layer IP header comprises an outer layer IP header and an inner layer IP header; compressing the EIGRP protocol message with the double-layer IP header by a preset LZW compression algorithm to generate a compressed EIGRP protocol message, and sending the compressed EIGRP protocol message to second routing equipment, so that the second routing equipment decompresses the compressed EIGRP protocol message by the preset LZW compression algorithm to generate a second standard EIGRP protocol message.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device and media embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference may be made to some descriptions of the method embodiments for relevant points.
The device and the medium provided by the embodiment of the application correspond to the method one to one, so the device and the medium also have the similar beneficial technical effects as the corresponding method, and the beneficial technical effects of the method are explained in detail above, so the beneficial technical effects of the device and the medium are not repeated herein.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the technical principle of the present application shall fall within the protection scope of the present application.

Claims (10)

1. A method for compressing EIGRP protocol message is characterized in that a first routing device and a second routing switching device carry out networking through EIGRP protocol message, and the method comprises the following steps:
the first routing equipment processes the EIGRP protocol message to generate a first standard EIGRP protocol message;
processing the standard EIGRP protocol message to generate a double-layer IP header EIGRP protocol message; the double-layer IP header comprises an outer layer IP header and an inner layer IP header;
compressing the EIGRP protocol message of the double-layer IP header by a preset LZW compression algorithm to generate a compressed EIGRP protocol message, and sending the compressed EIGRP protocol message to second routing equipment;
and the second routing equipment decompresses the compressed EIGRP protocol message through the preset LZW compression algorithm to generate a second standard EIGRP protocol message.
2. The method according to claim 1, wherein the processing the standard EIGRP protocol packet to generate an EIGRP protocol packet with a dual layer IP header specifically includes:
determining a source IP and a destination IP of the outer IP header, wherein the source IP and the destination IP of the outer IP header are the same as the source IP and the destination IP of the inner IP header;
the field length of the EIGRP protocol message is stored according to the field length of the inner IP header;
generating a fragmentation zone bit of the inner IP header; wherein, the fragmentation flag bit is used for identifying whether the EIGRP protocol message with the double-layer IP header is compressed or not;
and processing the standard EIGRP protocol message according to the outer layer IP header and the inner layer IP header to generate the EIGRP protocol message with the double-layer IP header.
3. The method according to claim 2, wherein the compressing the dual-layer IP header EIGRP protocol packet by a preset LZW compression algorithm to generate a compressed EIGRP protocol packet specifically comprises:
compressing the double-layer IP header EIGRP protocol message by the preset LZW compression algorithm;
and exchanging the block positions of the compressed contents in the double-layer IP header EIGRP protocol message according to a data exchange rule to generate the compressed EIGRP protocol message.
4. The method according to claim 3, wherein the decompressing the compressed EIGRP protocol packet by the preset LZW compression algorithm to generate a second standard EIGRP protocol packet specifically comprises:
stripping off the outer IP head;
judging whether the compressed EIGRP protocol message is compressed or not according to the fragment flag bit of the inner IP header;
if so, recovering the compressed content in the compressed EIGRP protocol message through the data exchange rule, and obtaining a decompressed EIGRP protocol message through the preset LZW compression algorithm;
and generating the second standard EIGRP protocol message according to the decompressed EIGRP protocol message.
5. The method according to claim 4, wherein the generating the second standard EIGRP protocol packet according to the decompressed EIGRP protocol packet specifically includes:
comparing the field length of the decompressed EIGRP protocol message with the field length of the inner IP header to judge whether the decompressed EIGRP protocol message is correct or not;
and if the decompressed EIGRP protocol message is correct, generating the second standard EIGRP protocol message.
6. The method according to claim 5, wherein the comparing the field length of the decompressed EIGRP protocol packet with the field length of the inner IP header to determine whether the decompressed EIGRP protocol packet is correct specifically includes:
comparing the field length of the decompressed EIGRP protocol message with the field length of the inner IP header, and determining whether the field length of the decompressed EIGRP protocol message is consistent with the field length of the inner IP header;
if yes, determining that the decompressed EIGRP protocol message is correct;
and if not, determining that the decompressed EIGRP protocol message is wrong.
7. The method according to claim 3, wherein after said determining whether the compressed EIGRP protocol packet is compressed according to the fragmentation flag of the inner IP header, the method further comprises:
and discarding the compressed EIGRP protocol message, and feeding back the compression failure of the compressed EIGRP protocol message to a user.
8. An EIGRP protocol message compression system is characterized in that the system comprises a first routing device and a second routing device, wherein the first routing device and the second routing switching device carry out networking through an EIGRP protocol message; the first routing equipment comprises a first EIGRP message processing module, a first LWZ processing module and a bottom layer message sending module; the second routing equipment comprises a second EIGRP message processing module, a second LWZ processing module and a bottom layer message receiving module;
the first EIGRP message processing module is used for processing an EIGRP protocol message to generate a first standard EIGRP protocol message;
processing the standard EIGRP protocol message to generate a double-layer IP header EIGRP protocol message; the double-layer IP header comprises an outer layer IP header and an inner layer IP header;
calling the first LWZ processing module, compressing the EIGRP protocol message at the double-layer IP header by a preset LZW compression algorithm to generate a compressed EIGRP protocol message, and sending the compressed EIGRP protocol message to a bottom layer message sending module;
the bottom layer message receiving module is used for sending the compressed EIGRP protocol message to the second EIGRP message processing module;
and the second EIGRP message processing module calls the second LWZ processing module to decompress the compressed EIGRP protocol message by the preset LZW compression algorithm to generate a second standard EIGRP protocol message.
9. An EIGRP protocol message compression device, which is applied to a first routing device, wherein the first routing device and a second routing switch device perform networking through an EIGRP protocol message, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
processing the EIGRP protocol message to generate a first standard EIGRP protocol message;
processing the standard EIGRP protocol message to generate a double-layer IP header EIGRP protocol message; the double-layer IP header comprises an outer layer IP header and an inner layer IP header;
compressing the EIGRP protocol message of the double-layer IP header by a preset LZW compression algorithm to generate a compressed EIGRP protocol message, and sending the compressed EIGRP protocol message to second routing equipment, so that the second routing equipment decompresses the compressed EIGRP protocol message by the preset LZW compression algorithm to generate a second standard EIGRP protocol message.
10. An EIGRP protocol packet compression non-volatile computer storage medium storing computer-executable instructions for use with a first routing device that is networked with a second routing switch device via EIGRP protocol packets, the computer-executable instructions configured to:
processing the EIGRP protocol message to generate a first standard EIGRP protocol message;
processing the standard EIGRP protocol message to generate a double-layer IP header EIGRP protocol message; the double-layer IP header comprises an outer layer IP header and an inner layer IP header;
compressing the EIGRP protocol message with the double-layer IP header by a preset LZW compression algorithm to generate a compressed EIGRP protocol message, and sending the compressed EIGRP protocol message to second routing equipment, so that the second routing equipment decompresses the compressed EIGRP protocol message by the preset LZW compression algorithm to generate a second standard EIGRP protocol message.
CN202210697430.8A 2022-06-20 2022-06-20 EIGRP protocol message compression method, system, equipment and medium Active CN115150476B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210697430.8A CN115150476B (en) 2022-06-20 2022-06-20 EIGRP protocol message compression method, system, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210697430.8A CN115150476B (en) 2022-06-20 2022-06-20 EIGRP protocol message compression method, system, equipment and medium

Publications (2)

Publication Number Publication Date
CN115150476A true CN115150476A (en) 2022-10-04
CN115150476B CN115150476B (en) 2024-04-12

Family

ID=83408609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210697430.8A Active CN115150476B (en) 2022-06-20 2022-06-20 EIGRP protocol message compression method, system, equipment and medium

Country Status (1)

Country Link
CN (1) CN115150476B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110016313A1 (en) * 2009-07-15 2011-01-20 Qualcomm Incorporated HEADER COMPRESSION FOR TUNNELED IPsec PACKET
CN102158409A (en) * 2011-04-02 2011-08-17 杭州华三通信技术有限公司 Retransmission control method for IP (Internet Protocol) message and equipment thereof
CN106470212A (en) * 2016-10-13 2017-03-01 重庆金美通信有限责任公司 A kind of method based on LZW compression algorithm, EIGRP protocol massages being compressed and encrypting
CN107925516A (en) * 2016-02-03 2018-04-17 华为技术有限公司 Data transmission method and device
CN109039945A (en) * 2018-07-05 2018-12-18 烽火通信科技股份有限公司 A kind of transmission method and device of protocol massages

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110016313A1 (en) * 2009-07-15 2011-01-20 Qualcomm Incorporated HEADER COMPRESSION FOR TUNNELED IPsec PACKET
CN102158409A (en) * 2011-04-02 2011-08-17 杭州华三通信技术有限公司 Retransmission control method for IP (Internet Protocol) message and equipment thereof
CN107925516A (en) * 2016-02-03 2018-04-17 华为技术有限公司 Data transmission method and device
CN106470212A (en) * 2016-10-13 2017-03-01 重庆金美通信有限责任公司 A kind of method based on LZW compression algorithm, EIGRP protocol massages being compressed and encrypting
CN109039945A (en) * 2018-07-05 2018-12-18 烽火通信科技股份有限公司 A kind of transmission method and device of protocol massages

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
VASOS HADJIOANNOU: "On the Performance comparison of RIP, OSPF, IS-IS and EIGRP routing protocols", 《 NETWORKING AND INTERNET ARCHITECTURE》, 25 February 2015 (2015-02-25) *
王琼: "第三代移动通信系统中PDCP的数据头压缩技术", 重庆邮电学院学报(自然科学版), no. 03, 30 June 2004 (2004-06-30) *

Also Published As

Publication number Publication date
CN115150476B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
US10419333B2 (en) Method and apparatus for compressing label stack, and method and apparatus for decompressing label stack
US6950445B2 (en) Communication system and method for shared context compression
EP3163837B1 (en) Header compression for ccn messages using a static dictionary
US8140709B2 (en) Two stage internet protocol header compression
US8418037B2 (en) Method and device for decoding by using window-based least significant bits in robust header compression
US11671517B2 (en) Compressed data transmissions in networks implementing interior gateway protocol
CN106470212B (en) Method for compressing and encrypting EIGRP protocol message based on LZW compression algorithm
US10021222B2 (en) Bit-aligned header compression for CCN messages using dictionary
WO2017041534A1 (en) Power line network communication method and device, and computer storage media
CN115150476B (en) EIGRP protocol message compression method, system, equipment and medium
EP3163838B1 (en) Header compression for ccn messages using dictionary learning
CN111225077B (en) Network distribution method, device and system for Internet of things equipment
CN107615810A (en) Header compression system and method for online network code
WO2005081494A1 (en) Method and arrangement for state memory management
CN114979093B (en) RTP-based data transmission method, device, equipment and medium
CN107800653B (en) Message compression method and device
Compta et al. On the effects of heterogeneous packet lengths on network coding
JP2018037702A (en) Communication system, communication device, and data division control method
CN106878054A (en) A kind of method and device for business processing
JP2009302749A (en) Wireless communication apparatus and method
EP2699028A2 (en) Method and apparatus for sending messages
CN110445721B (en) Message forwarding method and device
JP4371938B2 (en) Routing method for packets including a plurality of destination addresses and the router device
WO2023225414A9 (en) System and method for big type length value encoding in an is-is network
CN117896309A (en) Service processing method, communication device, storage medium, and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant